diff --git a/packages/openapi-to-ts/fixtures/generated/github-client.ts b/packages/openapi-to-ts/fixtures/generated/github-client.ts index 96b782f..a1a0612 100644 --- a/packages/openapi-to-ts/fixtures/generated/github-client.ts +++ b/packages/openapi-to-ts/fixtures/generated/github-client.ts @@ -79,42 +79,30 @@ export namespace github { typeof SecurityAdvisoryEcosystemsSchema > - export const CvssSeveritiesSchema = z - .object({ - cvss_v3: z - .object({ - vector_string: z - .string() - .nullable() - .describe('The CVSS 3 vector string.'), - score: z - .number() - .gte(0) - .lte(10) - .nullable() - .describe('The CVSS 3 score.') - .readonly() - }) - .nullable() - .optional(), - cvss_v4: z - .object({ - vector_string: z - .string() - .nullable() - .describe('The CVSS 4 vector string.'), - score: z - .number() - .gte(0) - .lte(10) - .nullable() - .describe('The CVSS 4 score.') - .readonly() - }) - .nullable() - .optional() - }) - .nullable() + export const CvssSeveritiesSchema = z.object({ + cvss_v3: z + .object({ + vector_string: z.string().describe('The CVSS 3 vector string.'), + score: z + .number() + .gte(0) + .lte(10) + .describe('The CVSS 3 score.') + .readonly() + }) + .optional(), + cvss_v4: z + .object({ + vector_string: z.string().describe('The CVSS 4 vector string.'), + score: z + .number() + .gte(0) + .lte(10) + .describe('The CVSS 4 score.') + .readonly() + }) + .optional() + }) export type CvssSeverities = z.infer export const SecurityAdvisoryEpssSchema = z @@ -122,7 +110,6 @@ export namespace github { percentage: z.number().gte(0).lte(100).optional(), percentile: z.number().gte(0).lte(100).optional() }) - .nullable() .describe( 'The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).' ) @@ -131,13 +118,13 @@ export namespace github { export const SimpleUserSchema = z .object({ - name: z.string().nullable().optional(), - email: z.string().nullable().optional(), + name: z.string().optional(), + email: z.string().optional(), login: z.string(), id: z.number().int(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -175,29 +162,35 @@ export namespace github { typeof SecurityAdvisoryCreditTypesSchema > + export const PaginationBeforeSchema = z + .any() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + export type PaginationBefore = z.infer + + export const PaginationAfterSchema = z + .any() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + export type PaginationAfter = z.infer + + export const DirectionSchema = z + .any() + .describe('The direction to sort the results by.') + export type Direction = z.infer + + export const GhsaIdSchema = z + .any() + .describe('The GHSA (GitHub Security Advisory) identifier of the advisory.') + export type GhsaId = z.infer + export const EnterpriseSchema = z - .object({ - description: z - .string() - .nullable() - .describe('A short description of the enterprise.') - .optional(), - html_url: z.string().url(), - website_url: z - .string() - .url() - .nullable() - .describe("The enterprise's website URL.") - .optional(), - id: z.number().int().describe('Unique identifier of the enterprise'), - node_id: z.string(), - name: z.string().describe('The name of the enterprise.'), - slug: z.string().describe('The slug url identifier for the enterprise.'), - created_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), - avatar_url: z.string().url() - }) - .describe('An enterprise on GitHub.') + .any() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ) export type Enterprise = z.infer export const WebhookConfigUrlSchema = z @@ -265,26 +258,22 @@ export namespace github { event: z.string().describe('The event that triggered the delivery.'), action: z .string() - .nullable() .describe( 'The type of activity for the event that triggered the delivery.' ), installation_id: z .number() .int() - .nullable() .describe( 'The id of the GitHub App installation associated with this event.' ), repository_id: z .number() .int() - .nullable() .describe('The id of the repository associated with this event.'), throttled_at: z .string() .datetime({ offset: true }) - .nullable() .describe('Time when the webhook delivery was throttled.') .optional() }) @@ -293,6 +282,20 @@ export namespace github { ) export type HookDeliveryItem = z.infer + export const PerPageSchema = z + .any() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + export type PerPage = z.infer + + export const CursorSchema = z + .any() + .describe( + 'Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.' + ) + export type Cursor = z.infer + export const HookDeliverySchema = z .object({ id: z.number().int().describe('Unique identifier of the delivery.'), @@ -317,52 +320,93 @@ export namespace github { event: z.string().describe('The event that triggered the delivery.'), action: z .string() - .nullable() .describe( 'The type of activity for the event that triggered the delivery.' ), installation_id: z .number() .int() - .nullable() .describe( 'The id of the GitHub App installation associated with this event.' ), repository_id: z .number() .int() - .nullable() .describe('The id of the repository associated with this event.'), throttled_at: z .string() .datetime({ offset: true }) - .nullable() .describe('Time when the webhook delivery was throttled.') .optional(), url: z.string().describe('The URL target of the delivery.').optional(), request: z.object({ headers: z .record(z.any()) - .nullable() .describe('The request headers sent with the webhook delivery.'), - payload: z.record(z.any()).nullable().describe('The webhook payload.') + payload: z.record(z.any()).describe('The webhook payload.') }), response: z.object({ headers: z .record(z.any()) - .nullable() .describe( 'The response headers received when the delivery was made.' ), - payload: z - .string() - .nullable() - .describe('The response payload received.') + payload: z.string().describe('The response payload received.') }) }) .describe('Delivery made by a webhook.') export type HookDelivery = z.infer + export const DeliveryIdSchema = z.any() + export type DeliveryId = z.infer + + export const PageSchema = z + .object({ + url: z + .string() + .url() + .describe('The API address for accessing this Page resource.'), + status: z + .enum(['built', 'building', 'errored']) + .describe('The status of the most recent build of the Page.'), + cname: z.string().describe("The Pages site's custom domain"), + protected_domain_state: z + .enum(['pending', 'verified', 'unverified']) + .describe('The state if the domain is verified') + .optional(), + pending_domain_unverified_at: z + .string() + .datetime({ offset: true }) + .describe('The timestamp when a pending domain becomes unverified.') + .optional(), + custom_404: z + .boolean() + .describe('Whether the Page has a custom 404 page.') + .default(false), + html_url: z + .string() + .url() + .describe('The web address the Page can be accessed from.') + .optional(), + build_type: z + .enum(['legacy', 'workflow']) + .describe('The process in which the Page will be built.') + .optional(), + source: PagesSourceHashSchema.optional(), + public: z + .boolean() + .describe( + 'Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site.' + ), + https_certificate: PagesHttpsCertificateSchema.optional(), + https_enforced: z + .boolean() + .describe('Whether https is enabled on the domain') + .optional() + }) + .describe('The configuration for GitHub Pages for a repository.') + export type Page = z.infer + export const AppPermissionsSchema = z .object({ actions: z @@ -659,13 +703,13 @@ export namespace github { export const NullableSimpleUserSchema = z .object({ - name: z.string().nullable().optional(), - email: z.string().nullable().optional(), + name: z.string().optional(), + email: z.string().optional(), login: z.string(), id: z.number().int(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -682,25 +726,43 @@ export namespace github { starred_at: z.string().optional(), user_view_type: z.string().optional() }) - .nullable() .describe('A GitHub user.') export type NullableSimpleUser = z.infer + export const SinceSchema = z + .any() + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type Since = z.infer + + export const InstallationIdSchema = z + .any() + .describe('The unique identifier of the installation.') + export type InstallationId = z.infer + export const NullableLicenseSimpleSchema = z .object({ key: z.string(), name: z.string(), - url: z.string().url().nullable(), - spdx_id: z.string().nullable(), + url: z.string().url(), + spdx_id: z.string(), node_id: z.string(), html_url: z.string().url().optional() }) - .nullable() .describe('License Simple') export type NullableLicenseSimple = z.infer< typeof NullableLicenseSimpleSchema > + export const ClientIdSchema = z + .any() + .describe('The client ID of the GitHub app.') + export type ClientId = z.infer + + export const AppSlugSchema = z.any() + export type AppSlug = z.infer + export const SimpleClassroomRepositorySchema = z .object({ id: z.number().int().describe('A unique identifier of the repository.'), @@ -728,7 +790,7 @@ export namespace github { login: z.string(), node_id: z.string(), html_url: z.string().url(), - name: z.string().nullable(), + name: z.string(), avatar_url: z.string() }) .describe('A GitHub organization.') @@ -736,6 +798,11 @@ export namespace github { typeof SimpleClassroomOrganizationSchema > + export const AssignmentIdSchema = z + .any() + .describe('The unique identifier of the classroom assignment.') + export type AssignmentId = z.infer + export const SimpleClassroomUserSchema = z .object({ id: z.number().int(), @@ -796,13 +863,18 @@ export namespace github { typeof ClassroomAssignmentGradeSchema > + export const ClassroomIdSchema = z + .any() + .describe('The unique identifier of the classroom.') + export type ClassroomId = z.infer + export const CodeOfConductSchema = z .object({ key: z.string(), name: z.string(), url: z.string().url(), body: z.string().optional(), - html_url: z.string().url().nullable() + html_url: z.string().url() }) .describe('Code Of Conduct') export type CodeOfConduct = z.infer @@ -867,20 +939,17 @@ export namespace github { .object({ runner_type: z .enum(['standard', 'labeled', 'not_set']) - .nullable() .describe( 'Whether to use labeled runners or standard GitHub runners.' ) .optional(), runner_label: z .string() - .nullable() .describe( "The label of the runner to use for code scanning when runner_type is 'labeled'." ) .optional() }) - .nullable() .describe('Feature options for code scanning default setup') .optional(), code_scanning_delegated_alert_dismissal: z @@ -974,23 +1043,26 @@ export namespace github { .optional(), runner_label: z .string() - .nullable() .describe( "The label of the runner to use for code scanning default setup when runner_type is 'labeled'." ) .optional() }) - .nullable() .describe('Feature options for code scanning default setup') export type CodeScanningDefaultSetupOptions = z.infer< typeof CodeScanningDefaultSetupOptionsSchema > + export const ConfigurationIdSchema = z + .any() + .describe('The unique identifier of the code security configuration.') + export type ConfigurationId = z.infer + export const AlertNumberSchema = z - .number() - .int() - .describe('The security alert number.') - .readonly() + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) export type AlertNumber = z.infer export const DependabotAlertPackageSchema = z @@ -1046,7 +1118,6 @@ export namespace github { export const AlertDismissedAtSchema = z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -1056,7 +1127,6 @@ export namespace github { export const AlertFixedAtSchema = z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -1066,17 +1136,88 @@ export namespace github { export const AlertAutoDismissedAtSchema = z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) .readonly() export type AlertAutoDismissedAt = z.infer + export const DependabotAlertCommaSeparatedStatesSchema = z + .any() + .describe( + 'A comma-separated list of states. If specified, only alerts with these states will be returned.\n\nCan be: `auto_dismissed`, `dismissed`, `fixed`, `open`' + ) + export type DependabotAlertCommaSeparatedStates = z.infer< + typeof DependabotAlertCommaSeparatedStatesSchema + > + + export const DependabotAlertCommaSeparatedSeveritiesSchema = z + .any() + .describe( + 'A comma-separated list of severities. If specified, only alerts with these severities will be returned.\n\nCan be: `low`, `medium`, `high`, `critical`' + ) + export type DependabotAlertCommaSeparatedSeverities = z.infer< + typeof DependabotAlertCommaSeparatedSeveritiesSchema + > + + export const DependabotAlertCommaSeparatedEcosystemsSchema = z + .any() + .describe( + 'A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.\n\nCan be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`' + ) + export type DependabotAlertCommaSeparatedEcosystems = z.infer< + typeof DependabotAlertCommaSeparatedEcosystemsSchema + > + + export const DependabotAlertCommaSeparatedPackagesSchema = z + .any() + .describe( + 'A comma-separated list of package names. If specified, only alerts for these packages will be returned.' + ) + export type DependabotAlertCommaSeparatedPackages = z.infer< + typeof DependabotAlertCommaSeparatedPackagesSchema + > + + export const DependabotAlertCommaSeparatedEpssSchema = z + .any() + .describe( + 'CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:\n- An exact number (`n`)\n- Comparators such as `>n`, `=n`, `<=n`\n- A range like `n..n`, where `n` is a number from 0.0 to 1.0\n\nFilters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.' + ) + export type DependabotAlertCommaSeparatedEpss = z.infer< + typeof DependabotAlertCommaSeparatedEpssSchema + > + + export const DependabotAlertScopeSchema = z + .any() + .describe( + 'The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.' + ) + export type DependabotAlertScope = z.infer + + export const DependabotAlertSortSchema = z + .any() + .describe( + "The property by which to sort the results.\n`created` means when the alert was created.\n`updated` means when the alert's state last changed.\n`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage." + ) + export type DependabotAlertSort = z.infer + + export const PaginationFirstSchema = z + .any() + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the first matching result.\nThis parameter must not be used in combination with `last`.\nInstead, use `per_page` in combination with `after` to fetch the first page of results.' + ) + export type PaginationFirst = z.infer + + export const PaginationLastSchema = z + .any() + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the last matching result.\nThis parameter must not be used in combination with `first`.\nInstead, use `per_page` in combination with `before` to fetch the last page of results.' + ) + export type PaginationLast = z.infer + export const NullableAlertUpdatedAtSchema = z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -1086,34 +1227,73 @@ export namespace github { > export const SecretScanningAlertStateSchema = z - .enum(['open', 'resolved']) + .any() .describe( - 'Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.' + 'Set to `open` or `resolved` to only list secret scanning alerts in a specific state.' ) export type SecretScanningAlertState = z.infer< typeof SecretScanningAlertStateSchema > export const SecretScanningAlertResolutionSchema = z - .enum(['false_positive', 'wont_fix', 'revoked', 'used_in_tests']) - .nullable() + .any() .describe( - '**Required when the `state` is `resolved`.** The reason for resolving the alert.' + 'A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.' ) export type SecretScanningAlertResolution = z.infer< typeof SecretScanningAlertResolutionSchema > + export const SecretScanningAlertSecretTypeSchema = z + .any() + .describe( + 'A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types.' + ) + export type SecretScanningAlertSecretType = z.infer< + typeof SecretScanningAlertSecretTypeSchema + > + + export const SecretScanningAlertSortSchema = z + .any() + .describe( + 'The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.' + ) + export type SecretScanningAlertSort = z.infer< + typeof SecretScanningAlertSortSchema + > + + export const SecretScanningAlertValiditySchema = z + .any() + .describe( + 'A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.' + ) + export type SecretScanningAlertValidity = z.infer< + typeof SecretScanningAlertValiditySchema + > + + export const SecretScanningAlertPubliclyLeakedSchema = z + .any() + .describe( + 'A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.' + ) + export type SecretScanningAlertPubliclyLeaked = z.infer< + typeof SecretScanningAlertPubliclyLeakedSchema + > + + export const SecretScanningAlertMultiRepoSchema = z + .any() + .describe( + 'A boolean value representing whether or not to filter alerts by the multi-repo tag being present.' + ) + export type SecretScanningAlertMultiRepo = z.infer< + typeof SecretScanningAlertMultiRepoSchema + > + export const ActorSchema = z - .object({ - id: z.number().int(), - login: z.string(), - display_login: z.string().optional(), - gravatar_id: z.string().nullable(), - url: z.string().url(), - avatar_url: z.string().url() - }) - .describe('Actor') + .any() + .describe( + "Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run." + ) export type Actor = z.infer export const IssueTypeSchema = z @@ -1121,10 +1301,7 @@ export namespace github { id: z.number().int().describe('The unique identifier of the issue type.'), node_id: z.string().describe('The node identifier of the issue type.'), name: z.string().describe('The name of the issue type.'), - description: z - .string() - .nullable() - .describe('The description of the issue type.'), + description: z.string().describe('The description of the issue type.'), color: z .enum([ 'gray', @@ -1136,7 +1313,6 @@ export namespace github { 'pink', 'purple' ]) - .nullable() .describe('The color of the issue type.') .optional(), created_at: z @@ -1154,7 +1330,6 @@ export namespace github { .describe('The enabled state of the issue type.') .optional() }) - .nullable() .describe('The type of issue.') export type IssueType = z.infer @@ -1205,7 +1380,7 @@ export namespace github { user_view_type: z.string().optional(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -1219,15 +1394,15 @@ export namespace github { received_events_url: z.string().url(), type: z.string(), site_admin: z.boolean(), - name: z.string().nullable(), - company: z.string().nullable(), - blog: z.string().nullable(), - location: z.string().nullable(), - email: z.string().email().nullable(), - notification_email: z.string().email().nullable().optional(), - hireable: z.boolean().nullable(), - bio: z.string().nullable(), - twitter_username: z.string().nullable().optional(), + name: z.string(), + company: z.string(), + blog: z.string(), + location: z.string(), + email: z.string().email(), + notification_email: z.string().email().optional(), + hireable: z.boolean(), + bio: z.string(), + twitter_username: z.string().optional(), public_repos: z.number().int(), public_gists: z.number().int(), followers: z.number().int(), @@ -1252,17 +1427,32 @@ export namespace github { .describe('Public User') export type PublicUser = z.infer + export const GistIdSchema = z + .any() + .describe('The unique identifier of the gist.') + export type GistId = z.infer + + export const CommentIdSchema = z + .any() + .describe('The unique identifier of the comment.') + export type CommentId = z.infer + export const GitignoreTemplateSchema = z .object({ name: z.string(), source: z.string() }) .describe('Gitignore Template') export type GitignoreTemplate = z.infer + export const LabelsSchema = z + .any() + .describe('A list of comma separated label names. Example: `bug,ui,@high`') + export type Labels = z.infer + export const LicenseSimpleSchema = z .object({ key: z.string(), name: z.string(), - url: z.string().url().nullable(), - spdx_id: z.string().nullable(), + url: z.string().url(), + spdx_id: z.string(), node_id: z.string(), html_url: z.string().url().optional() }) @@ -1273,8 +1463,8 @@ export namespace github { .object({ key: z.string(), name: z.string(), - spdx_id: z.string().nullable(), - url: z.string().url().nullable(), + spdx_id: z.string(), + url: z.string().url(), node_id: z.string(), html_url: z.string().url(), description: z.string(), @@ -1300,7 +1490,7 @@ export namespace github { yearly_price_in_cents: z.number().int(), price_model: z.enum(['FREE', 'FLAT_RATE', 'PER_UNIT']), has_free_trial: z.boolean(), - unit_name: z.string().nullable(), + unit_name: z.string(), state: z.string(), bullets: z.array(z.string()) }) @@ -1309,6 +1499,19 @@ export namespace github { typeof MarketplaceListingPlanSchema > + export const AccountIdSchema = z.any().describe('account_id parameter') + export type AccountId = z.infer + + export const PlanIdSchema = z + .any() + .describe('The unique identifier of the plan.') + export type PlanId = z.infer + + export const SortSchema = z + .any() + .describe('The property to sort the results by.') + export type Sort = z.infer + export const ApiOverviewSchema = z .object({ verifiable_password_authentication: z.boolean(), @@ -1359,46 +1562,84 @@ export namespace github { .describe('Api Overview') export type ApiOverview = z.infer - export const SecurityAndAnalysisSchema = z - .object({ - advanced_security: z - .object({ status: z.enum(['enabled', 'disabled']).optional() }) - .optional(), - dependabot_security_updates: z - .object({ - status: z - .enum(['enabled', 'disabled']) - .describe( - 'The enablement status of Dependabot security updates for the repository.' - ) - .optional() - }) - .describe( - 'Enable or disable Dependabot security updates for the repository.' - ) - .optional(), - secret_scanning: z - .object({ status: z.enum(['enabled', 'disabled']).optional() }) - .optional(), - secret_scanning_push_protection: z - .object({ status: z.enum(['enabled', 'disabled']).optional() }) - .optional(), - secret_scanning_non_provider_patterns: z - .object({ status: z.enum(['enabled', 'disabled']).optional() }) - .optional(), - secret_scanning_ai_detection: z - .object({ status: z.enum(['enabled', 'disabled']).optional() }) - .optional() - }) - .nullable() + export const OwnerSchema = z + .any() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ) + export type Owner = z.infer + + export const RepoSchema = z + .any() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + export type Repo = z.infer + + export const SecurityAndAnalysisSchema = z.object({ + advanced_security: z + .object({ status: z.enum(['enabled', 'disabled']).optional() }) + .optional(), + dependabot_security_updates: z + .object({ + status: z + .enum(['enabled', 'disabled']) + .describe( + 'The enablement status of Dependabot security updates for the repository.' + ) + .optional() + }) + .describe( + 'Enable or disable Dependabot security updates for the repository.' + ) + .optional(), + secret_scanning: z + .object({ status: z.enum(['enabled', 'disabled']).optional() }) + .optional(), + secret_scanning_push_protection: z + .object({ status: z.enum(['enabled', 'disabled']).optional() }) + .optional(), + secret_scanning_non_provider_patterns: z + .object({ status: z.enum(['enabled', 'disabled']).optional() }) + .optional(), + secret_scanning_ai_detection: z + .object({ status: z.enum(['enabled', 'disabled']).optional() }) + .optional() + }) export type SecurityAndAnalysis = z.infer + export const AllSchema = z + .any() + .describe('If `true`, show notifications marked as read.') + export type All = z.infer + + export const ParticipatingSchema = z + .any() + .describe( + 'If `true`, only shows notifications in which the user is directly participating or mentioned.' + ) + export type Participating = z.infer + + export const BeforeSchema = z + .any() + .describe( + 'Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type Before = z.infer + + export const ThreadIdSchema = z + .any() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + export type ThreadId = z.infer + export const ThreadSubscriptionSchema = z .object({ subscribed: z.boolean(), ignored: z.boolean(), - reason: z.string().nullable(), - created_at: z.string().datetime({ offset: true }).nullable(), + reason: z.string(), + created_at: z.string().datetime({ offset: true }), url: z.string().url(), thread_url: z.string().url().optional(), repository_url: z.string().url().optional() @@ -1419,11 +1660,18 @@ export namespace github { members_url: z.string(), public_members_url: z.string(), avatar_url: z.string(), - description: z.string().nullable() + description: z.string() }) .describe('A GitHub organization.') export type OrganizationSimple = z.infer + export const SinceOrgSchema = z + .any() + .describe( + 'An organization ID. Only return organizations with an ID greater than this ID.' + ) + export type SinceOrg = z.infer + export const BillingUsageReportSchema = z.object({ usageItems: z .array( @@ -1457,6 +1705,47 @@ export namespace github { }) export type BillingUsageReport = z.infer + export const OrgSchema = z + .any() + .describe('The organization name. The name is not case sensitive.') + export type Org = z.infer + + export const BillingUsageReportYearSchema = z + .any() + .describe( + 'If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.' + ) + export type BillingUsageReportYear = z.infer< + typeof BillingUsageReportYearSchema + > + + export const BillingUsageReportMonthSchema = z + .any() + .describe( + 'If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used.' + ) + export type BillingUsageReportMonth = z.infer< + typeof BillingUsageReportMonthSchema + > + + export const BillingUsageReportDaySchema = z + .any() + .describe( + 'If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.' + ) + export type BillingUsageReportDay = z.infer< + typeof BillingUsageReportDaySchema + > + + export const BillingUsageReportHourSchema = z + .any() + .describe( + 'If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used.' + ) + export type BillingUsageReportHour = z.infer< + typeof BillingUsageReportHourSchema + > + export const OrganizationFullSchema = z .object({ login: z.string(), @@ -1470,13 +1759,13 @@ export namespace github { members_url: z.string(), public_members_url: z.string(), avatar_url: z.string(), - description: z.string().nullable(), + description: z.string(), name: z.string().optional(), company: z.string().optional(), blog: z.string().url().optional(), location: z.string().optional(), email: z.string().email().optional(), - twitter_username: z.string().nullable().optional(), + twitter_username: z.string().optional(), is_verified: z.boolean().optional(), has_organization_projects: z.boolean(), has_repository_projects: z.boolean(), @@ -1488,17 +1777,16 @@ export namespace github { type: z.string(), total_private_repos: z.number().int().optional(), owned_private_repos: z.number().int().optional(), - private_gists: z.number().int().nullable().optional(), - disk_usage: z.number().int().nullable().optional(), + private_gists: z.number().int().optional(), + disk_usage: z.number().int().optional(), collaborators: z .number() .int() - .nullable() .describe( 'The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.' ) .optional(), - billing_email: z.string().email().nullable().optional(), + billing_email: z.string().email().optional(), plan: z .object({ name: z.string(), @@ -1508,9 +1796,9 @@ export namespace github { seats: z.number().int().optional() }) .optional(), - default_repository_permission: z.string().nullable().optional(), - members_can_create_repositories: z.boolean().nullable().optional(), - two_factor_requirement_enabled: z.boolean().nullable().optional(), + default_repository_permission: z.string().optional(), + members_can_create_repositories: z.boolean().optional(), + two_factor_requirement_enabled: z.boolean().optional(), members_allowed_repository_creation_type: z.string().optional(), members_can_create_public_repositories: z.boolean().optional(), members_can_create_private_repositories: z.boolean().optional(), @@ -1518,7 +1806,7 @@ export namespace github { members_can_create_pages: z.boolean().optional(), members_can_create_public_pages: z.boolean().optional(), members_can_create_private_pages: z.boolean().optional(), - members_can_fork_private_repositories: z.boolean().nullable().optional(), + members_can_fork_private_repositories: z.boolean().optional(), web_commit_signoff_required: z.boolean().optional(), advanced_security_enabled_for_new_repositories: z .boolean() @@ -1564,14 +1852,13 @@ export namespace github { .optional(), secret_scanning_push_protection_custom_link: z .string() - .nullable() .describe( 'An optional URL string to display to contributors who are blocked from pushing a secret.' ) .optional(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - archived_at: z.string().datetime({ offset: true }).nullable(), + archived_at: z.string().datetime({ offset: true }), deploy_keys_enabled_for_repositories: z .boolean() .describe( @@ -1636,7 +1923,6 @@ export namespace github { .enum(['github', 'partner', 'custom']) .describe('The image provider.') }) - .nullable() .describe('Provides details of a hosted runner image') export type NullableActionsHostedRunnerPoolImage = z.infer< typeof NullableActionsHostedRunnerPoolImageSchema @@ -1722,6 +2008,11 @@ export namespace github { typeof ActionsHostedRunnerLimitsSchema > + export const HostedRunnerIdSchema = z + .any() + .describe('Unique identifier of the GitHub-hosted runner.') + export type HostedRunnerId = z.infer + export const OidcCustomSubSchema = z .object({ include_claim_keys: z @@ -1760,6 +2051,11 @@ export namespace github { ) export type SelectedActionsUrl = z.infer + export const RepositoryIdSchema = z + .any() + .describe('The unique identifier of the repository.') + export type RepositoryId = z.infer + export const SelectedActionsSchema = z.object({ github_owned_allowed: z .boolean() @@ -1847,6 +2143,18 @@ export namespace github { }) export type RunnerGroupsOrg = z.infer + export const VisibleToRepositorySchema = z + .any() + .describe( + 'Only return runner groups that are allowed to be used by this repository.' + ) + export type VisibleToRepository = z.infer + + export const RunnerGroupIdSchema = z + .any() + .describe('Unique identifier of the self-hosted runner group.') + export type RunnerGroupId = z.infer + export const RunnerLabelSchema = z .object({ id: z @@ -1865,6 +2173,11 @@ export namespace github { .describe('A label for a self hosted runner') export type RunnerLabel = z.infer + export const RunnerIdSchema = z + .any() + .describe('Unique identifier of the self-hosted runner.') + export type RunnerId = z.infer + export const RunnerApplicationSchema = z .object({ os: z.string(), @@ -1882,6 +2195,11 @@ export namespace github { .describe('Runner Application') export type RunnerApplication = z.infer + export const RunnerLabelNameSchema = z + .any() + .describe("The name of a self-hosted runner's custom label.") + export type RunnerLabelName = z.infer + export const OrganizationActionsSecretSchema = z .object({ name: z.string().describe('The name of the secret.'), @@ -1909,6 +2227,9 @@ export namespace github { .describe('The public key used for setting Actions Secrets.') export type ActionsPublicKey = z.infer + export const SecretNameSchema = z.any().describe('The name of the secret.') + export type SecretName = z.infer + export const OrganizationActionsVariableSchema = z .object({ name: z.string().describe('The name of the variable.'), @@ -1935,6 +2256,23 @@ export namespace github { typeof OrganizationActionsVariableSchema > + export const VariablesPerPageSchema = z + .any() + .describe( + 'The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + export type VariablesPerPage = z.infer + + export const VariableNameSchema = z + .any() + .describe('The name of the variable.') + export type VariableName = z.infer + + export const UsernameSchema = z + .any() + .describe('The handle for the GitHub user account.') + export type Username = z.infer + export const AlertInstancesUrlSchema = z .string() .url() @@ -1946,7 +2284,6 @@ export namespace github { export const CodeScanningAlertStateSchema = z .enum(['open', 'dismissed', 'fixed']) - .nullable() .describe('State of a code scanning alert.') export type CodeScanningAlertState = z.infer< typeof CodeScanningAlertStateSchema @@ -1954,7 +2291,6 @@ export namespace github { export const CodeScanningAlertDismissedReasonSchema = z .enum(['false positive', "won't fix", 'used in tests']) - .nullable() .describe( '**Required when the state is dismissed.** The reason for dismissing or closing the alert.' ) @@ -1965,7 +2301,6 @@ export namespace github { export const CodeScanningAlertDismissedCommentSchema = z .string() .max(280) - .nullable() .describe( 'The dismissal comment associated with the dismissal of the alert.' ) @@ -1976,7 +2311,6 @@ export namespace github { export const CodeScanningAlertRuleSummarySchema = z.object({ id: z .string() - .nullable() .describe('A unique identifier for the rule used to detect the alert.') .optional(), name: z @@ -1985,12 +2319,10 @@ export namespace github { .optional(), severity: z .enum(['none', 'note', 'warning', 'error']) - .nullable() .describe('The severity of the alert.') .optional(), security_severity_level: z .enum(['low', 'medium', 'high', 'critical']) - .nullable() .describe('The security severity of the alert.') .optional(), description: z @@ -2003,19 +2335,16 @@ export namespace github { .optional(), tags: z .array(z.string()) - .nullable() .describe('A set of tags applicable for the rule.') .optional(), help: z .string() - .nullable() .describe( 'Detailed documentation for the rule as GitHub Flavored Markdown.' ) .optional(), help_uri: z .string() - .nullable() .describe( 'A link to the documentation for the rule used to detect the alert.' ) @@ -2036,7 +2365,6 @@ export namespace github { export const CodeScanningAnalysisToolVersionSchema = z .string() - .nullable() .describe( 'The version of the tool used to generate the code scanning analysis.' ) @@ -2046,7 +2374,6 @@ export namespace github { export const CodeScanningAnalysisToolGuidSchema = z .string() - .nullable() .describe( 'The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.' ) @@ -2103,7 +2430,6 @@ export namespace github { export const CodeScanningAlertClassificationSchema = z .enum(['source', 'generated', 'test', 'library']) - .nullable() .describe( 'A classification of the file. For example to identify it as generated.' ) @@ -2136,12 +2462,10 @@ export namespace github { .describe('How many cores are available to the codespace.'), prebuild_availability: z .enum(['none', 'ready', 'in_progress']) - .nullable() .describe( 'Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' ) }) - .nullable() .describe('A description of the machine powering a codespace.') export type NullableCodespaceMachine = z.infer< typeof NullableCodespaceMachineSchema @@ -2251,9 +2575,8 @@ export namespace github { members_url: z.string(), public_members_url: z.string(), avatar_url: z.string(), - description: z.string().nullable() + description: z.string() }) - .nullable() .describe('A GitHub organization.') export type NullableOrganizationSimple = z.infer< typeof NullableOrganizationSimpleSchema @@ -2266,7 +2589,7 @@ export namespace github { url: z.string().url().describe('URL for the team'), members_url: z.string(), name: z.string().describe('Name of the team'), - description: z.string().nullable().describe('Description of the team'), + description: z.string().describe('Description of the team'), permission: z .string() .describe('Permission that the team will have for its repositories'), @@ -2288,7 +2611,6 @@ export namespace github { ) .optional() }) - .nullable() .describe( 'Groups of organization members that gives permissions on specified repositories.' ) @@ -2301,8 +2623,8 @@ export namespace github { slug: z.string(), url: z.string().url(), sync_to_organizations: z.string(), - group_id: z.string().nullable().optional(), - group_name: z.string().nullable().optional(), + group_id: z.string().optional(), + group_name: z.string().optional(), html_url: z.string().url(), members_url: z.string(), created_at: z.string().datetime({ offset: true }), @@ -2373,7 +2695,6 @@ export namespace github { .optional(), custom_model_training_date: z .string() - .nullable() .describe('The training date for the custom model.') .optional(), total_engaged_users: z @@ -2450,7 +2771,6 @@ export namespace github { .optional() }) .catchall(z.any()) - .nullable() .describe('Usage metrics for Copilot editor code completions in the IDE.') export type CopilotIdeCodeCompletions = z.infer< typeof CopilotIdeCodeCompletionsSchema @@ -2492,7 +2812,6 @@ export namespace github { .optional(), custom_model_training_date: z .string() - .nullable() .describe('The training date for the custom model.') .optional(), total_engaged_users: z @@ -2535,7 +2854,6 @@ export namespace github { .optional() }) .catchall(z.any()) - .nullable() .describe('Usage metrics for Copilot Chat in the IDE.') export type CopilotIdeChat = z.infer @@ -2563,7 +2881,6 @@ export namespace github { .optional(), custom_model_training_date: z .string() - .nullable() .describe( 'The training date for the custom model (if applicable).' ) @@ -2590,7 +2907,6 @@ export namespace github { .optional() }) .catchall(z.any()) - .nullable() .describe('Usage metrics for Copilot Chat in GitHub.com') export type CopilotDotcomChat = z.infer @@ -2629,7 +2945,6 @@ export namespace github { .optional(), custom_model_training_date: z .string() - .nullable() .describe('The training date for the custom model.') .optional(), total_pr_summaries_created: z @@ -2660,7 +2975,6 @@ export namespace github { .optional() }) .catchall(z.any()) - .nullable() .describe('Usage metrics for Copilot for pull requests.') export type CopilotDotcomPullRequests = z.infer< typeof CopilotDotcomPullRequestsSchema @@ -2785,7 +3099,6 @@ export namespace github { .catchall(z.any()) .describe('Breakdown of Copilot usage by editor for this language') ) - .nullable() .describe( 'Breakdown of Copilot code completions usage by language and editor' ) @@ -2839,6 +3152,13 @@ export namespace github { .describe('Org Hook') export type OrgHook = z.infer + export const HookIdSchema = z + .any() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + export type HookId = z.infer + export const ApiInsightsRouteStatsSchema = z .array( z.object({ @@ -2861,7 +3181,7 @@ export namespace github { 'The total number of requests that were rate limited within the queried time period' ) .optional(), - last_rate_limited_timestamp: z.string().nullable().optional(), + last_rate_limited_timestamp: z.string().optional(), last_request_timestamp: z.string().optional() }) ) @@ -2870,6 +3190,50 @@ export namespace github { typeof ApiInsightsRouteStatsSchema > + export const ApiInsightsActorTypeSchema = z + .any() + .describe('The type of the actor') + export type ApiInsightsActorType = z.infer + + export const ApiInsightsActorIdSchema = z + .any() + .describe('The ID of the actor') + export type ApiInsightsActorId = z.infer + + export const ApiInsightsMinTimestampSchema = z + .any() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type ApiInsightsMinTimestamp = z.infer< + typeof ApiInsightsMinTimestampSchema + > + + export const ApiInsightsMaxTimestampSchema = z + .any() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type ApiInsightsMaxTimestamp = z.infer< + typeof ApiInsightsMaxTimestampSchema + > + + export const ApiInsightsRouteStatsSortSchema = z + .any() + .describe('The property to sort the results by.') + export type ApiInsightsRouteStatsSort = z.infer< + typeof ApiInsightsRouteStatsSortSchema + > + + export const ApiInsightsApiRouteSubstringSchema = z + .any() + .describe( + 'Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.' + ) + export type ApiInsightsApiRouteSubstring = z.infer< + typeof ApiInsightsApiRouteSubstringSchema + > + export const ApiInsightsSubjectStatsSchema = z .array( z.object({ @@ -2878,7 +3242,7 @@ export namespace github { subject_id: z.number().int().optional(), total_request_count: z.number().int().optional(), rate_limited_request_count: z.number().int().optional(), - last_rate_limited_timestamp: z.string().nullable().optional(), + last_rate_limited_timestamp: z.string().optional(), last_request_timestamp: z.string().optional() }) ) @@ -2887,6 +3251,20 @@ export namespace github { typeof ApiInsightsSubjectStatsSchema > + export const ApiInsightsSortSchema = z + .any() + .describe('The property to sort the results by.') + export type ApiInsightsSort = z.infer + + export const ApiInsightsSubjectNameSubstringSchema = z + .any() + .describe( + 'Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.' + ) + export type ApiInsightsSubjectNameSubstring = z.infer< + typeof ApiInsightsSubjectNameSubstringSchema + > + export const ApiInsightsSummaryStatsSchema = z .object({ total_request_count: z @@ -2907,6 +3285,11 @@ export namespace github { typeof ApiInsightsSummaryStatsSchema > + export const ApiInsightsUserIdSchema = z + .any() + .describe('The ID of the user to query for stats') + export type ApiInsightsUserId = z.infer + export const ApiInsightsTimeStatsSchema = z .array( z.object({ @@ -2918,23 +3301,41 @@ export namespace github { .describe('API Insights usage time stats for an organization') export type ApiInsightsTimeStats = z.infer + export const ApiInsightsTimestampIncrementSchema = z + .any() + .describe( + 'The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)' + ) + export type ApiInsightsTimestampIncrement = z.infer< + typeof ApiInsightsTimestampIncrementSchema + > + export const ApiInsightsUserStatsSchema = z .array( z.object({ actor_type: z.string().optional(), actor_name: z.string().optional(), actor_id: z.number().int().optional(), - integration_id: z.number().int().nullable().optional(), - oauth_application_id: z.number().int().nullable().optional(), + integration_id: z.number().int().optional(), + oauth_application_id: z.number().int().optional(), total_request_count: z.number().int().optional(), rate_limited_request_count: z.number().int().optional(), - last_rate_limited_timestamp: z.string().nullable().optional(), + last_rate_limited_timestamp: z.string().optional(), last_request_timestamp: z.string().optional() }) ) .describe('API Insights usage stats for a user') export type ApiInsightsUserStats = z.infer + export const ApiInsightsActorNameSubstringSchema = z + .any() + .describe( + 'Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.' + ) + export type ApiInsightsActorNameSubstring = z.infer< + typeof ApiInsightsActorNameSubstringSchema + > + export const InteractionGroupSchema = z .enum(['existing_users', 'contributors_only', 'collaborators_only']) .describe( @@ -2949,6 +3350,11 @@ export namespace github { ) export type InteractionExpiry = z.infer + export const InvitationIdSchema = z + .any() + .describe('The unique identifier of the invitation.') + export type InvitationId = z.infer + export const OrganizationCreateIssueTypeSchema = z.object({ name: z.string().describe('Name of the issue type.'), is_enabled: z @@ -2964,7 +3370,6 @@ export namespace github { .optional(), description: z .string() - .nullable() .describe('Description of the issue type.') .optional(), color: z @@ -2978,7 +3383,6 @@ export namespace github { 'pink', 'purple' ]) - .nullable() .describe('Color for the issue type.') .optional() }) @@ -3001,7 +3405,6 @@ export namespace github { .optional(), description: z .string() - .nullable() .describe('Description of the issue type.') .optional(), color: z @@ -3015,7 +3418,6 @@ export namespace github { 'pink', 'purple' ]) - .nullable() .describe('Color for the issue type.') .optional() }) @@ -3023,6 +3425,32 @@ export namespace github { typeof OrganizationUpdateIssueTypeSchema > + export const IssueTypeIdSchema = z + .any() + .describe('The unique identifier of the issue type.') + export type IssueTypeId = z.infer + + export const CodespaceNameSchema = z + .any() + .describe('The name of the codespace.') + export type CodespaceName = z.infer + + export const MigrationIdSchema = z + .any() + .describe('The unique identifier of the migration.') + export type MigrationId = z.infer + + export const RepoNameSchema = z.any().describe('repo_name parameter') + export type RepoName = z.infer + + export const TeamSlugSchema = z.any().describe('The slug of the team name.') + export type TeamSlug = z.infer + + export const RoleIdSchema = z + .any() + .describe('The unique identifier of the role.') + export type RoleId = z.infer + export const TeamSimpleSchema = z .object({ id: z.number().int().describe('Unique identifier of the team'), @@ -3030,7 +3458,7 @@ export namespace github { url: z.string().url().describe('URL for the team'), members_url: z.string(), name: z.string().describe('Name of the team'), - description: z.string().nullable().describe('Description of the team'), + description: z.string().describe('Description of the team'), permission: z .string() .describe('Permission that the team will have for its repositories'), @@ -3057,6 +3485,23 @@ export namespace github { ) export type TeamSimple = z.infer + export const PackageVisibilitySchema = z + .any() + .describe( + 'The selected visibility of the packages. This parameter is optional and only filters an existing result set.\n\nThe `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.\nFor the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."' + ) + export type PackageVisibility = z.infer + + export const PackageTypeSchema = z + .any() + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ) + export type PackageType = z.infer + + export const PackageNameSchema = z.any().describe('The name of the package.') + export type PackageName = z.infer + export const PackageVersionSchema = z .object({ id: z @@ -3090,6 +3535,73 @@ export namespace github { .describe('A version of a software package') export type PackageVersion = z.infer + export const PackageVersionIdSchema = z + .any() + .describe('Unique identifier of the package version.') + export type PackageVersionId = z.infer + + export const PersonalAccessTokenSortSchema = z + .any() + .describe('The property by which to sort the results.') + export type PersonalAccessTokenSort = z.infer< + typeof PersonalAccessTokenSortSchema + > + + export const PersonalAccessTokenOwnerSchema = z + .any() + .describe('A list of owner usernames to use to filter the results.') + export type PersonalAccessTokenOwner = z.infer< + typeof PersonalAccessTokenOwnerSchema + > + + export const PersonalAccessTokenRepositorySchema = z + .any() + .describe('The name of the repository to use to filter the results.') + export type PersonalAccessTokenRepository = z.infer< + typeof PersonalAccessTokenRepositorySchema + > + + export const PersonalAccessTokenPermissionSchema = z + .any() + .describe('The permission to use to filter the results.') + export type PersonalAccessTokenPermission = z.infer< + typeof PersonalAccessTokenPermissionSchema + > + + export const PersonalAccessTokenBeforeSchema = z + .any() + .describe( + 'Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type PersonalAccessTokenBefore = z.infer< + typeof PersonalAccessTokenBeforeSchema + > + + export const PersonalAccessTokenAfterSchema = z + .any() + .describe( + 'Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type PersonalAccessTokenAfter = z.infer< + typeof PersonalAccessTokenAfterSchema + > + + export const PersonalAccessTokenTokenIdSchema = z + .any() + .describe('The ID of the token') + export type PersonalAccessTokenTokenId = z.infer< + typeof PersonalAccessTokenTokenIdSchema + > + + export const FineGrainedPersonalAccessTokenIdSchema = z + .any() + .describe( + 'The unique identifier of the fine-grained personal access token.' + ) + export type FineGrainedPersonalAccessTokenId = z.infer< + typeof FineGrainedPersonalAccessTokenIdSchema + > + export const OrgPrivateRegistryConfigurationSchema = z .object({ name: z @@ -3100,7 +3612,6 @@ export namespace github { .describe('The registry type.'), username: z .string() - .nullable() .describe( 'The username to use when authenticating with the private registry.' ) @@ -3174,31 +3685,32 @@ export namespace github { .optional(), default_value: z .union([z.string(), z.array(z.string())]) - .nullable() .describe('Default value of the property') .optional(), description: z .string() - .nullable() .describe('Short description of the property') .optional(), allowed_values: z .array(z.string().max(75)) .max(200) - .nullable() .describe( 'An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.' ) .optional(), values_editable_by: z .enum(['org_actors', 'org_and_repo_actors']) - .nullable() .describe('Who can edit the values of the property') .optional() }) .describe('Custom property defined on an organization') export type CustomProperty = z.infer + export const CustomPropertyNameSchema = z + .any() + .describe('The custom property name') + export type CustomPropertyName = z.infer + export const CustomPropertySetPayloadSchema = z .object({ value_type: z @@ -3210,25 +3722,21 @@ export namespace github { .optional(), default_value: z .union([z.string(), z.array(z.string())]) - .nullable() .describe('Default value of the property') .optional(), description: z .string() - .nullable() .describe('Short description of the property') .optional(), allowed_values: z .array(z.string().max(75)) .max(200) - .nullable() .describe( 'An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.' ) .optional(), values_editable_by: z .enum(['org_actors', 'org_and_repo_actors']) - .nullable() .describe('Who can edit the values of the property') .optional() }) @@ -3242,7 +3750,6 @@ export namespace github { property_name: z.string().describe('The name of the property'), value: z .union([z.string(), z.array(z.string())]) - .nullable() .describe('The value assigned to the property') }) .describe('Custom property name and associated value') @@ -3253,7 +3760,7 @@ export namespace github { url: z.string().url(), key: z.string(), name: z.string(), - html_url: z.string().url().nullable() + html_url: z.string().url() }) .describe('Code of Conduct Simple') export type CodeOfConductSimple = z.infer @@ -3272,7 +3779,6 @@ export namespace github { actor_id: z .number() .int() - .nullable() .describe( 'The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.' ) @@ -3848,6 +4354,13 @@ export namespace github { typeof RepositoryRuleParamsCodeScanningToolSchema > + export const RulesetTargetsSchema = z + .any() + .describe( + 'A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, `branch,tag,push`.\n' + ) + export type RulesetTargets = z.infer + export const RuleSuitesSchema = z .array( z.object({ @@ -3906,6 +4419,41 @@ export namespace github { .describe('Response') export type RuleSuites = z.infer + export const RefInQuerySchema = z + .any() + .describe( + 'The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.' + ) + export type RefInQuery = z.infer + + export const RepositoryNameInQuerySchema = z + .any() + .describe('The name of the repository to filter on.') + export type RepositoryNameInQuery = z.infer< + typeof RepositoryNameInQuerySchema + > + + export const TimePeriodSchema = z + .any() + .describe( + 'The time period to filter by.\n\nFor example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours).' + ) + export type TimePeriod = z.infer + + export const ActorNameInQuerySchema = z + .any() + .describe( + 'The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.' + ) + export type ActorNameInQuery = z.infer + + export const RuleSuiteResultSchema = z + .any() + .describe( + 'The rule results to filter on. When specified, only suites with this result will be returned.' + ) + export type RuleSuiteResult = z.infer + export const RuleSuiteSchema = z .object({ id: z @@ -3916,12 +4464,10 @@ export namespace github { actor_id: z .number() .int() - .nullable() .describe('The number that identifies the user.') .optional(), actor_name: z .string() - .nullable() .describe('The handle for the GitHub user account.') .optional(), before_sha: z @@ -3956,7 +4502,6 @@ export namespace github { .optional(), evaluation_result: z .enum(['pass', 'fail', 'bypass']) - .nullable() .describe( 'The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.' ) @@ -3973,12 +4518,10 @@ export namespace github { id: z .number() .int() - .nullable() .describe('The ID of the rule source.') .optional(), name: z .string() - .nullable() .describe('The name of the rule source.') .optional() }) @@ -3994,7 +4537,6 @@ export namespace github { rule_type: z.string().describe('The type of rule.').optional(), details: z .string() - .nullable() .describe( 'The detailed failure message for the rule. Null if the rule passed.' ) @@ -4007,6 +4549,13 @@ export namespace github { .describe('Response') export type RuleSuite = z.infer + export const RuleSuiteIdSchema = z + .any() + .describe( + 'The unique identifier of the rule suite result.\nTo get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites)\nfor repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites)\nfor organizations.' + ) + export type RuleSuiteId = z.infer + export const RulesetVersionSchema = z .object({ version_id: z @@ -4024,6 +4573,24 @@ export namespace github { .describe('The historical version of a ruleset') export type RulesetVersion = z.infer + export const SecretScanningPaginationBeforeOrgRepoSchema = z + .any() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.' + ) + export type SecretScanningPaginationBeforeOrgRepo = z.infer< + typeof SecretScanningPaginationBeforeOrgRepoSchema + > + + export const SecretScanningPaginationAfterOrgRepoSchema = z + .any() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.' + ) + export type SecretScanningPaginationAfterOrgRepo = z.infer< + typeof SecretScanningPaginationAfterOrgRepoSchema + > + export const ActionsBillingUsageSchema = z.object({ total_minutes_used: z .number() @@ -4174,7 +4741,6 @@ export namespace github { created_on: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time at which the network configuration was created, in ISO 8601 format.' ) @@ -4182,6 +4748,13 @@ export namespace github { .describe('A hosted compute network configuration.') export type NetworkConfiguration = z.infer + export const NetworkConfigurationIdSchema = z + .any() + .describe('Unique identifier of the hosted compute network configuration.') + export type NetworkConfigurationId = z.infer< + typeof NetworkConfigurationIdSchema + > + export const NetworkSettingsSchema = z .object({ id: z @@ -4208,6 +4781,11 @@ export namespace github { .describe('A hosted compute network settings resource.') export type NetworkSettings = z.infer + export const NetworkSettingsIdSchema = z + .any() + .describe('Unique identifier of the hosted compute network settings.') + export type NetworkSettingsId = z.infer + export const TeamOrganizationSchema = z .object({ login: z.string(), @@ -4221,13 +4799,13 @@ export namespace github { members_url: z.string(), public_members_url: z.string(), avatar_url: z.string(), - description: z.string().nullable(), + description: z.string(), name: z.string().optional(), company: z.string().optional(), blog: z.string().url().optional(), location: z.string().optional(), email: z.string().email().optional(), - twitter_username: z.string().nullable().optional(), + twitter_username: z.string().optional(), is_verified: z.boolean().optional(), has_organization_projects: z.boolean(), has_repository_projects: z.boolean(), @@ -4240,10 +4818,10 @@ export namespace github { type: z.string(), total_private_repos: z.number().int().optional(), owned_private_repos: z.number().int().optional(), - private_gists: z.number().int().nullable().optional(), - disk_usage: z.number().int().nullable().optional(), - collaborators: z.number().int().nullable().optional(), - billing_email: z.string().email().nullable().optional(), + private_gists: z.number().int().optional(), + disk_usage: z.number().int().optional(), + collaborators: z.number().int().optional(), + billing_email: z.string().email().optional(), plan: z .object({ name: z.string(), @@ -4253,9 +4831,9 @@ export namespace github { seats: z.number().int().optional() }) .optional(), - default_repository_permission: z.string().nullable().optional(), - members_can_create_repositories: z.boolean().nullable().optional(), - two_factor_requirement_enabled: z.boolean().nullable().optional(), + default_repository_permission: z.string().optional(), + members_can_create_repositories: z.boolean().optional(), + two_factor_requirement_enabled: z.boolean().optional(), members_allowed_repository_creation_type: z.string().optional(), members_can_create_public_repositories: z.boolean().optional(), members_can_create_private_repositories: z.boolean().optional(), @@ -4263,14 +4841,29 @@ export namespace github { members_can_create_pages: z.boolean().optional(), members_can_create_public_pages: z.boolean().optional(), members_can_create_private_pages: z.boolean().optional(), - members_can_fork_private_repositories: z.boolean().nullable().optional(), + members_can_fork_private_repositories: z.boolean().optional(), web_commit_signoff_required: z.boolean().optional(), updated_at: z.string().datetime({ offset: true }), - archived_at: z.string().datetime({ offset: true }).nullable() + archived_at: z.string().datetime({ offset: true }) }) .describe('Team Organization') export type TeamOrganization = z.infer + export const DiscussionNumberSchema = z + .any() + .describe('The number that identifies the discussion.') + export type DiscussionNumber = z.infer + + export const CommentNumberSchema = z + .any() + .describe('The number that identifies the comment.') + export type CommentNumber = z.infer + + export const ReactionIdSchema = z + .any() + .describe('The unique identifier of the reaction.') + export type ReactionId = z.infer + export const TeamMembershipSchema = z .object({ url: z.string().url(), @@ -4285,6 +4878,30 @@ export namespace github { .describe('Team Membership') export type TeamMembership = z.infer + export const ProjectIdSchema = z + .any() + .describe('The unique identifier of the project.') + export type ProjectId = z.infer + + export const SecurityProductSchema = z + .any() + .describe('The security feature to enable or disable.') + export type SecurityProduct = z.infer + + export const OrgSecurityProductEnablementSchema = z + .any() + .describe( + 'The action to take.\n\n`enable_all` means to enable the specified security feature for all repositories in the organization.\n`disable_all` means to disable the specified security feature for all repositories in the organization.' + ) + export type OrgSecurityProductEnablement = z.infer< + typeof OrgSecurityProductEnablementSchema + > + + export const CardIdSchema = z + .any() + .describe('The unique identifier of the card.') + export type CardId = z.infer + export const ProjectColumnSchema = z .object({ url: z.string().url(), @@ -4302,6 +4919,11 @@ export namespace github { .describe('Project columns contain cards of work.') export type ProjectColumn = z.infer + export const ColumnIdSchema = z + .any() + .describe('The unique identifier of the column.') + export type ColumnId = z.infer + export const RateLimitSchema = z.object({ limit: z.number().int(), remaining: z.number().int(), @@ -4322,12 +4944,11 @@ export namespace github { url: z.string(), archive_download_url: z.string(), expired: z.boolean().describe('Whether or not the artifact has expired.'), - created_at: z.string().datetime({ offset: true }).nullable(), - expires_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + created_at: z.string().datetime({ offset: true }), + expires_at: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), digest: z .string() - .nullable() .describe( 'The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.' ) @@ -4340,12 +4961,23 @@ export namespace github { head_branch: z.string().optional(), head_sha: z.string().optional() }) - .nullable() .optional() }) .describe('An artifact') export type Artifact = z.infer + export const ArtifactNameSchema = z + .any() + .describe( + 'The name field of an artifact. When specified, only artifacts with this name will be returned.' + ) + export type ArtifactName = z.infer + + export const ArtifactIdSchema = z + .any() + .describe('The unique identifier of the artifact.') + export type ArtifactId = z.infer + export const ActionsCacheListSchema = z .object({ total_count: z.number().int().describe('Total number of caches'), @@ -4366,6 +4998,39 @@ export namespace github { .describe('Repository actions caches') export type ActionsCacheList = z.infer + export const ActionsCacheGitRefFullSchema = z + .any() + .describe( + 'The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`.' + ) + export type ActionsCacheGitRefFull = z.infer< + typeof ActionsCacheGitRefFullSchema + > + + export const ActionsCacheKeySchema = z + .any() + .describe('An explicit key or prefix for identifying the cache') + export type ActionsCacheKey = z.infer + + export const ActionsCacheListSortSchema = z + .any() + .describe( + 'The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes.' + ) + export type ActionsCacheListSort = z.infer + + export const ActionsCacheKeyRequiredSchema = z + .any() + .describe('A key for identifying the cache.') + export type ActionsCacheKeyRequired = z.infer< + typeof ActionsCacheKeyRequiredSchema + > + + export const CacheIdSchema = z + .any() + .describe('The unique identifier of the GitHub Actions cache.') + export type CacheId = z.infer + export const JobSchema = z .object({ id: z.number().int().describe('The id of the job.'), @@ -4384,7 +5049,7 @@ export namespace github { node_id: z.string(), head_sha: z.string().describe('The SHA of the commit that is being run.'), url: z.string(), - html_url: z.string().nullable(), + html_url: z.string(), status: z .enum([ 'queued', @@ -4405,7 +5070,6 @@ export namespace github { 'timed_out', 'action_required' ]) - .nullable() .describe('The outcome of the job.'), created_at: z .string() @@ -4418,7 +5082,6 @@ export namespace github { completed_at: z .string() .datetime({ offset: true }) - .nullable() .describe('The time that the job finished, in ISO 8601 format.'), name: z.string().describe('The name of the job.'), steps: z @@ -4429,22 +5092,17 @@ export namespace github { .describe( 'The phase of the lifecycle that the job is currently in.' ), - conclusion: z - .string() - .nullable() - .describe('The outcome of the job.'), + conclusion: z.string().describe('The outcome of the job.'), name: z.string().describe('The name of the job.'), number: z.number().int(), started_at: z .string() .datetime({ offset: true }) - .nullable() .describe('The time that the step started, in ISO 8601 format.') .optional(), completed_at: z .string() .datetime({ offset: true }) - .nullable() .describe('The time that the job finished, in ISO 8601 format.') .optional() }) @@ -4460,41 +5118,36 @@ export namespace github { runner_id: z .number() .int() - .nullable() .describe( "The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" ), runner_name: z .string() - .nullable() .describe( "The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" ), runner_group_id: z .number() .int() - .nullable() .describe( "The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" ), runner_group_name: z .string() - .nullable() .describe( "The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" ), - workflow_name: z - .string() - .nullable() - .describe('The name of the workflow.'), - head_branch: z - .string() - .nullable() - .describe('The name of the current branch.') + workflow_name: z.string().describe('The name of the workflow.'), + head_branch: z.string().describe('The name of the current branch.') }) .describe('Information of a job execution in a workflow run') export type Job = z.infer + export const JobIdSchema = z + .any() + .describe('The unique identifier of the job.') + export type JobId = z.infer + export const OidcCustomSubRepoSchema = z .object({ use_default: z @@ -4604,7 +5257,6 @@ export namespace github { .email() .describe("Git email address of the commit's author") }) - .nullable() .describe('Information about the Git author'), committer: z .object({ @@ -4614,13 +5266,99 @@ export namespace github { .email() .describe("Git email address of the commit's committer") }) - .nullable() .describe('Information about the Git committer') }) - .nullable() .describe('A commit.') export type NullableSimpleCommit = z.infer + export const WorkflowRunBranchSchema = z + .any() + .describe( + 'Returns workflow runs associated with a branch. Use the name of the branch of the `push`.' + ) + export type WorkflowRunBranch = z.infer + + export const EventSchema = z + .object({ + id: z.string(), + type: z.string(), + actor: ActorSchema, + repo: z.object({ + id: z.number().int(), + name: z.string(), + url: z.string().url() + }), + org: ActorSchema.optional(), + payload: z.object({ + action: z.string().optional(), + issue: IssueSchema.optional(), + comment: IssueCommentSchema.optional(), + pages: z + .array( + z.object({ + page_name: z.string().optional(), + title: z.string().optional(), + summary: z.string().optional(), + action: z.string().optional(), + sha: z.string().optional(), + html_url: z.string().optional() + }) + ) + .optional() + }), + public: z.boolean(), + created_at: z.string().datetime({ offset: true }) + }) + .describe('Event') + export type Event = z.infer + + export const WorkflowRunStatusSchema = z + .any() + .describe( + 'Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.' + ) + export type WorkflowRunStatus = z.infer + + export const CreatedSchema = z + .any() + .describe( + 'Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)."' + ) + export type Created = z.infer + + export const ExcludePullRequestsSchema = z + .any() + .describe( + 'If `true` pull requests are omitted from the response (empty array).' + ) + export type ExcludePullRequests = z.infer + + export const WorkflowRunCheckSuiteIdSchema = z + .any() + .describe( + 'Returns workflow runs with the `check_suite_id` that you specify.' + ) + export type WorkflowRunCheckSuiteId = z.infer< + typeof WorkflowRunCheckSuiteIdSchema + > + + export const WorkflowRunHeadShaSchema = z + .any() + .describe( + 'Only returns workflow runs that are associated with the specified `head_sha`.' + ) + export type WorkflowRunHeadSha = z.infer + + export const RunIdSchema = z + .any() + .describe('The unique identifier of the workflow run.') + export type RunId = z.infer + + export const AttemptNumberSchema = z + .any() + .describe('The attempt number of the workflow run.') + export type AttemptNumber = z.infer + export const ReviewCustomGatesCommentRequiredSchema = z.object({ environment_name: z .string() @@ -4734,6 +5472,13 @@ export namespace github { .describe('A GitHub Actions workflow') export type Workflow = z.infer + export const WorkflowIdSchema = z + .any() + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) + export type WorkflowId = z.infer + export const WorkflowUsageSchema = z .object({ billable: z.object({ @@ -4763,6 +5508,11 @@ export namespace github { .describe('An autolink reference.') export type Autolink = z.infer + export const AutolinkIdSchema = z + .any() + .describe('The unique identifier of the autolink.') + export type AutolinkId = z.infer + export const CheckAutomatedSecurityFixesSchema = z .object({ enabled: z @@ -4787,7 +5537,7 @@ export namespace github { enforcement_level: z.string().optional(), contexts: z.array(z.string()), checks: z.array( - z.object({ context: z.string(), app_id: z.number().int().nullable() }) + z.object({ context: z.string(), app_id: z.number().int() }) ), contexts_url: z.string().optional(), strict: z.boolean().optional() @@ -4841,13 +5591,13 @@ export namespace github { html_url: z.string().optional(), name: z.string().optional(), slug: z.string().optional(), - description: z.string().nullable().optional(), + description: z.string().optional(), privacy: z.string().optional(), notification_setting: z.string().optional(), permission: z.string().optional(), members_url: z.string().optional(), repositories_url: z.string().optional(), - parent: z.string().nullable().optional() + parent: z.string().optional() }) ), apps: z.array( @@ -4913,16 +5663,15 @@ export namespace github { email: z.string().optional(), date: z.string().optional() }) - .nullable() .describe('Metaproperties for Git author/committer information.') export type NullableGitUser = z.infer export const VerificationSchema = z.object({ verified: z.boolean(), reason: z.string(), - payload: z.string().nullable(), - signature: z.string().nullable(), - verified_at: z.string().nullable() + payload: z.string(), + signature: z.string(), + verified_at: z.string() }) export type Verification = z.infer @@ -4951,30 +5700,42 @@ export namespace github { .describe('Diff Entry') export type DiffEntry = z.infer + export const BranchSchema = z + .any() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + export type Branch = z.infer + export const StatusCheckPolicySchema = z .object({ url: z.string().url(), strict: z.boolean(), contexts: z.array(z.string()), checks: z.array( - z.object({ context: z.string(), app_id: z.number().int().nullable() }) + z.object({ context: z.string(), app_id: z.number().int() }) ), contexts_url: z.string().url() }) .describe('Status Check Policy') export type StatusCheckPolicy = z.infer + export const CheckRunIdSchema = z + .any() + .describe('The unique identifier of the check run.') + export type CheckRunId = z.infer + export const CheckAnnotationSchema = z .object({ path: z.string(), start_line: z.number().int(), end_line: z.number().int(), - start_column: z.number().int().nullable(), - end_column: z.number().int().nullable(), - annotation_level: z.string().nullable(), - title: z.string().nullable(), - message: z.string().nullable(), - raw_details: z.string().nullable(), + start_column: z.number().int(), + end_column: z.number().int(), + annotation_level: z.string(), + title: z.string(), + message: z.string(), + raw_details: z.string(), blob_href: z.string() }) .describe('Check Annotation') @@ -4999,7 +5760,6 @@ export namespace github { .email() .describe("Git email address of the commit's author") }) - .nullable() .describe('Information about the Git author'), committer: z .object({ @@ -5009,16 +5769,48 @@ export namespace github { .email() .describe("Git email address of the commit's committer") }) - .nullable() .describe('Information about the Git committer') }) .describe('A commit.') export type SimpleCommit = z.infer + export const CheckSuiteIdSchema = z + .any() + .describe('The unique identifier of the check suite.') + export type CheckSuiteId = z.infer + + export const CheckNameSchema = z + .any() + .describe('Returns check runs with the specified `name`.') + export type CheckName = z.infer + + export const StatusSchema = z + .object({ + url: z.string(), + avatar_url: z.string(), + id: z.number().int(), + node_id: z.string(), + state: z.string(), + description: z.string(), + target_url: z.string(), + context: z.string(), + created_at: z.string(), + updated_at: z.string(), + creator: NullableSimpleUserSchema + }) + .describe('The status of a commit.') + export type Status = z.infer + + export const PrAliasSchema = z + .any() + .describe( + 'The number of the pull request for the results you want to list.' + ) + export type PrAlias = z.infer + export const CodeScanningAlertRuleSchema = z.object({ id: z .string() - .nullable() .describe('A unique identifier for the rule used to detect the alert.') .optional(), name: z @@ -5027,12 +5819,10 @@ export namespace github { .optional(), severity: z .enum(['none', 'note', 'warning', 'error']) - .nullable() .describe('The severity of the alert.') .optional(), security_severity_level: z .enum(['low', 'medium', 'high', 'critical']) - .nullable() .describe('The security severity of the alert.') .optional(), description: z @@ -5045,19 +5835,16 @@ export namespace github { .optional(), tags: z .array(z.string()) - .nullable() .describe('A set of tags applicable for the rule.') .optional(), help: z .string() - .nullable() .describe( 'Detailed documentation for the rule as GitHub Flavored Markdown.' ) .optional(), help_uri: z .string() - .nullable() .describe( 'A link to the documentation for the rule used to detect the alert.' ) @@ -5092,7 +5879,6 @@ export namespace github { export const CodeScanningAutofixDescriptionSchema = z .string() - .nullable() .describe('The description of an autofix.') export type CodeScanningAutofixDescription = z.infer< typeof CodeScanningAutofixDescriptionSchema @@ -5119,7 +5905,6 @@ export namespace github { .optional(), message: z.string().describe('Commit message to be used.').optional() }) - .nullable() .describe('Commit an autofix for a code scanning alert') export type CodeScanningAutofixCommits = z.infer< typeof CodeScanningAutofixCommitsSchema @@ -5191,7 +5976,6 @@ export namespace github { next_analysis_url: z .string() .url() - .nullable() .describe( 'Next deletable analysis in chain, without last analysis deletion confirmation' ) @@ -5199,7 +5983,6 @@ export namespace github { confirm_delete_url: z .string() .url() - .nullable() .describe( 'Next deletable analysis in chain, with last analysis deletion confirmation' ) @@ -5235,7 +6018,7 @@ export namespace github { .describe('The full, globally unique, name of the repository.'), private: z.boolean().describe('Whether the repository is private.'), stargazers_count: z.number().int(), - updated_at: z.string().datetime({ offset: true }).nullable() + updated_at: z.string().datetime({ offset: true }) }) .describe('Repository Identifier') export type CodeScanningVariantAnalysisRepository = z.infer< @@ -5282,12 +6065,10 @@ export namespace github { .optional(), runner_type: z .enum(['standard', 'labeled']) - .nullable() .describe('Runner type to be used.') .optional(), runner_label: z .string() - .nullable() .describe('Runner label to be used if the runner type is labeled.') .optional(), query_suite: z @@ -5297,12 +6078,10 @@ export namespace github { updated_at: z .string() .datetime({ offset: true }) - .nullable() .describe('Timestamp of latest configuration update.') .optional(), schedule: z .literal('weekly') - .nullable() .describe('The frequency of the periodic analysis.') .optional() }) @@ -5323,7 +6102,6 @@ export namespace github { .optional(), runner_label: z .string() - .nullable() .describe('Runner label to be used if the runner type is labeled.') .optional(), query_suite: z @@ -5380,7 +6158,6 @@ export namespace github { analyses_url: z .string() .url() - .nullable() .describe( 'The REST API URL for getting the analyses associated with the upload.' ) @@ -5388,7 +6165,6 @@ export namespace github { .optional(), errors: z .array(z.string()) - .nullable() .describe('Any errors that ocurred during processing of the delivery.') .readonly() .optional() @@ -5416,7 +6192,6 @@ export namespace github { kind: z.string().describe('The type of error.'), suggestion: z .string() - .nullable() .describe( 'Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.' ) @@ -5460,7 +6235,6 @@ export namespace github { .describe('How many cores are available to the codespace.'), prebuild_availability: z .enum(['none', 'ready', 'in_progress']) - .nullable() .describe( 'Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' ) @@ -5494,11 +6268,11 @@ export namespace github { .object({ login: z.string(), id: z.number().int(), - email: z.string().nullable().optional(), - name: z.string().nullable().optional(), + email: z.string().optional(), + name: z.string().optional(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -5531,11 +6305,11 @@ export namespace github { .object({ login: z.string(), id: z.number().int(), - email: z.string().nullable().optional(), - name: z.string().nullable().optional(), + email: z.string().optional(), + name: z.string().optional(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -5561,7 +6335,6 @@ export namespace github { role_name: z.string(), user_view_type: z.string().optional() }) - .nullable() .describe('Collaborator') export type NullableCollaborator = z.infer @@ -5574,20 +6347,30 @@ export namespace github { .describe('Branch Short') export type BranchShort = z.infer + export const CommitShaSchema = z.any().describe('The SHA of the commit.') + export type CommitSha = z.infer + export const LinkSchema = z .object({ href: z.string() }) .describe('Hypermedia Link') export type Link = z.infer + export const CommitRefSchema = z + .any() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) + export type CommitRef = z.infer + export const SimpleCommitStatusSchema = z.object({ - description: z.string().nullable(), + description: z.string(), id: z.number().int(), node_id: z.string(), state: z.string(), context: z.string(), - target_url: z.string().url().nullable(), - required: z.boolean().nullable().optional(), - avatar_url: z.string().url().nullable(), + target_url: z.string().url(), + required: z.boolean().optional(), + avatar_url: z.string().url(), url: z.string().url(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }) @@ -5599,17 +6382,17 @@ export namespace github { url: z.string().url(), key: z.string(), name: z.string(), - html_url: z.string().url().nullable() + html_url: z.string().url() }) - .nullable() .describe('Code of Conduct Simple') export type NullableCodeOfConductSimple = z.infer< typeof NullableCodeOfConductSimpleSchema > - export const NullableCommunityHealthFileSchema = z - .object({ url: z.string().url(), html_url: z.string().url() }) - .nullable() + export const NullableCommunityHealthFileSchema = z.object({ + url: z.string().url(), + html_url: z.string().url() + }) export type NullableCommunityHealthFile = z.infer< typeof NullableCommunityHealthFileSchema > @@ -5624,12 +6407,12 @@ export namespace github { content: z.string().optional(), sha: z.string(), url: z.string().url(), - git_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - download_url: z.string().url().nullable(), + git_url: z.string().url(), + html_url: z.string().url(), + download_url: z.string().url(), _links: z.object({ - git: z.string().url().nullable(), - html: z.string().url().nullable(), + git: z.string().url(), + html: z.string().url(), self: z.string().url() }) }) @@ -5647,12 +6430,12 @@ export namespace github { content: z.string(), sha: z.string(), url: z.string().url(), - git_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - download_url: z.string().url().nullable(), + git_url: z.string().url(), + html_url: z.string().url(), + download_url: z.string().url(), _links: z.object({ - git: z.string().url().nullable(), - html: z.string().url().nullable(), + git: z.string().url(), + html: z.string().url(), self: z.string().url() }), target: z.string().optional(), @@ -5670,12 +6453,12 @@ export namespace github { path: z.string(), sha: z.string(), url: z.string().url(), - git_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - download_url: z.string().url().nullable(), + git_url: z.string().url(), + html_url: z.string().url(), + download_url: z.string().url(), _links: z.object({ - git: z.string().url().nullable(), - html: z.string().url().nullable(), + git: z.string().url(), + html: z.string().url(), self: z.string().url() }) }) @@ -5691,12 +6474,12 @@ export namespace github { path: z.string(), sha: z.string(), url: z.string().url(), - git_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - download_url: z.string().url().nullable(), + git_url: z.string().url(), + html_url: z.string().url(), + download_url: z.string().url(), _links: z.object({ - git: z.string().url().nullable(), - html: z.string().url().nullable(), + git: z.string().url(), + html: z.string().url(), self: z.string().url() }) }) @@ -5705,26 +6488,24 @@ export namespace github { export const FileCommitSchema = z .object({ - content: z - .object({ - name: z.string().optional(), - path: z.string().optional(), - sha: z.string().optional(), - size: z.number().int().optional(), - url: z.string().optional(), - html_url: z.string().optional(), - git_url: z.string().optional(), - download_url: z.string().optional(), - type: z.string().optional(), - _links: z - .object({ - self: z.string().optional(), - git: z.string().optional(), - html: z.string().optional() - }) - .optional() - }) - .nullable(), + content: z.object({ + name: z.string().optional(), + path: z.string().optional(), + sha: z.string().optional(), + size: z.number().int().optional(), + url: z.string().optional(), + html_url: z.string().optional(), + git_url: z.string().optional(), + download_url: z.string().optional(), + type: z.string().optional(), + _links: z + .object({ + self: z.string().optional(), + git: z.string().optional(), + html: z.string().optional() + }) + .optional() + }), commit: z.object({ sha: z.string().optional(), node_id: z.string().optional(), @@ -5761,9 +6542,9 @@ export namespace github { .object({ verified: z.boolean().optional(), reason: z.string().optional(), - signature: z.string().nullable().optional(), - payload: z.string().nullable().optional(), - verified_at: z.string().nullable().optional() + signature: z.string().optional(), + payload: z.string().optional(), + verified_at: z.string().optional() }) .optional() }) @@ -5777,7 +6558,7 @@ export namespace github { id: z.number().int().optional(), node_id: z.string().optional(), avatar_url: z.string().url().optional(), - gravatar_id: z.string().nullable().optional(), + gravatar_id: z.string().optional(), url: z.string().url().optional(), html_url: z.string().url().optional(), followers_url: z.string().url().optional(), @@ -5799,6 +6580,15 @@ export namespace github { .describe('Contributor') export type Contributor = z.infer + export const DependabotAlertCommaSeparatedManifestsSchema = z + .any() + .describe( + 'A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.' + ) + export type DependabotAlertCommaSeparatedManifests = z.infer< + typeof DependabotAlertCommaSeparatedManifestsSchema + > + export const DependabotSecretSchema = z .object({ name: z.string().describe('The name of the secret.'), @@ -5816,9 +6606,9 @@ export namespace github { ecosystem: z.string(), name: z.string(), version: z.string(), - package_url: z.string().nullable(), - license: z.string().nullable(), - source_repository_url: z.string().nullable(), + package_url: z.string(), + license: z.string(), + source_repository_url: z.string(), vulnerabilities: z.array( z.object({ severity: z.string(), @@ -5837,6 +6627,13 @@ export namespace github { .describe('A diff of the dependencies between two commits.') export type DependencyGraphDiff = z.infer + export const ManifestPathSchema = z + .any() + .describe( + 'The full path, relative to the repository root, of the dependency manifest file.' + ) + export type ManifestPath = z.infer + export const DependencyGraphSpdxSbomSchema = z .object({ sbom: z.object({ @@ -5973,12 +6770,15 @@ export namespace github { > export const MetadataSchema = z - .record(z.union([z.string(), z.number(), z.boolean()]).nullable()) + .record(z.union([z.string(), z.number(), z.boolean()])) .describe( 'User-defined metadata to store domain-specific information limited to 8 keys with scalar values.' ) export type Metadata = z.infer + export const DeploymentIdSchema = z.any().describe('deployment_id parameter') + export type DeploymentId = z.infer + export const WaitTimerSchema = z .number() .int() @@ -6000,7 +6800,6 @@ export namespace github { 'Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.' ) }) - .nullable() .describe( 'The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.' ) @@ -6008,6 +6807,13 @@ export namespace github { typeof DeploymentBranchPolicySettingsSchema > + export const EnvironmentNameSchema = z + .any() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + export type EnvironmentName = z.infer + export const PreventSelfReviewSchema = z .boolean() .describe( @@ -6054,6 +6860,11 @@ export namespace github { typeof DeploymentBranchPolicyNamePatternWithTypeSchema > + export const BranchPolicyIdSchema = z + .any() + .describe('The unique identifier of the branch policy.') + export type BranchPolicyId = z.infer + export const DeploymentBranchPolicyNamePatternSchema = z.object({ name: z .string() @@ -6097,6 +6908,11 @@ export namespace github { typeof DeploymentProtectionRulesSchema > + export const ProtectionRuleIdSchema = z + .any() + .describe('The unique identifier of the protection rule.') + export type ProtectionRuleId = z.infer + export const ShortBlobSchema = z .object({ url: z.string(), sha: z.string() }) .describe('Short Blob') @@ -6108,7 +6924,7 @@ export namespace github { encoding: z.string(), url: z.string().url(), sha: z.string(), - size: z.number().int().nullable(), + size: z.number().int(), node_id: z.string(), highlighted_content: z.string().optional() }) @@ -6157,9 +6973,9 @@ export namespace github { verification: z.object({ verified: z.boolean(), reason: z.string(), - signature: z.string().nullable(), - payload: z.string().nullable(), - verified_at: z.string().nullable() + signature: z.string(), + payload: z.string(), + verified_at: z.string() }), html_url: z.string().url() }) @@ -6167,19 +6983,19 @@ export namespace github { export type GitCommit = z.infer export const GitRefSchema = z - .object({ - ref: z.string(), - node_id: z.string(), - url: z.string().url(), - object: z.object({ - type: z.string(), - sha: z.string().min(40).max(40).describe('SHA for the reference'), - url: z.string().url() - }) - }) - .describe('Git references within a repository') + .any() + .describe( + 'The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`.' + ) export type GitRef = z.infer + export const GitRefOnlySchema = z + .any() + .describe( + 'The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) + export type GitRefOnly = z.infer + export const GitTreeSchema = z .object({ sha: z.string(), @@ -6202,15 +7018,15 @@ export namespace github { export type GitTree = z.infer export const HookResponseSchema = z.object({ - code: z.number().int().nullable(), - status: z.string().nullable(), - message: z.string().nullable() + code: z.number().int(), + status: z.string(), + message: z.string() }) export type HookResponse = z.infer export const ImportSchema = z .object({ - vcs: z.string().nullable(), + vcs: z.string(), use_lfs: z.boolean().optional(), vcs_url: z.string().describe('The URL of the originating repository.'), svc_root: z.string().optional(), @@ -6233,12 +7049,12 @@ export namespace github { 'detection_found_nothing', 'detection_needs_auth' ]), - status_text: z.string().nullable().optional(), - failed_step: z.string().nullable().optional(), - error_message: z.string().nullable().optional(), - import_percent: z.number().int().nullable().optional(), - commit_count: z.number().int().nullable().optional(), - push_percent: z.number().int().nullable().optional(), + status_text: z.string().optional(), + failed_step: z.string().optional(), + error_message: z.string().optional(), + import_percent: z.number().int().optional(), + commit_count: z.number().int().optional(), + push_percent: z.number().int().optional(), has_large_files: z.boolean().optional(), large_files_size: z.number().int().optional(), large_files_count: z.number().int().optional(), @@ -6252,7 +7068,7 @@ export namespace github { ) .optional(), message: z.string().optional(), - authors_count: z.number().int().nullable().optional(), + authors_count: z.number().int().optional(), url: z.string().url(), html_url: z.string().url(), authors_url: z.string().url(), @@ -6275,6 +7091,11 @@ export namespace github { .describe('Porter Author') export type PorterAuthor = z.infer + export const SinceUserSchema = z + .any() + .describe('A user ID. Only return users with an ID greater than this ID.') + export type SinceUser = z.infer + export const PorterLargeFileSchema = z .object({ ref_name: z.string(), @@ -6286,15 +7107,15 @@ export namespace github { export type PorterLargeFile = z.infer export const IssueEventLabelSchema = z - .object({ name: z.string().nullable(), color: z.string().nullable() }) + .object({ name: z.string(), color: z.string() }) .describe('Issue Event Label') export type IssueEventLabel = z.infer export const IssueEventDismissedReviewSchema = z.object({ state: z.string(), review_id: z.number().int(), - dismissal_message: z.string().nullable(), - dismissal_commit_id: z.string().nullable().optional() + dismissal_message: z.string(), + dismissal_commit_id: z.string().optional() }) export type IssueEventDismissedReview = z.infer< typeof IssueEventDismissedReviewSchema @@ -6324,6 +7145,11 @@ export namespace github { .describe('Issue Event Rename') export type IssueEventRename = z.infer + export const IssueNumberSchema = z + .any() + .describe('The number that identifies the issue.') + export type IssueNumber = z.infer + export const LabelSchema = z .object({ id: z.number().int().describe('Unique identifier for the label.'), @@ -6332,7 +7158,6 @@ export namespace github { name: z.string().describe('The name of the label.'), description: z .string() - .nullable() .describe('Optional description of the label, such as its purpose.'), color: z .string() @@ -6391,9 +7216,9 @@ export namespace github { verification: z.object({ verified: z.boolean(), reason: z.string(), - signature: z.string().nullable(), - payload: z.string().nullable(), - verified_at: z.string().nullable() + signature: z.string(), + payload: z.string(), + verified_at: z.string() }), html_url: z.string().url() }) @@ -6411,13 +7236,18 @@ export namespace github { verified: z.boolean(), created_at: z.string(), read_only: z.boolean(), - added_by: z.string().nullable().optional(), - last_used: z.string().nullable().optional(), + added_by: z.string().optional(), + last_used: z.string().optional(), enabled: z.boolean().optional() }) .describe('An SSH key granting access to a single repository.') export type DeployKey = z.infer + export const KeyIdSchema = z + .any() + .describe('The unique identifier of the key.') + export type KeyId = z.infer + export const LanguageSchema = z.record(z.number().int()).describe('Language') export type Language = z.infer @@ -6430,6 +7260,11 @@ export namespace github { .describe('Results of a successful merge upstream request') export type MergedUpstream = z.infer + export const MilestoneNumberSchema = z + .any() + .describe('The number that identifies the milestone.') + export type MilestoneNumber = z.infer + export const PagesSourceHashSchema = z.object({ branch: z.string(), path: z.string() @@ -6514,6 +7349,13 @@ export namespace github { typeof PagesDeploymentStatusSchema > + export const PagesDeploymentIdSchema = z + .any() + .describe( + 'The ID of the Pages deployment. You can also give the commit SHA of the deployment.' + ) + export type PagesDeploymentId = z.infer + export const PagesHealthCheckSchema = z .object({ domain: z @@ -6522,33 +7364,30 @@ export namespace github { uri: z.string().optional(), nameservers: z.string().optional(), dns_resolves: z.boolean().optional(), - is_proxied: z.boolean().nullable().optional(), - is_cloudflare_ip: z.boolean().nullable().optional(), - is_fastly_ip: z.boolean().nullable().optional(), - is_old_ip_address: z.boolean().nullable().optional(), - is_a_record: z.boolean().nullable().optional(), - has_cname_record: z.boolean().nullable().optional(), - has_mx_records_present: z.boolean().nullable().optional(), + is_proxied: z.boolean().optional(), + is_cloudflare_ip: z.boolean().optional(), + is_fastly_ip: z.boolean().optional(), + is_old_ip_address: z.boolean().optional(), + is_a_record: z.boolean().optional(), + has_cname_record: z.boolean().optional(), + has_mx_records_present: z.boolean().optional(), is_valid_domain: z.boolean().optional(), is_apex_domain: z.boolean().optional(), - should_be_a_record: z.boolean().nullable().optional(), - is_cname_to_github_user_domain: z.boolean().nullable().optional(), - is_cname_to_pages_dot_github_dot_com: z - .boolean() - .nullable() - .optional(), - is_cname_to_fastly: z.boolean().nullable().optional(), - is_pointed_to_github_pages_ip: z.boolean().nullable().optional(), - is_non_github_pages_ip_present: z.boolean().nullable().optional(), + should_be_a_record: z.boolean().optional(), + is_cname_to_github_user_domain: z.boolean().optional(), + is_cname_to_pages_dot_github_dot_com: z.boolean().optional(), + is_cname_to_fastly: z.boolean().optional(), + is_pointed_to_github_pages_ip: z.boolean().optional(), + is_non_github_pages_ip_present: z.boolean().optional(), is_pages_domain: z.boolean().optional(), - is_served_by_pages: z.boolean().nullable().optional(), + is_served_by_pages: z.boolean().optional(), is_valid: z.boolean().optional(), - reason: z.string().nullable().optional(), + reason: z.string().optional(), responds_to_https: z.boolean().optional(), enforces_https: z.boolean().optional(), - https_error: z.string().nullable().optional(), - is_https_eligible: z.boolean().nullable().optional(), - caa_error: z.string().nullable().optional() + https_error: z.string().optional(), + is_https_eligible: z.boolean().optional(), + caa_error: z.string().optional() }) .optional(), alt_domain: z @@ -6557,40 +7396,41 @@ export namespace github { uri: z.string().optional(), nameservers: z.string().optional(), dns_resolves: z.boolean().optional(), - is_proxied: z.boolean().nullable().optional(), - is_cloudflare_ip: z.boolean().nullable().optional(), - is_fastly_ip: z.boolean().nullable().optional(), - is_old_ip_address: z.boolean().nullable().optional(), - is_a_record: z.boolean().nullable().optional(), - has_cname_record: z.boolean().nullable().optional(), - has_mx_records_present: z.boolean().nullable().optional(), + is_proxied: z.boolean().optional(), + is_cloudflare_ip: z.boolean().optional(), + is_fastly_ip: z.boolean().optional(), + is_old_ip_address: z.boolean().optional(), + is_a_record: z.boolean().optional(), + has_cname_record: z.boolean().optional(), + has_mx_records_present: z.boolean().optional(), is_valid_domain: z.boolean().optional(), is_apex_domain: z.boolean().optional(), - should_be_a_record: z.boolean().nullable().optional(), - is_cname_to_github_user_domain: z.boolean().nullable().optional(), - is_cname_to_pages_dot_github_dot_com: z - .boolean() - .nullable() - .optional(), - is_cname_to_fastly: z.boolean().nullable().optional(), - is_pointed_to_github_pages_ip: z.boolean().nullable().optional(), - is_non_github_pages_ip_present: z.boolean().nullable().optional(), + should_be_a_record: z.boolean().optional(), + is_cname_to_github_user_domain: z.boolean().optional(), + is_cname_to_pages_dot_github_dot_com: z.boolean().optional(), + is_cname_to_fastly: z.boolean().optional(), + is_pointed_to_github_pages_ip: z.boolean().optional(), + is_non_github_pages_ip_present: z.boolean().optional(), is_pages_domain: z.boolean().optional(), - is_served_by_pages: z.boolean().nullable().optional(), + is_served_by_pages: z.boolean().optional(), is_valid: z.boolean().optional(), - reason: z.string().nullable().optional(), + reason: z.string().optional(), responds_to_https: z.boolean().optional(), enforces_https: z.boolean().optional(), - https_error: z.string().nullable().optional(), - is_https_eligible: z.boolean().nullable().optional(), - caa_error: z.string().nullable().optional() + https_error: z.string().optional(), + is_https_eligible: z.boolean().optional(), + caa_error: z.string().optional() }) - .nullable() .optional() }) .describe('Pages Health Check Status') export type PagesHealthCheck = z.infer + export const PullNumberSchema = z + .any() + .describe('The number that identifies the pull request.') + export type PullNumber = z.infer + export const PullRequestMergeResultSchema = z .object({ sha: z.string(), merged: z.boolean(), message: z.string() }) .describe('Pull Request Merge Result') @@ -6598,6 +7438,16 @@ export namespace github { typeof PullRequestMergeResultSchema > + export const ReviewIdSchema = z + .any() + .describe('The unique identifier of the review.') + export type ReviewId = z.infer + + export const AssetIdSchema = z + .any() + .describe('The unique identifier of the asset.') + export type AssetId = z.infer + export const ReleaseNotesContentSchema = z .object({ name: z.string().describe('The generated name of the release'), @@ -6610,6 +7460,11 @@ export namespace github { .describe('Generated name and body describing a release') export type ReleaseNotesContent = z.infer + export const ReleaseIdSchema = z + .any() + .describe('The unique identifier of the release.') + export type ReleaseId = z.infer + export const RepositoryRuleRulesetInfoSchema = z .any() .describe( @@ -6621,7 +7476,6 @@ export namespace github { export const SecretScanningAlertResolutionCommentSchema = z .string() - .nullable() .describe( 'An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.' ) @@ -6895,7 +7749,6 @@ export namespace github { completed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the scan was completed. Empty if the scan is running' ) @@ -6903,7 +7756,6 @@ export namespace github { started_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the scan was started. Empty if the scan is pending' ) @@ -6946,7 +7798,7 @@ export namespace github { .describe( 'Determines if all notifications should be blocked from this repository.' ), - reason: z.string().nullable(), + reason: z.string(), created_at: z.string().datetime({ offset: true }), url: z.string().url(), repository_url: z.string().url() @@ -6978,6 +7830,11 @@ export namespace github { .describe('Tag protection') export type TagProtection = z.infer + export const TagProtectionIdSchema = z + .any() + .describe('The unique identifier of the tag protection.') + export type TagProtectionId = z.infer + export const TopicSchema = z .object({ names: z.array(z.string()) }) .describe('A topic aggregates entities that are related to a subject.') @@ -6990,6 +7847,11 @@ export namespace github { }) export type Traffic = z.infer + export const PerSchema = z + .any() + .describe('The time frame to display results for.') + export type Per = z.infer + export const ContentTrafficSchema = z .object({ path: z.string(), @@ -7009,10 +7871,17 @@ export namespace github { .describe('Referrer Traffic') export type ReferrerTraffic = z.infer + export const SinceRepoSchema = z + .any() + .describe( + 'A repository ID. Only return repositories with an ID greater than this ID.' + ) + export type SinceRepo = z.infer + export const SearchResultTextMatchesSchema = z.array( z.object({ object_url: z.string().optional(), - object_type: z.string().nullable().optional(), + object_type: z.string().optional(), property: z.string().optional(), fragment: z.string().optional(), matches: z @@ -7029,6 +7898,25 @@ export namespace github { typeof SearchResultTextMatchesSchema > + export const OrderSchema = z + .any() + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + export type Order = z.infer + + export const IssuesAdvancedSearchSchema = z + .any() + .describe( + 'Set to `true` to use advanced search.\nExample: `http://api.github.com/search/issues?q={query}&advanced_search=true`' + ) + export type IssuesAdvancedSearch = z.infer + + export const TeamIdSchema = z + .any() + .describe('The unique identifier of the team.') + export type TeamId = z.infer + export const PrivateUserSchema = z .object({ login: z.string(), @@ -7036,7 +7924,7 @@ export namespace github { user_view_type: z.string().optional(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -7050,15 +7938,15 @@ export namespace github { received_events_url: z.string().url(), type: z.string(), site_admin: z.boolean(), - name: z.string().nullable(), - company: z.string().nullable(), - blog: z.string().nullable(), - location: z.string().nullable(), - email: z.string().email().nullable(), - notification_email: z.string().email().nullable().optional(), - hireable: z.boolean().nullable(), - bio: z.string().nullable(), - twitter_username: z.string().nullable().optional(), + name: z.string(), + company: z.string(), + blog: z.string(), + location: z.string(), + email: z.string().email(), + notification_email: z.string().email().optional(), + hireable: z.boolean(), + bio: z.string(), + twitter_username: z.string().optional(), public_repos: z.number().int(), public_gists: z.number().int(), followers: z.number().int(), @@ -7085,6 +7973,11 @@ export namespace github { .describe('Private User') export type PrivateUser = z.infer + export const RepositoryIdInQuerySchema = z + .any() + .describe('ID of the Repository to filter on') + export type RepositoryIdInQuery = z.infer + export const CodespacesSecretSchema = z .object({ name: z.string().describe('The name of the secret'), @@ -7127,25 +8020,15 @@ export namespace github { export const CodespaceExportDetailsSchema = z .object({ - state: z - .string() - .nullable() - .describe('State of the latest export') - .optional(), + state: z.string().describe('State of the latest export').optional(), completed_at: z .string() .datetime({ offset: true }) - .nullable() .describe('Completion time of the last export operation') .optional(), - branch: z - .string() - .nullable() - .describe('Name of the exported branch') - .optional(), + branch: z.string().describe('Name of the exported branch').optional(), sha: z .string() - .nullable() .describe('Git commit SHA of the exported branch') .optional(), id: z.string().describe('Id for the export details').optional(), @@ -7155,7 +8038,6 @@ export namespace github { .optional(), html_url: z .string() - .nullable() .describe('Web url for the exported branch') .optional() }) @@ -7166,12 +8048,19 @@ export namespace github { typeof CodespaceExportDetailsSchema > + export const ExportIdSchema = z + .any() + .describe( + 'The ID of the export operation, or `latest`. Currently only `latest` is currently supported.' + ) + export type ExportId = z.infer + export const EmailSchema = z .object({ email: z.string().email(), primary: z.boolean(), verified: z.boolean(), - visibility: z.string().nullable() + visibility: z.string() }) .describe('Email') export type Email = z.infer @@ -7179,8 +8068,8 @@ export namespace github { export const GpgKeySchema = z .object({ id: z.number().int(), - name: z.string().nullable().optional(), - primary_key_id: z.number().int().nullable(), + name: z.string().optional(), + primary_key_id: z.number().int(), key_id: z.string(), public_key: z.string(), emails: z.array( @@ -7209,8 +8098,8 @@ export namespace github { can_encrypt_storage: z.boolean().optional(), can_certify: z.boolean().optional(), created_at: z.string().optional(), - expires_at: z.string().nullable().optional(), - raw_key: z.string().nullable().optional(), + expires_at: z.string().optional(), + raw_key: z.string().optional(), revoked: z.boolean().optional() }) ), @@ -7219,13 +8108,18 @@ export namespace github { can_encrypt_storage: z.boolean(), can_certify: z.boolean(), created_at: z.string().datetime({ offset: true }), - expires_at: z.string().datetime({ offset: true }).nullable(), + expires_at: z.string().datetime({ offset: true }), revoked: z.boolean(), - raw_key: z.string().nullable() + raw_key: z.string() }) .describe('A unique encryption key') export type GpgKey = z.infer + export const GpgKeyIdSchema = z + .any() + .describe('The unique identifier of the GPG key.') + export type GpgKeyId = z.infer + export const KeySchema = z .object({ key: z.string(), @@ -7245,11 +8139,25 @@ export namespace github { type: z.string(), node_id: z.string().optional(), login: z.string(), - email: z.string().email().nullable().optional(), - organization_billing_email: z.string().email().nullable().optional() + email: z.string().email().optional(), + organization_billing_email: z.string().email().optional() }) export type MarketplaceAccount = z.infer + export const SinceRepoDateSchema = z + .any() + .describe( + 'Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type SinceRepoDate = z.infer + + export const BeforeRepoDateSchema = z + .any() + .describe( + 'Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + export type BeforeRepoDate = z.infer + export const SocialAccountSchema = z .object({ provider: z.string(), url: z.string() }) .describe('Social media account') @@ -7265,6 +8173,18 @@ export namespace github { .describe('A public SSH key used to sign Git commits') export type SshSigningKey = z.infer + export const SshSigningKeyIdSchema = z + .any() + .describe('The unique identifier of the SSH signing key.') + export type SshSigningKeyId = z.infer + + export const SortStarredSchema = z + .any() + .describe( + 'The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.' + ) + export type SortStarred = z.infer + export const HovercardSchema = z .object({ contexts: z.array(z.object({ message: z.string(), octicon: z.string() })) @@ -7284,24 +8204,19 @@ export namespace github { ecosystem: SecurityAdvisoryEcosystemsSchema, name: z .string() - .nullable() .describe('The unique package name within its ecosystem.') }) - .nullable() .describe('The name of the package affected by the vulnerability.'), vulnerable_version_range: z .string() - .nullable() .describe( 'The range of the package versions affected by the vulnerability.' ), first_patched_version: z .string() - .nullable() .describe('The package version that resolves the vulnerability.'), vulnerable_functions: z .array(z.string()) - .nullable() .describe( 'The functions in the package that are affected by the vulnerability.' ) @@ -7357,13 +8272,11 @@ export namespace github { max_teams: z .number() .int() - .nullable() .describe('The maximum allowable teams for the assignment.') .optional(), max_members: z .number() .int() - .nullable() .describe('The maximum allowable members per team.') .optional(), editor: z.string().describe('The selected editor for the assignment.'), @@ -7385,7 +8298,6 @@ export namespace github { deadline: z .string() .datetime({ offset: true }) - .nullable() .describe('The time at which the assignment is due.'), classroom: SimpleClassroomSchema }) @@ -7425,10 +8337,7 @@ export namespace github { .string() .url() .describe('The URL to view the repository on GitHub.com.'), - description: z - .string() - .nullable() - .describe('The repository description.'), + description: z.string().describe('The repository description.'), fork: z.boolean().describe('Whether the repository is a fork.'), url: z .string() @@ -7634,7 +8543,6 @@ export namespace github { .readonly() }) .strict() - .nullable() .describe( 'Details pertaining to the package version that patches this vulnerability.' ) @@ -7662,16 +8570,15 @@ export namespace github { .describe('The state of the milestone.') .default('open'), title: z.string().describe('The title of the milestone.'), - description: z.string().nullable(), + description: z.string(), creator: NullableSimpleUserSchema, open_issues: z.number().int(), closed_issues: z.number().int(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - closed_at: z.string().datetime({ offset: true }).nullable(), - due_on: z.string().datetime({ offset: true }).nullable() + closed_at: z.string().datetime({ offset: true }), + due_on: z.string().datetime({ offset: true }) }) - .nullable() .describe('A collection of related issues and pull requests.') export type NullableMilestone = z.infer @@ -7748,24 +8655,23 @@ export namespace github { id: z.number().int(), login: z.string(), organization_billing_email: z.string().optional(), - email: z.string().nullable().optional(), + email: z.string().optional(), marketplace_pending_change: z .object({ is_installed: z.boolean().optional(), effective_date: z.string().optional(), - unit_count: z.number().int().nullable().optional(), + unit_count: z.number().int().optional(), id: z.number().int().optional(), plan: MarketplaceListingPlanSchema.optional() }) - .nullable() .optional(), marketplace_purchase: z.object({ billing_cycle: z.string().optional(), - next_billing_date: z.string().nullable().optional(), + next_billing_date: z.string().optional(), is_installed: z.boolean().optional(), - unit_count: z.number().int().nullable().optional(), + unit_count: z.number().int().optional(), on_free_trial: z.boolean().optional(), - free_trial_ends_on: z.string().nullable().optional(), + free_trial_ends_on: z.string().optional(), updated_at: z.string().optional(), plan: MarketplaceListingPlanSchema.optional() }) @@ -7791,6 +8697,20 @@ export namespace github { .describe('A self hosted runner') export type Runner = z.infer + export const ToolNameSchema = z + .any() + .describe( + 'The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both.' + ) + export type ToolName = z.infer + + export const ToolGuidSchema = z + .any() + .describe( + 'The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both.' + ) + export type ToolGuid = z.infer + export const CopilotOrganizationDetailsSchema = z .object({ seat_breakdown: CopilotOrganizationSeatBreakdownSchema, @@ -7841,7 +8761,7 @@ export namespace github { node_id: z.string(), name: z.string(), slug: z.string(), - description: z.string().nullable(), + description: z.string(), privacy: z.string().optional(), notification_setting: z.string().optional(), permission: z.string(), @@ -7868,12 +8788,12 @@ export namespace github { export const OrganizationInvitationSchema = z .object({ id: z.number().int(), - login: z.string().nullable(), - email: z.string().nullable(), + login: z.string(), + email: z.string(), role: z.string(), created_at: z.string(), - failed_at: z.string().nullable().optional(), - failed_reason: z.string().nullable().optional(), + failed_at: z.string().optional(), + failed_reason: z.string().optional(), inviter: SimpleUserSchema, team_count: z.number().int(), node_id: z.string(), @@ -7902,19 +8822,16 @@ export namespace github { name: z.string().describe('The name of the role.'), description: z .string() - .nullable() .describe( 'A short description about who this role is for or what permissions it grants.' ) .optional(), base_role: z .enum(['read', 'triage', 'write', 'maintain', 'admin']) - .nullable() .describe('The system role from which this role inherits permissions.') .optional(), source: z .enum(['Organization', 'Enterprise', 'Predefined']) - .nullable() .describe( 'Source answers the question, "where did this role come from?"' ) @@ -7947,7 +8864,7 @@ export namespace github { node_id: z.string(), name: z.string(), slug: z.string(), - description: z.string().nullable(), + description: z.string(), privacy: z.string().optional(), notification_setting: z.string().optional(), permission: z.string(), @@ -7981,13 +8898,13 @@ export namespace github { .array(TeamSimpleSchema) .describe('Team the user has gotten the role through') .optional(), - name: z.string().nullable().optional(), - email: z.string().nullable().optional(), + name: z.string().optional(), + email: z.string().optional(), login: z.string(), id: z.number().int(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -8015,7 +8932,7 @@ export namespace github { .describe( 'Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests.' ), - reason: z.string().nullable().describe('Reason for requesting access.'), + reason: z.string().describe('Reason for requesting access.'), owner: SimpleUserSchema, repository_selection: z .enum(['none', 'all', 'subset']) @@ -8053,13 +8970,11 @@ export namespace github { ), token_expires_at: z .string() - .nullable() .describe( 'Date and time when the associated fine-grained personal access token expires.' ), token_last_used_at: z .string() - .nullable() .describe( 'Date and time when the associated fine-grained personal access token was last used for authentication.' ) @@ -8118,13 +9033,11 @@ export namespace github { ), token_expires_at: z .string() - .nullable() .describe( 'Date and time when the associated fine-grained personal access token expires.' ), token_last_used_at: z .string() - .nullable() .describe( 'Date and time when the associated fine-grained personal access token was last used for authentication.' ) @@ -8145,7 +9058,7 @@ export namespace github { id: z.number().int(), node_id: z.string(), name: z.string().describe('Name of the project'), - body: z.string().nullable().describe('Body of the project'), + body: z.string().describe('Body of the project'), number: z.number().int(), state: z .string() @@ -8295,24 +9208,19 @@ export namespace github { ecosystem: SecurityAdvisoryEcosystemsSchema, name: z .string() - .nullable() .describe('The unique package name within its ecosystem.') }) - .nullable() .describe('The name of the package affected by the vulnerability.'), vulnerable_version_range: z .string() - .nullable() .describe( 'The range of the package versions affected by the vulnerability.' ), patched_versions: z .string() - .nullable() .describe('The package version(s) that resolve the vulnerability.'), vulnerable_functions: z .array(z.string()) - .nullable() .describe('The functions in the package that are affected.') }) .strict() @@ -8356,7 +9264,7 @@ export namespace github { id: z.number().int(), node_id: z.string(), name: z.string(), - body: z.string().nullable(), + body: z.string(), number: z.number().int(), state: z.string(), creator: SimpleUserSchema, @@ -8388,7 +9296,7 @@ export namespace github { url: z.string().url(), id: z.number().int().describe("The project card's ID"), node_id: z.string(), - note: z.string().nullable(), + note: z.string(), creator: NullableSimpleUserSchema, created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), @@ -8542,7 +9450,6 @@ export namespace github { ), commit_oid: z .string() - .nullable() .describe( 'The commit SHA of the repository at the time the CodeQL database was created.' ) @@ -8618,26 +9525,17 @@ export namespace github { .string() .describe('Commit message for the merge commit.') }) - .nullable() .describe('The status of auto merging a pull request.') export type AutoMerge = z.infer - export const StatusSchema = z - .object({ - url: z.string(), - avatar_url: z.string().nullable(), - id: z.number().int(), - node_id: z.string(), - state: z.string(), - description: z.string().nullable(), - target_url: z.string().nullable(), - context: z.string(), - created_at: z.string(), - updated_at: z.string(), - creator: NullableSimpleUserSchema - }) - .describe('The status of a commit.') - export type Status = z.infer + export const DependabotAlertNumberSchema = z + .any() + .describe( + 'The number that identifies a Dependabot alert in its repository.\nYou can find this at the end of the URL for a Dependabot alert within GitHub,\nor in `number` fields in the response from the\n`GET /repos/{owner}/{repo}/dependabot/alerts` operation.' + ) + export type DependabotAlertNumber = z.infer< + typeof DependabotAlertNumberSchema + > export const DependencySchema = z .object({ @@ -8719,15 +9617,15 @@ export namespace github { sha: z.string(), size: z.number().int(), url: z.string().url(), - html_url: z.string().url().nullable(), - git_url: z.string().url().nullable(), - download_url: z.string().url().nullable(), + html_url: z.string().url(), + git_url: z.string().url(), + download_url: z.string().url(), type: z.string(), content: z.string(), encoding: z.string(), _links: z.object({ - git: z.string().url().nullable(), - html: z.string().url().nullable(), + git: z.string().url(), + html: z.string().url(), self: z.string().url() }), license: NullableLicenseSimpleSchema @@ -8748,14 +9646,14 @@ export namespace github { .describe('The state of the milestone.') .default('open'), title: z.string().describe('The title of the milestone.'), - description: z.string().nullable(), + description: z.string(), creator: NullableSimpleUserSchema, open_issues: z.number().int(), closed_issues: z.number().int(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - closed_at: z.string().datetime({ offset: true }).nullable(), - due_on: z.string().datetime({ offset: true }).nullable() + closed_at: z.string().datetime({ offset: true }), + due_on: z.string().datetime({ offset: true }) }) .describe('A collection of related issues and pull requests.') export type Milestone = z.infer @@ -8764,7 +9662,7 @@ export namespace github { .object({ url: z.string().url(), status: z.string(), - error: z.object({ message: z.string().nullable() }), + error: z.object({ message: z.string() }), pusher: NullableSimpleUserSchema, commit: z.string(), duration: z.number().int(), @@ -8781,7 +9679,7 @@ export namespace github { id: z.number().int(), node_id: z.string(), name: z.string().describe('The file name of the asset.'), - label: z.string().nullable(), + label: z.string(), state: z .enum(['uploaded', 'open']) .describe('State of the release asset.'), @@ -8800,7 +9698,6 @@ export namespace github { expire_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -8861,7 +9758,6 @@ export namespace github { ecosystem: SecurityAdvisoryEcosystemsSchema, name: z .string() - .nullable() .describe('The unique package name within its ecosystem.') .optional() }) @@ -8870,46 +9766,39 @@ export namespace github { ), vulnerable_version_range: z .string() - .nullable() .describe( 'The range of the package versions affected by the vulnerability.' ) .optional(), patched_versions: z .string() - .nullable() .describe( 'The package version(s) that resolve the vulnerability.' ) .optional(), vulnerable_functions: z .array(z.string()) - .nullable() .describe('The functions in the package that are affected.') .optional() }) .strict() ) - .nullable() .describe( 'An array of products affected by the vulnerability detailed in a repository security advisory.' ) .optional(), cwe_ids: z .array(z.string()) - .nullable() .describe('A list of Common Weakness Enumeration (CWE) IDs.') .optional(), severity: z .enum(['critical', 'high', 'medium', 'low']) - .nullable() .describe( 'The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.' ) .optional(), cvss_vector_string: z .string() - .nullable() .describe( 'The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.' ) @@ -8976,7 +9865,7 @@ export namespace github { name: z.string(), color: z.string(), default: z.boolean(), - description: z.string().nullable(), + description: z.string(), score: z.number(), text_matches: SearchResultTextMatchesSchema.optional() }) @@ -8988,18 +9877,18 @@ export namespace github { export const TopicSearchResultItemSchema = z .object({ name: z.string(), - display_name: z.string().nullable(), - short_description: z.string().nullable(), - description: z.string().nullable(), - created_by: z.string().nullable(), - released: z.string().nullable(), + display_name: z.string(), + short_description: z.string(), + description: z.string(), + created_by: z.string(), + released: z.string(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), featured: z.boolean(), curated: z.boolean(), score: z.number(), - repository_count: z.number().int().nullable().optional(), - logo_url: z.string().url().nullable().optional(), + repository_count: z.number().int().optional(), + logo_url: z.string().url().optional(), text_matches: SearchResultTextMatchesSchema.optional(), related: z .array( @@ -9014,7 +9903,6 @@ export namespace github { .optional() }) ) - .nullable() .optional(), aliases: z .array( @@ -9029,7 +9917,6 @@ export namespace github { .optional() }) ) - .nullable() .optional() }) .describe('Topic Search Result Item') @@ -9043,7 +9930,7 @@ export namespace github { id: z.number().int(), node_id: z.string(), avatar_url: z.string().url(), - gravatar_id: z.string().nullable(), + gravatar_id: z.string(), url: z.string().url(), html_url: z.string().url(), followers_url: z.string().url(), @@ -9063,16 +9950,16 @@ export namespace github { following: z.number().int().optional(), created_at: z.string().datetime({ offset: true }).optional(), updated_at: z.string().datetime({ offset: true }).optional(), - name: z.string().nullable().optional(), - bio: z.string().nullable().optional(), - email: z.string().email().nullable().optional(), - location: z.string().nullable().optional(), + name: z.string().optional(), + bio: z.string().optional(), + email: z.string().email().optional(), + location: z.string().optional(), site_admin: z.boolean(), - hireable: z.boolean().nullable().optional(), + hireable: z.boolean().optional(), text_matches: SearchResultTextMatchesSchema.optional(), - blog: z.string().nullable().optional(), - company: z.string().nullable().optional(), - suspended_at: z.string().datetime({ offset: true }).nullable().optional(), + blog: z.string().optional(), + company: z.string().optional(), + suspended_at: z.string().datetime({ offset: true }).optional(), user_view_type: z.string().optional() }) .describe('User Search Result Item') @@ -9086,7 +9973,7 @@ export namespace github { client_id: z.string().optional(), owner: z.union([SimpleUserSchema, EnterpriseSchema]), name: z.string().describe('The name of the GitHub app'), - description: z.string().nullable(), + description: z.string(), external_url: z.string().url(), html_url: z.string().url(), created_at: z.string().datetime({ offset: true }), @@ -9110,10 +9997,9 @@ export namespace github { .describe('The number of installations associated with the GitHub app') .optional(), client_secret: z.string().optional(), - webhook_secret: z.string().nullable().optional(), + webhook_secret: z.string().optional(), pem: z.string().optional() }) - .nullable() .describe( 'GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.' ) @@ -9158,7 +10044,7 @@ export namespace github { .describe('Whether the repository is private or public.') .default(false), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -9199,11 +10085,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string(), - mirror_url: z.string().url().nullable(), + mirror_url: z.string().url(), hooks_url: z.string().url(), svn_url: z.string().url(), - homepage: z.string().url().nullable(), - language: z.string().nullable(), + homepage: z.string().url(), + language: z.string(), forks_count: z.number().int(), stargazers_count: z.number().int(), watchers_count: z.number().int(), @@ -9256,9 +10142,9 @@ export namespace github { .string() .describe('The repository visibility: public, private, or internal.') .default('public'), - pushed_at: z.string().datetime({ offset: true }).nullable(), - created_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + pushed_at: z.string().datetime({ offset: true }), + created_at: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), allow_rebase_merge: z .boolean() .describe('Whether to allow rebase merges for pull requests.') @@ -9340,21 +10226,19 @@ export namespace github { .describe('A repository on GitHub.') export type Repository = z.infer - export const NullableScopedInstallationSchema = z - .object({ - permissions: AppPermissionsSchema, - repository_selection: z - .enum(['all', 'selected']) - .describe( - "Describe whether all repositories have been selected or there's a selection involved" - ), - single_file_name: z.string().nullable(), - has_multiple_single_files: z.boolean().optional(), - single_file_paths: z.array(z.string()).optional(), - repositories_url: z.string().url(), - account: SimpleUserSchema - }) - .nullable() + export const NullableScopedInstallationSchema = z.object({ + permissions: AppPermissionsSchema, + repository_selection: z + .enum(['all', 'selected']) + .describe( + "Describe whether all repositories have been selected or there's a selection involved" + ), + single_file_name: z.string(), + has_multiple_single_files: z.boolean().optional(), + single_file_paths: z.array(z.string()).optional(), + repositories_url: z.string().url(), + account: SimpleUserSchema + }) export type NullableScopedInstallation = z.infer< typeof NullableScopedInstallationSchema > @@ -9393,7 +10277,7 @@ export namespace github { client_id: z.string().optional(), owner: z.union([SimpleUserSchema, EnterpriseSchema]), name: z.string().describe('The name of the GitHub app'), - description: z.string().nullable(), + description: z.string(), external_url: z.string().url(), html_url: z.string().url(), created_at: z.string().datetime({ offset: true }), @@ -9417,10 +10301,9 @@ export namespace github { .describe('The number of installations associated with the GitHub app') .optional(), client_secret: z.string().optional(), - webhook_secret: z.string().nullable().optional(), + webhook_secret: z.string().optional(), pem: z.string().optional() }) - .nullable() .describe( 'GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.' ) @@ -9454,7 +10337,7 @@ export namespace github { public: z.boolean(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - description: z.string().nullable(), + description: z.string(), comments: z.number().int(), comments_enabled: z.boolean().optional(), user: NullableSimpleUserSchema, @@ -9566,7 +10449,7 @@ export namespace github { .describe('Whether the repository is private or public.') .default(false), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -9607,11 +10490,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string(), - mirror_url: z.string().url().nullable(), + mirror_url: z.string().url(), hooks_url: z.string().url(), svn_url: z.string().url(), - homepage: z.string().url().nullable(), - language: z.string().nullable(), + homepage: z.string().url(), + language: z.string(), forks_count: z.number().int(), stargazers_count: z.number().int(), watchers_count: z.number().int(), @@ -9664,9 +10547,9 @@ export namespace github { .string() .describe('The repository visibility: public, private, or internal.') .default('public'), - pushed_at: z.string().datetime({ offset: true }).nullable(), - created_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + pushed_at: z.string().datetime({ offset: true }), + created_at: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), allow_rebase_merge: z .boolean() .describe('Whether to allow rebase merges for pull requests.') @@ -9745,7 +10628,6 @@ export namespace github { .describe('Whether anonymous git access is enabled for this repository') .optional() }) - .nullable() .describe('A repository on GitHub.') export type NullableRepository = z.infer @@ -9771,7 +10653,7 @@ export namespace github { html_url: z.string().url(), name: z.string().describe('Name of the team'), slug: z.string(), - description: z.string().nullable(), + description: z.string(), privacy: z .enum(['closed', 'secret']) .describe('The level of privacy this team should have') @@ -9816,7 +10698,7 @@ export namespace github { comments_count: z.number().int(), comments_url: z.string().url(), created_at: z.string().datetime({ offset: true }), - last_edited_at: z.string().datetime({ offset: true }).nullable(), + last_edited_at: z.string().datetime({ offset: true }), html_url: z.string().url(), node_id: z.string(), number: z @@ -9855,7 +10737,7 @@ export namespace github { 'The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.' ), created_at: z.string().datetime({ offset: true }), - last_edited_at: z.string().datetime({ offset: true }).nullable(), + last_edited_at: z.string().datetime({ offset: true }), discussion_url: z.string().url(), html_url: z.string().url(), node_id: z.string(), @@ -9896,7 +10778,7 @@ export namespace github { .describe('Whether the repository is private or public.') .default(false), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -9937,11 +10819,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string(), - mirror_url: z.string().url().nullable(), + mirror_url: z.string().url(), hooks_url: z.string().url(), svn_url: z.string().url(), - homepage: z.string().url().nullable(), - language: z.string().nullable(), + homepage: z.string().url(), + language: z.string(), forks_count: z.number().int(), stargazers_count: z.number().int(), watchers_count: z.number().int(), @@ -9985,9 +10867,9 @@ export namespace github { .string() .describe('The repository visibility: public, private, or internal.') .default('public'), - pushed_at: z.string().datetime({ offset: true }).nullable(), - created_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + pushed_at: z.string().datetime({ offset: true }), + created_at: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), allow_rebase_merge: z .boolean() .describe('Whether to allow rebase merges for pull requests.') @@ -10059,7 +10941,7 @@ export namespace github { id: z.number().int().describe('Unique identifier of the review'), node_id: z.string(), user: SimpleUserSchema, - body: z.string().nullable().describe('The text of the review.'), + body: z.string().describe('The text of the review.'), state: z.string(), html_url: z.string().url(), pull_request_url: z.string().url(), @@ -10078,57 +10960,6 @@ export namespace github { typeof TimelineReviewedEventSchema > - export const PageSchema = z - .object({ - url: z - .string() - .url() - .describe('The API address for accessing this Page resource.'), - status: z - .enum(['built', 'building', 'errored']) - .nullable() - .describe('The status of the most recent build of the Page.'), - cname: z.string().nullable().describe("The Pages site's custom domain"), - protected_domain_state: z - .enum(['pending', 'verified', 'unverified']) - .nullable() - .describe('The state if the domain is verified') - .optional(), - pending_domain_unverified_at: z - .string() - .datetime({ offset: true }) - .nullable() - .describe('The timestamp when a pending domain becomes unverified.') - .optional(), - custom_404: z - .boolean() - .describe('Whether the Page has a custom 404 page.') - .default(false), - html_url: z - .string() - .url() - .describe('The web address the Page can be accessed from.') - .optional(), - build_type: z - .enum(['legacy', 'workflow']) - .nullable() - .describe('The process in which the Page will be built.') - .optional(), - source: PagesSourceHashSchema.optional(), - public: z - .boolean() - .describe( - 'Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site.' - ), - https_certificate: PagesHttpsCertificateSchema.optional(), - https_enforced: z - .boolean() - .describe('Whether https is enabled on the domain') - .optional() - }) - .describe('The configuration for GitHub Pages for a repository.') - export type Page = z.infer - export const PullRequestReviewSchema = z .object({ id: z.number().int().describe('Unique identifier of the review'), @@ -10145,7 +10976,6 @@ export namespace github { submitted_at: z.string().datetime({ offset: true }).optional(), commit_id: z .string() - .nullable() .describe( 'A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`.' ), @@ -10168,7 +10998,6 @@ export namespace github { .describe('A detailed description of what the advisory impacts.'), cve_id: z .string() - .nullable() .describe('The Common Vulnerabilities and Exposures (CVE) ID.') .optional(), vulnerabilities: z @@ -10180,7 +11009,6 @@ export namespace github { ecosystem: SecurityAdvisoryEcosystemsSchema, name: z .string() - .nullable() .describe('The unique package name within its ecosystem.') .optional() }) @@ -10189,21 +11017,18 @@ export namespace github { ), vulnerable_version_range: z .string() - .nullable() .describe( 'The range of the package versions affected by the vulnerability.' ) .optional(), patched_versions: z .string() - .nullable() .describe( 'The package version(s) that resolve the vulnerability.' ) .optional(), vulnerable_functions: z .array(z.string()) - .nullable() .describe('The functions in the package that are affected.') .optional() }) @@ -10214,7 +11039,6 @@ export namespace github { ), cwe_ids: z .array(z.string()) - .nullable() .describe('A list of Common Weakness Enumeration (CWE) IDs.') .optional(), credits: z @@ -10226,21 +11050,18 @@ export namespace github { }) .strict() ) - .nullable() .describe( 'A list of users receiving credit for their participation in the security advisory.' ) .optional(), severity: z .enum(['critical', 'high', 'medium', 'low']) - .nullable() .describe( 'The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.' ) .optional(), cvss_vector_string: z .string() - .nullable() .describe( 'The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.' ) @@ -10271,7 +11092,6 @@ export namespace github { .optional(), cve_id: z .string() - .nullable() .describe('The Common Vulnerabilities and Exposures (CVE) ID.') .optional(), vulnerabilities: z @@ -10283,7 +11103,6 @@ export namespace github { ecosystem: SecurityAdvisoryEcosystemsSchema, name: z .string() - .nullable() .describe('The unique package name within its ecosystem.') .optional() }) @@ -10292,21 +11111,18 @@ export namespace github { ), vulnerable_version_range: z .string() - .nullable() .describe( 'The range of the package versions affected by the vulnerability.' ) .optional(), patched_versions: z .string() - .nullable() .describe( 'The package version(s) that resolve the vulnerability.' ) .optional(), vulnerable_functions: z .array(z.string()) - .nullable() .describe('The functions in the package that are affected.') .optional() }) @@ -10318,7 +11134,6 @@ export namespace github { .optional(), cwe_ids: z .array(z.string()) - .nullable() .describe('A list of Common Weakness Enumeration (CWE) IDs.') .optional(), credits: z @@ -10330,21 +11145,18 @@ export namespace github { }) .strict() ) - .nullable() .describe( 'A list of users receiving credit for their participation in the security advisory.' ) .optional(), severity: z .enum(['critical', 'high', 'medium', 'low']) - .nullable() .describe( 'The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.' ) .optional(), cvss_vector_string: z .string() - .nullable() .describe( 'The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.' ) @@ -10355,14 +11167,12 @@ export namespace github { .optional(), collaborating_users: z .array(z.string()) - .nullable() .describe( 'A list of usernames who have been granted write access to the advisory.' ) .optional(), collaborating_teams: z .array(z.string()) - .nullable() .describe( 'A list of team slugs which have been granted write access to the advisory.' ) @@ -10376,11 +11186,11 @@ export namespace github { export const UserMarketplacePurchaseSchema = z .object({ billing_cycle: z.string(), - next_billing_date: z.string().datetime({ offset: true }).nullable(), - unit_count: z.number().int().nullable(), + next_billing_date: z.string().datetime({ offset: true }), + unit_count: z.number().int(), on_free_trial: z.boolean(), - free_trial_ends_on: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + free_trial_ends_on: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), account: MarketplaceAccountSchema, plan: MarketplaceListingPlanSchema }) @@ -10423,12 +11233,10 @@ export namespace github { max_teams: z .number() .int() - .nullable() .describe('The maximum allowable teams for the assignment.'), max_members: z .number() .int() - .nullable() .describe('The maximum allowable members per team.'), editor: z.string().describe('The selected editor for the assignment.'), accepted: z @@ -10449,7 +11257,6 @@ export namespace github { deadline: z .string() .datetime({ offset: true }) - .nullable() .describe('The time at which the assignment is due.'), starter_code_repository: SimpleClassroomRepositorySchema, classroom: ClassroomSchema @@ -10466,7 +11273,7 @@ export namespace github { owner: SimpleUserSchema, private: z.boolean(), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -10507,11 +11314,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string().optional(), - mirror_url: z.string().nullable().optional(), + mirror_url: z.string().optional(), hooks_url: z.string().url(), svn_url: z.string().optional(), - homepage: z.string().nullable().optional(), - language: z.string().nullable().optional(), + homepage: z.string().optional(), + language: z.string().optional(), forks_count: z.number().int().optional(), stargazers_count: z.number().int().optional(), watchers_count: z.number().int().optional(), @@ -10535,9 +11342,9 @@ export namespace github { archived: z.boolean().optional(), disabled: z.boolean().optional(), visibility: z.string().optional(), - pushed_at: z.string().datetime({ offset: true }).nullable().optional(), - created_at: z.string().datetime({ offset: true }).nullable().optional(), - updated_at: z.string().datetime({ offset: true }).nullable().optional(), + pushed_at: z.string().datetime({ offset: true }).optional(), + created_at: z.string().datetime({ offset: true }).optional(), + updated_at: z.string().datetime({ offset: true }).optional(), permissions: z .object({ admin: z.boolean().optional(), @@ -10561,7 +11368,6 @@ export namespace github { url: z.string().optional(), node_id: z.string().optional() }) - .nullable() .optional(), forks: z.number().int().optional(), open_issues: z.number().int().optional(), @@ -10612,7 +11418,6 @@ export namespace github { last_active_on: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time at which the runner was last used, in ISO 8601 format.' ) @@ -10653,7 +11458,7 @@ export namespace github { .array(RepositorySchema) .describe('The repositories this token has access to') .optional(), - single_file: z.string().nullable().optional(), + single_file: z.string().optional(), repository_selection: z .enum(['all', 'selected']) .describe( @@ -10682,7 +11487,7 @@ export namespace github { owner: SimpleUserSchema, private: z.boolean(), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -10723,11 +11528,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string().optional(), - mirror_url: z.string().nullable().optional(), + mirror_url: z.string().optional(), hooks_url: z.string().url(), svn_url: z.string().optional(), - homepage: z.string().nullable().optional(), - language: z.string().nullable().optional(), + homepage: z.string().optional(), + language: z.string().optional(), forks_count: z.number().int().optional(), stargazers_count: z.number().int().optional(), watchers_count: z.number().int().optional(), @@ -10751,9 +11556,9 @@ export namespace github { archived: z.boolean().optional(), disabled: z.boolean().optional(), visibility: z.string().optional(), - pushed_at: z.string().datetime({ offset: true }).nullable().optional(), - created_at: z.string().datetime({ offset: true }).nullable().optional(), - updated_at: z.string().datetime({ offset: true }).nullable().optional(), + pushed_at: z.string().datetime({ offset: true }).optional(), + created_at: z.string().datetime({ offset: true }).optional(), + updated_at: z.string().datetime({ offset: true }).optional(), permissions: z .object({ admin: z.boolean().optional(), @@ -10777,7 +11582,6 @@ export namespace github { url: z.string().optional(), node_id: z.string().optional() }) - .nullable() .optional(), forks: z.number().int().optional(), open_issues: z.number().int().optional(), @@ -10786,7 +11590,6 @@ export namespace github { web_commit_signoff_required: z.boolean().optional(), security_and_analysis: SecurityAndAnalysisSchema.optional() }) - .nullable() .describe('Minimal Repository') export type NullableMinimalRepository = z.infer< typeof NullableMinimalRepositorySchema @@ -10811,7 +11614,7 @@ export namespace github { environment: z .string() .describe('Name for the target deployment environment.'), - description: z.string().nullable(), + description: z.string(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), statuses_url: z.string().url(), @@ -10895,9 +11698,9 @@ export namespace github { id: z.number().int(), node_id: z.string(), body: z.string(), - path: z.string().nullable(), - position: z.number().int().nullable(), - line: z.number().int().nullable(), + path: z.string(), + position: z.number().int(), + line: z.number().int(), commit_id: z.string(), user: NullableSimpleUserSchema, created_at: z.string().datetime({ offset: true }), @@ -10911,8 +11714,8 @@ export namespace github { export const CommunityProfileSchema = z .object({ health_percentage: z.number().int(), - description: z.string().nullable(), - documentation: z.string().nullable(), + description: z.string(), + documentation: z.string(), files: z.object({ code_of_conduct: NullableCodeOfConductSimpleSchema, code_of_conduct_file: NullableCommunityHealthFileSchema, @@ -10922,7 +11725,7 @@ export namespace github { issue_template: NullableCommunityHealthFileSchema, pull_request_template: NullableCommunityHealthFileSchema }), - updated_at: z.string().datetime({ offset: true }).nullable(), + updated_at: z.string().datetime({ offset: true }), content_reports_enabled: z.boolean().optional() }) .describe('Community Profile') @@ -10987,8 +11790,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, label: z.object({ name: z.string(), color: z.string() }) @@ -11003,8 +11806,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, label: z.object({ name: z.string(), color: z.string() }) @@ -11019,8 +11822,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: IntegrationSchema, assignee: SimpleUserSchema, @@ -11036,8 +11839,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, assignee: SimpleUserSchema, @@ -11053,8 +11856,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, milestone: z.object({ title: z.string() }) @@ -11069,8 +11872,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, milestone: z.object({ title: z.string() }) @@ -11087,8 +11890,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, rename: z.object({ from: z.string(), to: z.string() }) @@ -11103,14 +11906,14 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, dismissed_review: z.object({ state: z.string(), review_id: z.number().int(), - dismissal_message: z.string().nullable(), + dismissal_message: z.string(), dismissal_commit_id: z.string().optional() }) }) @@ -11126,11 +11929,11 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, - lock_reason: z.string().nullable() + lock_reason: z.string() }) .describe('Locked Issue Event') export type LockedIssueEvent = z.infer @@ -11142,8 +11945,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, project_card: z @@ -11169,8 +11972,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, project_card: z @@ -11196,8 +11999,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, project_card: z @@ -11223,8 +12026,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: IntegrationSchema, project_card: z @@ -11249,7 +12052,6 @@ export namespace github { pull_request_review_id: z .number() .int() - .nullable() .describe( 'The ID of the pull request review to which the comment belongs.' ), @@ -11318,18 +12120,15 @@ export namespace github { start_line: z .number() .int() - .nullable() .describe('The first line of the range for a multi-line comment.') .optional(), original_start_line: z .number() .int() - .nullable() .describe('The first line of the range for a multi-line comment.') .optional(), start_side: z .enum(['LEFT', 'RIGHT']) - .nullable() .describe( 'The side of the first line of the range for a multi-line comment.' ) @@ -11378,8 +12177,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, assignee: SimpleUserSchema @@ -11396,8 +12195,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, assignee: SimpleUserSchema @@ -11414,11 +12213,11 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, - state_reason: z.string().nullable().optional() + state_reason: z.string().optional() }) .describe('State Change Issue Event') export type StateChangeIssueEvent = z.infer< @@ -11441,17 +12240,17 @@ export namespace github { owner: NullableSimpleUserSchema, private: z.boolean(), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), pushed_at: z.string().datetime({ offset: true }), - homepage: z.string().url().nullable(), + homepage: z.string().url(), size: z.number().int(), stargazers_count: z.number().int(), watchers_count: z.number().int(), - language: z.string().nullable(), + language: z.string(), forks_count: z.number().int(), open_issues_count: z.number().int(), master_branch: z.string().optional(), @@ -11501,7 +12300,7 @@ export namespace github { open_issues: z.number().int(), watchers: z.number().int(), topics: z.array(z.string()).optional(), - mirror_url: z.string().url().nullable(), + mirror_url: z.string().url(), has_issues: z.boolean(), has_projects: z.boolean(), has_pages: z.boolean(), @@ -11561,7 +12360,7 @@ export namespace github { export const InstallationSchema = z .object({ id: z.number().int().describe('The ID of the installation.'), - account: z.union([SimpleUserSchema, EnterpriseSchema]).nullable(), + account: z.union([SimpleUserSchema, EnterpriseSchema]), repository_selection: z .enum(['all', 'selected']) .describe( @@ -11582,13 +12381,13 @@ export namespace github { events: z.array(z.string()), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - single_file_name: z.string().nullable(), + single_file_name: z.string(), has_multiple_single_files: z.boolean().optional(), single_file_paths: z.array(z.string()).optional(), app_slug: z.string(), suspended_by: NullableSimpleUserSchema, - suspended_at: z.string().datetime({ offset: true }).nullable(), - contact_email: z.string().nullable().optional() + suspended_at: z.string().datetime({ offset: true }), + contact_email: z.string().optional() }) .describe('Installation') export type Installation = z.infer @@ -11615,24 +12414,23 @@ export namespace github { url: z.string().url(), scopes: z .array(z.string()) - .nullable() .describe('A list of scopes that this authorization is in.'), token: z.string(), - token_last_eight: z.string().nullable(), - hashed_token: z.string().nullable(), + token_last_eight: z.string(), + hashed_token: z.string(), app: z.object({ client_id: z.string(), name: z.string(), url: z.string().url() }), - note: z.string().nullable(), - note_url: z.string().url().nullable(), + note: z.string(), + note_url: z.string().url(), updated_at: z.string().datetime({ offset: true }), created_at: z.string().datetime({ offset: true }), - fingerprint: z.string().nullable(), + fingerprint: z.string(), user: NullableSimpleUserSchema.optional(), installation: NullableScopedInstallationSchema.optional(), - expires_at: z.string().datetime({ offset: true }).nullable() + expires_at: z.string().datetime({ offset: true }) }) .describe( 'The authorization for an OAuth app, GitHub App, or a Personal Access Token.' @@ -11667,7 +12465,6 @@ export namespace github { .readonly(), cve_id: z .string() - .nullable() .describe('The unique CVE ID assigned to the advisory.') .readonly(), summary: z @@ -11697,7 +12494,6 @@ export namespace github { .readonly(), vector_string: z .string() - .nullable() .describe('The full CVSS vector string for the advisory.') .readonly() }) @@ -11780,7 +12576,6 @@ export namespace github { withdrawn_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -11805,9 +12600,8 @@ export namespace github { updated_at: z.string().datetime({ offset: true }).optional() }) ) - .nullable() .optional(), - history: z.array(GistHistorySchema).nullable().optional(), + history: z.array(GistHistorySchema).optional(), fork_of: z .object({ url: z.string().url(), @@ -11830,7 +12624,7 @@ export namespace github { public: z.boolean(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - description: z.string().nullable(), + description: z.string(), comments: z.number().int(), comments_enabled: z.boolean().optional(), user: NullableSimpleUserSchema, @@ -11840,7 +12634,6 @@ export namespace github { forks: z.array(z.any()).optional(), history: z.array(z.any()).optional() }) - .nullable() .describe('Gist') .optional(), url: z.string().optional(), @@ -11853,32 +12646,30 @@ export namespace github { html_url: z.string().optional(), files: z .record( - z - .object({ - filename: z.string().optional(), - type: z.string().optional(), - language: z.string().optional(), - raw_url: z.string().optional(), - size: z.number().int().optional(), - truncated: z.boolean().optional(), - content: z.string().optional(), - encoding: z - .string() - .describe( - 'The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.' - ) - .default('utf-8') - }) - .nullable() + z.object({ + filename: z.string().optional(), + type: z.string().optional(), + language: z.string().optional(), + raw_url: z.string().optional(), + size: z.number().int().optional(), + truncated: z.boolean().optional(), + content: z.string().optional(), + encoding: z + .string() + .describe( + 'The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.' + ) + .default('utf-8') + }) ) .optional(), public: z.boolean().optional(), created_at: z.string().optional(), updated_at: z.string().optional(), - description: z.string().nullable().optional(), + description: z.string().optional(), comments: z.number().int().optional(), comments_enabled: z.boolean().optional(), - user: z.string().nullable().optional(), + user: z.string().optional(), comments_url: z.string().optional(), owner: SimpleUserSchema.optional(), truncated: z.boolean().optional() @@ -11899,7 +12690,7 @@ export namespace github { reason: z.string(), unread: z.boolean(), updated_at: z.string(), - last_read_at: z.string().nullable(), + last_read_at: z.string(), url: z.string(), subscription_url: z.string() }) @@ -11994,7 +12785,6 @@ export namespace github { wait_timer_started_at: z .string() .datetime({ offset: true }) - .nullable() .describe('The time that the wait timer began.'), current_user_can_approve: z .boolean() @@ -12032,7 +12822,7 @@ export namespace github { environment: z .string() .describe('Name for the target deployment environment.'), - description: z.string().nullable(), + description: z.string(), creator: NullableSimpleUserSchema, created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), @@ -12143,12 +12933,12 @@ export namespace github { export const ReviewCommentSchema = z .object({ url: z.string().url(), - pull_request_review_id: z.number().int().nullable(), + pull_request_review_id: z.number().int(), id: z.number().int(), node_id: z.string(), diff_hunk: z.string(), path: z.string(), - position: z.number().int().nullable(), + position: z.number().int(), original_position: z.number().int(), commit_id: z.string(), original_commit_id: z.string(), @@ -12176,7 +12966,6 @@ export namespace github { .default('RIGHT'), start_side: z .enum(['LEFT', 'RIGHT']) - .nullable() .describe( 'The side of the first line of the range for a multi-line comment.' ) @@ -12198,13 +12987,11 @@ export namespace github { start_line: z .number() .int() - .nullable() .describe('The first line of the range for a multi-line comment.') .optional(), original_start_line: z .number() .int() - .nullable() .describe( 'The original first line of the range for a multi-line comment.' ) @@ -12219,8 +13006,8 @@ export namespace github { html_url: z.string().url(), assets_url: z.string().url(), upload_url: z.string(), - tarball_url: z.string().url().nullable(), - zipball_url: z.string().url().nullable(), + tarball_url: z.string().url(), + zipball_url: z.string().url(), id: z.number().int(), node_id: z.string(), tag_name: z.string().describe('The name of the tag.'), @@ -12229,8 +13016,8 @@ export namespace github { .describe( 'Specifies the commitish value that determines where the Git tag is created from.' ), - name: z.string().nullable(), - body: z.string().nullable().optional(), + name: z.string(), + body: z.string().optional(), draft: z .boolean() .describe( @@ -12242,7 +13029,7 @@ export namespace github { 'Whether to identify the release as a prerelease or a full release.' ), created_at: z.string().datetime({ offset: true }), - published_at: z.string().datetime({ offset: true }).nullable(), + published_at: z.string().datetime({ offset: true }), author: SimpleUserSchema, assets: z.array(ReleaseAssetSchema), body_html: z.string().optional(), @@ -12266,12 +13053,10 @@ export namespace github { .describe('Automatically generated name of this codespace.'), display_name: z .string() - .nullable() .describe('Display name for this codespace.') .optional(), environment_id: z .string() - .nullable() .describe("UUID identifying this codespace's environment."), owner: SimpleUserSchema, billable_owner: SimpleUserSchema, @@ -12279,14 +13064,12 @@ export namespace github { machine: NullableCodespaceMachineSchema, devcontainer_path: z .string() - .nullable() .describe( 'Path to devcontainer.json from repo root used to create Codespace.' ) .optional(), prebuild: z .boolean() - .nullable() .describe('Whether the codespace was created from a prebuild.'), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), @@ -12354,7 +13137,6 @@ export namespace github { idle_timeout_minutes: z .number() .int() - .nullable() .describe( 'The number of minutes of inactivity after which this codespace will be automatically stopped.' ), @@ -12373,13 +13155,11 @@ export namespace github { publish_url: z .string() .url() - .nullable() .describe('API URL to publish this codespace to a new repository.') .optional(), pulls_url: z .string() .url() - .nullable() .describe( 'API URL for the Pull Request associated with this codespace, if any.' ), @@ -12388,7 +13168,6 @@ export namespace github { .object({ allowed_port_privacy_settings: z .array(z.string()) - .nullable() .describe( 'The privacy settings a user can select from when forwarding a port.' ) @@ -12397,21 +13176,18 @@ export namespace github { .optional(), pending_operation: z .boolean() - .nullable() .describe( 'Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.' ) .optional(), pending_operation_disabled_reason: z .string() - .nullable() .describe( 'Text to show user when codespace is disabled by a pending operation' ) .optional(), idle_timeout_notice: z .string() - .nullable() .describe( 'Text to show user when codespace idle timeout minutes has been overriden by an organization policy' ) @@ -12419,7 +13195,6 @@ export namespace github { retention_period_minutes: z .number() .int() - .nullable() .describe( 'Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).' ) @@ -12427,14 +13202,12 @@ export namespace github { retention_expires_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"' ) .optional(), last_known_stop_notice: z .string() - .nullable() .describe( 'The text to display to a user when a codespace has been stopped for a potentially actionable reason.' ) @@ -12449,7 +13222,6 @@ export namespace github { organization: NullableOrganizationSimpleSchema.optional(), assigning_team: z .union([TeamSchema, EnterpriseTeamSchema]) - .nullable() .describe( 'The team through which the assignee is granted access to GitHub Copilot, if applicable.' ) @@ -12457,7 +13229,6 @@ export namespace github { pending_cancellation_date: z .string() .date() - .nullable() .describe( "The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle." ) @@ -12465,14 +13236,12 @@ export namespace github { last_activity_at: z .string() .datetime({ offset: true }) - .nullable() .describe( "Timestamp of user's last GitHub Copilot activity, in ISO 8601 format." ) .optional(), last_activity_editor: z .string() - .nullable() .describe( 'Last editor that was used by the user for a GitHub Copilot completion.' ) @@ -12655,8 +13424,8 @@ export namespace github { tree: z.object({ sha: z.string(), url: z.string().url() }), verification: VerificationSchema.optional() }), - author: z.union([SimpleUserSchema, EmptyObjectSchema]).nullable(), - committer: z.union([SimpleUserSchema, EmptyObjectSchema]).nullable(), + author: z.union([SimpleUserSchema, EmptyObjectSchema]), + committer: z.union([SimpleUserSchema, EmptyObjectSchema]), parents: z.array( z.object({ sha: z.string(), @@ -12683,10 +13452,10 @@ export namespace github { .string() .describe('The SHA of the commit that is being checked.'), node_id: z.string(), - external_id: z.string().nullable(), + external_id: z.string(), url: z.string(), - html_url: z.string().nullable(), - details_url: z.string().nullable(), + html_url: z.string(), + details_url: z.string(), status: z .enum([ 'queued', @@ -12699,28 +13468,26 @@ export namespace github { .describe( 'The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.' ), - conclusion: z - .enum([ - 'success', - 'failure', - 'neutral', - 'cancelled', - 'skipped', - 'timed_out', - 'action_required' - ]) - .nullable(), - started_at: z.string().datetime({ offset: true }).nullable(), - completed_at: z.string().datetime({ offset: true }).nullable(), + conclusion: z.enum([ + 'success', + 'failure', + 'neutral', + 'cancelled', + 'skipped', + 'timed_out', + 'action_required' + ]), + started_at: z.string().datetime({ offset: true }), + completed_at: z.string().datetime({ offset: true }), output: z.object({ - title: z.string().nullable(), - summary: z.string().nullable(), - text: z.string().nullable(), + title: z.string(), + summary: z.string(), + text: z.string(), annotations_count: z.number().int(), annotations_url: z.string().url() }), name: z.string().describe('The name of the check.'), - check_suite: z.object({ id: z.number().int() }).nullable(), + check_suite: z.object({ id: z.number().int() }), app: NullableIntegrationSchema, pull_requests: z .array(PullRequestMinimalSchema) @@ -12776,8 +13543,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, review_requester: SimpleUserSchema, @@ -12796,8 +13563,8 @@ export namespace github { url: z.string(), actor: SimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string(), performed_via_github_app: NullableIntegrationSchema, review_requester: SimpleUserSchema, @@ -12842,7 +13609,7 @@ export namespace github { repository: MinimalRepositorySchema, score: z.number(), file_size: z.number().int().optional(), - language: z.string().nullable().optional(), + language: z.string().optional(), last_modified_at: z.string().datetime({ offset: true }).optional(), line_numbers: z.array(z.string()).optional(), text_matches: SearchResultTextMatchesSchema.optional() @@ -12858,7 +13625,6 @@ export namespace github { .readonly(), cve_id: z .string() - .nullable() .describe('The Common Vulnerabilities and Exposures (CVE) ID.') .readonly(), url: z.string().describe('The API URL for the advisory.').readonly(), @@ -12870,7 +13636,6 @@ export namespace github { repository_advisory_url: z .string() .url() - .nullable() .describe('The API URL for the repository advisory.') .readonly(), summary: z @@ -12880,7 +13645,6 @@ export namespace github { description: z .string() .max(65_535) - .nullable() .describe('A detailed description of what the advisory entails.'), type: z .enum(['reviewed', 'unreviewed', 'malware']) @@ -12892,7 +13656,6 @@ export namespace github { source_code_location: z .string() .url() - .nullable() .describe("The URL of the advisory's source code."), identifiers: z .array( @@ -12901,15 +13664,12 @@ export namespace github { value: z.string().describe('The identifier value.') }) ) - .nullable() .readonly(), - references: z - .array( - z - .string() - .describe('URLs with more information regarding the advisory.') - ) - .nullable(), + references: z.array( + z + .string() + .describe('URLs with more information regarding the advisory.') + ), published_at: z .string() .datetime({ offset: true }) @@ -12927,7 +13687,6 @@ export namespace github { github_reviewed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was reviewed by GitHub, in ISO 8601 format.' ) @@ -12935,7 +13694,6 @@ export namespace github { nvd_published_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time when the advisory was published in the National Vulnerability Database, in ISO 8601 format.\nThis field is only populated when the advisory is imported from the National Vulnerability Database.' ) @@ -12943,41 +13701,29 @@ export namespace github { withdrawn_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was withdrawn, in ISO 8601 format.' ) .readonly(), vulnerabilities: z .array(VulnerabilitySchema) - .nullable() .describe( 'The products and respective version ranges affected by the advisory.' ), - cvss: z - .object({ - vector_string: z.string().nullable().describe('The CVSS vector.'), - score: z - .number() - .gte(0) - .lte(10) - .nullable() - .describe('The CVSS score.') - .readonly() - }) - .nullable(), + cvss: z.object({ + vector_string: z.string().describe('The CVSS vector.'), + score: z.number().gte(0).lte(10).describe('The CVSS score.').readonly() + }), cvss_severities: CvssSeveritiesSchema.optional(), epss: SecurityAdvisoryEpssSchema.optional(), - cwes: z - .array( - z.object({ - cwe_id: z - .string() - .describe('The Common Weakness Enumeration (CWE) identifier.'), - name: z.string().describe('The name of the CWE.').readonly() - }) - ) - .nullable(), + cwes: z.array( + z.object({ + cwe_id: z + .string() + .describe('The Common Weakness Enumeration (CWE) identifier.'), + name: z.string().describe('The name of the CWE.').readonly() + }) + ), credits: z .array( z.object({ @@ -12985,7 +13731,6 @@ export namespace github { type: SecurityAdvisoryCreditTypesSchema }) ) - .nullable() .describe('The users who contributed to the advisory.') .readonly() }) @@ -13039,7 +13784,6 @@ export namespace github { completed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( "The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available." ) @@ -13262,7 +14006,7 @@ export namespace github { owner: SimpleUserSchema, private: z.boolean(), html_url: z.string().url(), - description: z.string().nullable(), + description: z.string(), fork: z.boolean(), url: z.string().url(), archive_url: z.string(), @@ -13303,11 +14047,11 @@ export namespace github { teams_url: z.string().url(), trees_url: z.string(), clone_url: z.string(), - mirror_url: z.string().url().nullable(), + mirror_url: z.string().url(), hooks_url: z.string().url(), svn_url: z.string().url(), - homepage: z.string().url().nullable(), - language: z.string().nullable(), + homepage: z.string().url(), + language: z.string(), forks_count: z.number().int(), stargazers_count: z.number().int(), watchers_count: z.number().int(), @@ -13349,7 +14093,7 @@ export namespace github { .optional(), allow_rebase_merge: z.boolean().optional(), template_repository: NullableRepositorySchema.optional(), - temp_clone_token: z.string().nullable().optional(), + temp_clone_token: z.string().optional(), allow_squash_merge: z.boolean().optional(), allow_auto_merge: z.boolean().optional(), delete_branch_on_merge: z.boolean().optional(), @@ -13411,11 +14155,7 @@ export namespace github { export const WorkflowRunSchema = z .object({ id: z.number().int().describe('The ID of the workflow run.'), - name: z - .string() - .nullable() - .describe('The name of the workflow run.') - .optional(), + name: z.string().describe('The name of the workflow run.').optional(), node_id: z.string(), check_suite_id: z .number() @@ -13426,7 +14166,7 @@ export namespace github { .string() .describe('The node ID of the associated check suite.') .optional(), - head_branch: z.string().nullable(), + head_branch: z.string(), head_sha: z .string() .describe( @@ -13444,19 +14184,15 @@ export namespace github { 'Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.' ) .optional(), - referenced_workflows: z - .array(ReferencedWorkflowSchema) - .nullable() - .optional(), + referenced_workflows: z.array(ReferencedWorkflowSchema).optional(), event: z.string(), - status: z.string().nullable(), - conclusion: z.string().nullable(), + status: z.string(), + conclusion: z.string(), workflow_id: z.number().int().describe('The ID of the parent workflow.'), url: z.string().describe('The URL to the workflow run.'), html_url: z.string(), pull_requests: z .array(PullRequestMinimalSchema) - .nullable() .describe( 'Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run.' ), @@ -13485,7 +14221,6 @@ export namespace github { rerun_url: z.string().describe('The URL to rerun the workflow run.'), previous_attempt_url: z .string() - .nullable() .describe( 'The URL to the previous attempted run of this workflow, if one exists.' ) @@ -13583,7 +14318,7 @@ export namespace github { .object({ id: z.number().int(), node_id: z.string(), - head_branch: z.string().nullable(), + head_branch: z.string(), head_sha: z .string() .describe('The SHA of the head commit that is being checked.'), @@ -13596,32 +14331,29 @@ export namespace github { 'requested', 'pending' ]) - .nullable() .describe( 'The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites.' ), - conclusion: z - .union([ - z.literal('success'), - z.literal('failure'), - z.literal('neutral'), - z.literal('cancelled'), - z.literal('skipped'), - z.literal('timed_out'), - z.literal('action_required'), - z.literal('startup_failure'), - z.literal('stale'), - z.literal(null) - ]) - .nullable(), - url: z.string().nullable(), - before: z.string().nullable(), - after: z.string().nullable(), - pull_requests: z.array(PullRequestMinimalSchema).nullable(), + conclusion: z.union([ + z.literal('success'), + z.literal('failure'), + z.literal('neutral'), + z.literal('cancelled'), + z.literal('skipped'), + z.literal('timed_out'), + z.literal('action_required'), + z.literal('startup_failure'), + z.literal('stale'), + z.literal(null) + ]), + url: z.string(), + before: z.string(), + after: z.string(), + pull_requests: z.array(PullRequestMinimalSchema), app: NullableIntegrationSchema, repository: MinimalRepositorySchema, - created_at: z.string().datetime({ offset: true }).nullable(), - updated_at: z.string().datetime({ offset: true }).nullable(), + created_at: z.string().datetime({ offset: true }), + updated_at: z.string().datetime({ offset: true }), head_commit: SimpleCommitSchema, latest_check_runs_count: z.number().int(), check_runs_url: z.string(), @@ -13647,7 +14379,6 @@ export namespace github { resolved_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -13655,7 +14386,6 @@ export namespace github { resolved_by: NullableSimpleUserSchema.optional(), resolution_comment: z .string() - .nullable() .describe('An optional comment to resolve an alert.') .optional(), secret_type: z @@ -13671,14 +14401,12 @@ export namespace github { secret: z.string().describe('The secret that was detected.').optional(), push_protection_bypassed: z .boolean() - .nullable() .describe('Whether push protection was bypassed for the detected secret.') .optional(), push_protection_bypassed_by: NullableSimpleUserSchema.optional(), push_protection_bypassed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -13687,18 +14415,15 @@ export namespace github { NullableSimpleUserSchema.optional(), push_protection_bypass_request_reviewer_comment: z .string() - .nullable() .describe('An optional comment when reviewing a push protection bypass.') .optional(), push_protection_bypass_request_comment: z .string() - .nullable() .describe('An optional comment when requesting a push protection bypass.') .optional(), push_protection_bypass_request_html_url: z .string() .url() - .nullable() .describe('The URL to a push protection bypass request.') .optional(), validity: z @@ -13707,19 +14432,16 @@ export namespace github { .optional(), publicly_leaked: z .boolean() - .nullable() .describe('Whether the detected secret was publicly leaked.') .optional(), multi_repo: z .boolean() - .nullable() .describe( 'Whether the detected secret was found in multiple repositories under the same organization or enterprise.' ) .optional(), is_base64_encoded: z .boolean() - .nullable() .describe( 'A boolean value representing whether or not alert is base64 encoded' ) @@ -13773,7 +14495,6 @@ export namespace github { .readonly(), cve_id: z .string() - .nullable() .describe('The Common Vulnerabilities and Exposures (CVE) ID.'), url: z .string() @@ -13792,18 +14513,16 @@ export namespace github { description: z .string() .max(65_535) - .nullable() .describe('A detailed description of what the advisory entails.'), severity: z .enum(['critical', 'high', 'medium', 'low']) - .nullable() .describe('The severity of the advisory.'), - author: SimpleUserSchema.nullable() - .describe('The author of the advisory.') - .readonly(), - publisher: SimpleUserSchema.nullable() - .describe('The publisher of the advisory.') - .readonly(), + author: SimpleUserSchema.describe( + 'The author of the advisory.' + ).readonly(), + publisher: SimpleUserSchema.describe( + 'The publisher of the advisory.' + ).readonly(), identifiers: z .array( z.object({ @@ -13818,7 +14537,6 @@ export namespace github { created_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was created, in ISO 8601 format.' ) @@ -13826,7 +14544,6 @@ export namespace github { updated_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was last updated, in ISO 8601 format.' ) @@ -13834,7 +14551,6 @@ export namespace github { published_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was published, in ISO 8601 format.' ) @@ -13842,7 +14558,6 @@ export namespace github { closed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was closed, in ISO 8601 format.' ) @@ -13850,7 +14565,6 @@ export namespace github { withdrawn_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The date and time of when the advisory was withdrawn, in ISO 8601 format.' ) @@ -13864,23 +14578,12 @@ export namespace github { ) .readonly() }) - .nullable() .readonly(), - vulnerabilities: z - .array(RepositoryAdvisoryVulnerabilitySchema) - .nullable(), - cvss: z - .object({ - vector_string: z.string().nullable().describe('The CVSS vector.'), - score: z - .number() - .gte(0) - .lte(10) - .nullable() - .describe('The CVSS score.') - .readonly() - }) - .nullable(), + vulnerabilities: z.array(RepositoryAdvisoryVulnerabilitySchema), + cvss: z.object({ + vector_string: z.string().describe('The CVSS vector.'), + score: z.number().gte(0).lte(10).describe('The CVSS score.').readonly() + }), cvss_severities: CvssSeveritiesSchema.optional(), cwes: z .array( @@ -13891,40 +14594,27 @@ export namespace github { name: z.string().describe('The name of the CWE.').readonly() }) ) - .nullable() - .readonly(), - cwe_ids: z - .array(z.string()) - .nullable() - .describe('A list of only the CWE IDs.'), - credits: z - .array( - z.object({ - login: z - .string() - .describe('The username of the user credited.') - .optional(), - type: SecurityAdvisoryCreditTypesSchema.optional() - }) - ) - .nullable(), - credits_detailed: z - .array(RepositoryAdvisoryCreditSchema) - .nullable() .readonly(), + cwe_ids: z.array(z.string()).describe('A list of only the CWE IDs.'), + credits: z.array( + z.object({ + login: z + .string() + .describe('The username of the user credited.') + .optional(), + type: SecurityAdvisoryCreditTypesSchema.optional() + }) + ), + credits_detailed: z.array(RepositoryAdvisoryCreditSchema).readonly(), collaborating_users: z .array(SimpleUserSchema) - .nullable() .describe('A list of users that collaborate on the advisory.'), collaborating_teams: z .array(TeamSchema) - .nullable() .describe('A list of teams that collaborate on the advisory.'), - private_fork: SimpleRepositorySchema.nullable() - .describe( - "A temporary private fork of the advisory's repository for collaborating on a fix." - ) - .readonly() + private_fork: SimpleRepositorySchema.describe( + "A temporary private fork of the advisory's repository for collaborating on a fix." + ).readonly() }) .strict() .describe('A repository security advisory.') @@ -13998,29 +14688,29 @@ export namespace github { locked: z.boolean(), title: z.string().describe('The title of the pull request.'), user: SimpleUserSchema, - body: z.string().nullable(), + body: z.string(), labels: z.array( z.object({ id: z.number().int(), node_id: z.string(), url: z.string(), name: z.string(), - description: z.string().nullable(), + description: z.string(), color: z.string(), default: z.boolean() }) ), milestone: NullableMilestoneSchema, - active_lock_reason: z.string().nullable().optional(), + active_lock_reason: z.string().optional(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - closed_at: z.string().datetime({ offset: true }).nullable(), - merged_at: z.string().datetime({ offset: true }).nullable(), - merge_commit_sha: z.string().nullable(), + closed_at: z.string().datetime({ offset: true }), + merged_at: z.string().datetime({ offset: true }), + merge_commit_sha: z.string(), assignee: NullableSimpleUserSchema, - assignees: z.array(SimpleUserSchema).nullable().optional(), - requested_reviewers: z.array(SimpleUserSchema).nullable().optional(), - requested_teams: z.array(TeamSimpleSchema).nullable().optional(), + assignees: z.array(SimpleUserSchema).optional(), + requested_reviewers: z.array(SimpleUserSchema).optional(), + requested_teams: z.array(TeamSimpleSchema).optional(), head: z.object({ label: z.string(), ref: z.string(), @@ -14052,8 +14742,8 @@ export namespace github { .describe('Indicates whether or not the pull request is a draft.') .optional(), merged: z.boolean(), - mergeable: z.boolean().nullable(), - rebaseable: z.boolean().nullable().optional(), + mergeable: z.boolean(), + rebaseable: z.boolean().optional(), mergeable_state: z.string(), merged_by: NullableSimpleUserSchema, comments: z.number().int(), @@ -14079,12 +14769,10 @@ export namespace github { .describe('Automatically generated name of this codespace.'), display_name: z .string() - .nullable() .describe('Display name for this codespace.') .optional(), environment_id: z .string() - .nullable() .describe("UUID identifying this codespace's environment."), owner: SimpleUserSchema, billable_owner: SimpleUserSchema, @@ -14092,14 +14780,12 @@ export namespace github { machine: NullableCodespaceMachineSchema, devcontainer_path: z .string() - .nullable() .describe( 'Path to devcontainer.json from repo root used to create Codespace.' ) .optional(), prebuild: z .boolean() - .nullable() .describe('Whether the codespace was created from a prebuild.'), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), @@ -14167,7 +14853,6 @@ export namespace github { idle_timeout_minutes: z .number() .int() - .nullable() .describe( 'The number of minutes of inactivity after which this codespace will be automatically stopped.' ), @@ -14186,13 +14871,11 @@ export namespace github { publish_url: z .string() .url() - .nullable() .describe('API URL to publish this codespace to a new repository.') .optional(), pulls_url: z .string() .url() - .nullable() .describe( 'API URL for the Pull Request associated with this codespace, if any.' ), @@ -14201,7 +14884,6 @@ export namespace github { .object({ allowed_port_privacy_settings: z .array(z.string()) - .nullable() .describe( 'The privacy settings a user can select from when forwarding a port.' ) @@ -14210,21 +14892,18 @@ export namespace github { .optional(), pending_operation: z .boolean() - .nullable() .describe( 'Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.' ) .optional(), pending_operation_disabled_reason: z .string() - .nullable() .describe( 'Text to show user when codespace is disabled by a pending operation' ) .optional(), idle_timeout_notice: z .string() - .nullable() .describe( 'Text to show user when codespace idle timeout minutes has been overriden by an organization policy' ) @@ -14232,7 +14911,6 @@ export namespace github { retention_period_minutes: z .number() .int() - .nullable() .describe( 'Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).' ) @@ -14240,7 +14918,6 @@ export namespace github { retention_expires_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"' ) @@ -14267,7 +14944,6 @@ export namespace github { resolved_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -14287,14 +14963,12 @@ export namespace github { repository: SimpleRepositorySchema.optional(), push_protection_bypassed: z .boolean() - .nullable() .describe('Whether push protection was bypassed for the detected secret.') .optional(), push_protection_bypassed_by: NullableSimpleUserSchema.optional(), push_protection_bypassed_at: z .string() .datetime({ offset: true }) - .nullable() .describe( 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' ) @@ -14303,23 +14977,19 @@ export namespace github { NullableSimpleUserSchema.optional(), push_protection_bypass_request_reviewer_comment: z .string() - .nullable() .describe('An optional comment when reviewing a push protection bypass.') .optional(), push_protection_bypass_request_comment: z .string() - .nullable() .describe('An optional comment when requesting a push protection bypass.') .optional(), push_protection_bypass_request_html_url: z .string() .url() - .nullable() .describe('The URL to a push protection bypass request.') .optional(), resolution_comment: z .string() - .nullable() .describe( 'The comment that was optionally added when this alert was closed' ) @@ -14330,19 +15000,16 @@ export namespace github { .optional(), publicly_leaked: z .boolean() - .nullable() .describe('Whether the secret was publicly leaked.') .optional(), multi_repo: z .boolean() - .nullable() .describe( 'Whether the detected secret was found in multiple repositories in the same organization or enterprise.' ) .optional(), is_base64_encoded: z .boolean() - .nullable() .describe( 'A boolean value representing whether or not alert is base64 encoded' ) @@ -14382,7 +15049,7 @@ export namespace github { locked: z.boolean(), title: z.string(), user: NullableSimpleUserSchema, - body: z.string().nullable(), + body: z.string(), labels: z.array( z.object({ id: z.number().int(), @@ -14395,16 +15062,16 @@ export namespace github { }) ), milestone: NullableMilestoneSchema, - active_lock_reason: z.string().nullable().optional(), + active_lock_reason: z.string().optional(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - closed_at: z.string().datetime({ offset: true }).nullable(), - merged_at: z.string().datetime({ offset: true }).nullable(), - merge_commit_sha: z.string().nullable(), + closed_at: z.string().datetime({ offset: true }), + merged_at: z.string().datetime({ offset: true }), + merge_commit_sha: z.string(), assignee: NullableSimpleUserSchema, - assignees: z.array(SimpleUserSchema).nullable().optional(), - requested_reviewers: z.array(SimpleUserSchema).nullable().optional(), - requested_teams: z.array(TeamSchema).nullable().optional(), + assignees: z.array(SimpleUserSchema).optional(), + requested_reviewers: z.array(SimpleUserSchema).optional(), + requested_teams: z.array(TeamSchema).optional(), head: z.object({ label: z.string(), ref: z.string(), @@ -14460,11 +15127,10 @@ export namespace github { .describe("State of the issue; either 'open' or 'closed'"), state_reason: z .enum(['completed', 'reopened', 'not_planned']) - .nullable() .describe('The reason for the current state') .optional(), title: z.string().describe('Title of the issue'), - body: z.string().nullable().describe('Contents of the issue').optional(), + body: z.string().describe('Contents of the issue').optional(), user: NullableSimpleUserSchema, labels: z .array( @@ -14475,8 +15141,8 @@ export namespace github { node_id: z.string().optional(), url: z.string().url().optional(), name: z.string().optional(), - description: z.string().nullable().optional(), - color: z.string().nullable().optional(), + description: z.string().optional(), + color: z.string().optional(), default: z.boolean().optional() }) ]) @@ -14485,25 +15151,21 @@ export namespace github { 'Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository' ), assignee: NullableSimpleUserSchema, - assignees: z.array(SimpleUserSchema).nullable().optional(), + assignees: z.array(SimpleUserSchema).optional(), milestone: NullableMilestoneSchema, locked: z.boolean(), - active_lock_reason: z.string().nullable().optional(), + active_lock_reason: z.string().optional(), comments: z.number().int(), pull_request: z .object({ - merged_at: z - .string() - .datetime({ offset: true }) - .nullable() - .optional(), - diff_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - patch_url: z.string().url().nullable(), - url: z.string().url().nullable() + merged_at: z.string().datetime({ offset: true }).optional(), + diff_url: z.string().url(), + html_url: z.string().url(), + patch_url: z.string().url(), + url: z.string().url() }) .optional(), - closed_at: z.string().datetime({ offset: true }).nullable(), + closed_at: z.string().datetime({ offset: true }), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), draft: z.boolean().optional(), @@ -14544,11 +15206,10 @@ export namespace github { .describe("State of the issue; either 'open' or 'closed'"), state_reason: z .enum(['completed', 'reopened', 'not_planned']) - .nullable() .describe('The reason for the current state') .optional(), title: z.string().describe('Title of the issue'), - body: z.string().nullable().describe('Contents of the issue').optional(), + body: z.string().describe('Contents of the issue').optional(), user: NullableSimpleUserSchema, labels: z .array( @@ -14559,8 +15220,8 @@ export namespace github { node_id: z.string().optional(), url: z.string().url().optional(), name: z.string().optional(), - description: z.string().nullable().optional(), - color: z.string().nullable().optional(), + description: z.string().optional(), + color: z.string().optional(), default: z.boolean().optional() }) ]) @@ -14569,25 +15230,21 @@ export namespace github { 'Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository' ), assignee: NullableSimpleUserSchema, - assignees: z.array(SimpleUserSchema).nullable().optional(), + assignees: z.array(SimpleUserSchema).optional(), milestone: NullableMilestoneSchema, locked: z.boolean(), - active_lock_reason: z.string().nullable().optional(), + active_lock_reason: z.string().optional(), comments: z.number().int(), pull_request: z .object({ - merged_at: z - .string() - .datetime({ offset: true }) - .nullable() - .optional(), - diff_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - patch_url: z.string().url().nullable(), - url: z.string().url().nullable() + merged_at: z.string().datetime({ offset: true }).optional(), + diff_url: z.string().url(), + html_url: z.string().url(), + patch_url: z.string().url(), + url: z.string().url() }) .optional(), - closed_at: z.string().datetime({ offset: true }).nullable(), + closed_at: z.string().datetime({ offset: true }), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), draft: z.boolean().optional(), @@ -14602,7 +15259,6 @@ export namespace github { reactions: ReactionRollupSchema.optional(), sub_issues_summary: SubIssuesSummarySchema.optional() }) - .nullable() .describe( 'Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.' ) @@ -14621,8 +15277,8 @@ export namespace github { number: z.number().int(), title: z.string(), locked: z.boolean(), - active_lock_reason: z.string().nullable().optional(), - assignees: z.array(SimpleUserSchema).nullable().optional(), + active_lock_reason: z.string().optional(), + assignees: z.array(SimpleUserSchema).optional(), user: NullableSimpleUserSchema, labels: z.array( z.object({ @@ -14632,7 +15288,7 @@ export namespace github { name: z.string().optional(), color: z.string().optional(), default: z.boolean().optional(), - description: z.string().nullable().optional() + description: z.string().optional() }) ), sub_issues_summary: z @@ -14643,25 +15299,21 @@ export namespace github { }) .optional(), state: z.string(), - state_reason: z.string().nullable().optional(), + state_reason: z.string().optional(), assignee: NullableSimpleUserSchema, milestone: NullableMilestoneSchema, comments: z.number().int(), created_at: z.string().datetime({ offset: true }), updated_at: z.string().datetime({ offset: true }), - closed_at: z.string().datetime({ offset: true }).nullable(), + closed_at: z.string().datetime({ offset: true }), text_matches: SearchResultTextMatchesSchema.optional(), pull_request: z .object({ - merged_at: z - .string() - .datetime({ offset: true }) - .nullable() - .optional(), - diff_url: z.string().url().nullable(), - html_url: z.string().url().nullable(), - patch_url: z.string().url().nullable(), - url: z.string().url().nullable() + merged_at: z.string().datetime({ offset: true }).optional(), + diff_url: z.string().url(), + html_url: z.string().url(), + patch_url: z.string().url(), + url: z.string().url() }) .optional(), body: z.string().optional(), @@ -14767,40 +15419,6 @@ export namespace github { typeof SecretScanningLocationSchema > - export const EventSchema = z - .object({ - id: z.string(), - type: z.string().nullable(), - actor: ActorSchema, - repo: z.object({ - id: z.number().int(), - name: z.string(), - url: z.string().url() - }), - org: ActorSchema.optional(), - payload: z.object({ - action: z.string().optional(), - issue: IssueSchema.optional(), - comment: IssueCommentSchema.optional(), - pages: z - .array( - z.object({ - page_name: z.string().optional(), - title: z.string().optional(), - summary: z.string().nullable().optional(), - action: z.string().optional(), - sha: z.string().optional(), - html_url: z.string().optional() - }) - ) - .optional() - }), - public: z.boolean(), - created_at: z.string().datetime({ offset: true }).nullable() - }) - .describe('Event') - export type Event = z.infer - export const DependabotAlertSchema = z .object({ number: AlertNumberSchema, @@ -14820,13 +15438,11 @@ export namespace github { .optional(), scope: z .enum(['development', 'runtime']) - .nullable() .describe('The execution scope of the vulnerable dependency.') .readonly() .optional(), relationship: z .enum(['unknown', 'direct', 'transitive']) - .nullable() .describe( 'The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n' ) @@ -14851,12 +15467,10 @@ export namespace github { 'not_used', 'tolerable_risk' ]) - .nullable() .describe('The reason that the alert was dismissed.'), dismissed_comment: z .string() .max(280) - .nullable() .describe("An optional comment associated with the alert's dismissal."), fixed_at: AlertFixedAtSchema, auto_dismissed_at: AlertAutoDismissedAtSchema.optional() @@ -14898,13 +15512,11 @@ export namespace github { .optional(), scope: z .enum(['development', 'runtime']) - .nullable() .describe('The execution scope of the vulnerable dependency.') .readonly() .optional(), relationship: z .enum(['unknown', 'direct', 'transitive']) - .nullable() .describe( 'The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n' ) @@ -14929,12 +15541,10 @@ export namespace github { 'not_used', 'tolerable_risk' ]) - .nullable() .describe('The reason that the alert was dismissed.'), dismissed_comment: z .string() .max(280) - .nullable() .describe("An optional comment associated with the alert's dismissal."), fixed_at: AlertFixedAtSchema, auto_dismissed_at: AlertAutoDismissedAtSchema.optional(), @@ -14953,8 +15563,8 @@ export namespace github { url: z.string().url(), actor: NullableSimpleUserSchema, event: z.string(), - commit_id: z.string().nullable(), - commit_url: z.string().nullable(), + commit_id: z.string(), + commit_url: z.string(), created_at: z.string().datetime({ offset: true }), issue: NullableIssueSchema.optional(), label: IssueEventLabelSchema.optional(), @@ -14968,7 +15578,7 @@ export namespace github { project_card: IssueEventProjectCardSchema.optional(), rename: IssueEventRenameSchema.optional(), author_association: AuthorAssociationSchema.optional(), - lock_reason: z.string().nullable().optional(), + lock_reason: z.string().optional(), performed_via_github_app: NullableIntegrationSchema.optional() }) .describe('Issue Event') @@ -15224,13 +15834,11 @@ export namespace github { .describe('The html URL of the ruleset') .optional() }) - .nullable() .optional() }) .optional(), conditions: z .union([RepositoryRulesetConditionsSchema, OrgRulesetConditionsSchema]) - .nullable() .optional(), rules: z.array(RepositoryRuleSchema).optional(), created_at: z.string().datetime({ offset: true }).optional(), @@ -15357,6 +15965,22 @@ export namespace github { "If specified, only return advisories that have an EPSS percentile score that matches the provided value.\nThe EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs." ) .optional(), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), per_page: z .number() .int() @@ -15381,7 +16005,13 @@ export namespace github { typeof SecurityAdvisoriesListGlobalAdvisoriesResponseSchema > - export const SecurityAdvisoriesGetGlobalAdvisoryParamsSchema = z.object({}) + export const SecurityAdvisoriesGetGlobalAdvisoryParamsSchema = z.object({ + ghsa_id: z + .string() + .describe( + 'The GHSA (GitHub Security Advisory) identifier of the advisory.' + ) + }) export type SecurityAdvisoriesGetGlobalAdvisoryParams = z.infer< typeof SecurityAdvisoriesGetGlobalAdvisoryParamsSchema > @@ -15436,7 +16066,21 @@ export namespace github { typeof AppsUpdateWebhookConfigForAppResponseSchema > - export const AppsListWebhookDeliveriesParamsSchema = z.object({}) + export const AppsListWebhookDeliveriesParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + cursor: z + .string() + .describe( + 'Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.' + ) + .optional() + }) export type AppsListWebhookDeliveriesParams = z.infer< typeof AppsListWebhookDeliveriesParamsSchema > @@ -15448,7 +16092,9 @@ export namespace github { typeof AppsListWebhookDeliveriesResponseSchema > - export const AppsGetWebhookDeliveryParamsSchema = z.object({}) + export const AppsGetWebhookDeliveryParamsSchema = z.object({ + delivery_id: z.number().int() + }) export type AppsGetWebhookDeliveryParams = z.infer< typeof AppsGetWebhookDeliveryParamsSchema > @@ -15458,7 +16104,9 @@ export namespace github { typeof AppsGetWebhookDeliveryResponseSchema > - export const AppsRedeliverWebhookDeliveryParamsSchema = z.object({}) + export const AppsRedeliverWebhookDeliveryParamsSchema = z.object({ + delivery_id: z.number().int() + }) export type AppsRedeliverWebhookDeliveryParams = z.infer< typeof AppsRedeliverWebhookDeliveryParamsSchema > @@ -15466,7 +16114,22 @@ export namespace github { export type AppsRedeliverWebhookDeliveryResponse = undefined export const AppsListInstallationRequestsForAuthenticatedAppParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListInstallationRequestsForAuthenticatedAppParams = z.infer< typeof AppsListInstallationRequestsForAuthenticatedAppParamsSchema > @@ -15478,6 +16141,27 @@ export namespace github { > export const AppsListInstallationsParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), outdated: z.string().optional() }) export type AppsListInstallationsParams = z.infer< @@ -15489,7 +16173,12 @@ export namespace github { typeof AppsListInstallationsResponseSchema > - export const AppsGetInstallationParamsSchema = z.object({}) + export const AppsGetInstallationParamsSchema = z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.') + }) export type AppsGetInstallationParams = z.infer< typeof AppsGetInstallationParamsSchema > @@ -15499,7 +16188,12 @@ export namespace github { typeof AppsGetInstallationResponseSchema > - export const AppsDeleteInstallationParamsSchema = z.object({}) + export const AppsDeleteInstallationParamsSchema = z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.') + }) export type AppsDeleteInstallationParams = z.infer< typeof AppsDeleteInstallationParamsSchema > @@ -15515,7 +16209,11 @@ export namespace github { .array(z.number().int()) .describe('List of repository IDs that the token should have access to') .optional(), - permissions: AppPermissionsSchema.optional() + permissions: AppPermissionsSchema.optional(), + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.') }) export type AppsCreateInstallationAccessTokenParams = z.infer< typeof AppsCreateInstallationAccessTokenParamsSchema @@ -15523,14 +16221,24 @@ export namespace github { export type AppsCreateInstallationAccessTokenResponse = undefined - export const AppsSuspendInstallationParamsSchema = z.object({}) + export const AppsSuspendInstallationParamsSchema = z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.') + }) export type AppsSuspendInstallationParams = z.infer< typeof AppsSuspendInstallationParamsSchema > export type AppsSuspendInstallationResponse = undefined - export const AppsUnsuspendInstallationParamsSchema = z.object({}) + export const AppsUnsuspendInstallationParamsSchema = z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.') + }) export type AppsUnsuspendInstallationParams = z.infer< typeof AppsUnsuspendInstallationParamsSchema > @@ -15542,7 +16250,8 @@ export namespace github { .string() .describe( 'The OAuth access token used to authenticate to the GitHub API.' - ) + ), + client_id: z.string().describe('The client ID of the GitHub app.') }) export type AppsDeleteAuthorizationParams = z.infer< typeof AppsDeleteAuthorizationParamsSchema @@ -15553,7 +16262,8 @@ export namespace github { export const AppsCheckTokenParamsSchema = z.object({ access_token: z .string() - .describe('The access_token of the OAuth or GitHub application.') + .describe('The access_token of the OAuth or GitHub application.'), + client_id: z.string().describe('The client ID of the GitHub app.') }) export type AppsCheckTokenParams = z.infer @@ -15567,7 +16277,8 @@ export namespace github { .string() .describe( 'The OAuth access token used to authenticate to the GitHub API.' - ) + ), + client_id: z.string().describe('The client ID of the GitHub app.') }) export type AppsDeleteTokenParams = z.infer< typeof AppsDeleteTokenParamsSchema @@ -15578,7 +16289,8 @@ export namespace github { export const AppsResetTokenParamsSchema = z.object({ access_token: z .string() - .describe('The access_token of the OAuth or GitHub application.') + .describe('The access_token of the OAuth or GitHub application.'), + client_id: z.string().describe('The client ID of the GitHub app.') }) export type AppsResetTokenParams = z.infer @@ -15616,7 +16328,8 @@ export namespace github { 'The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.' ) .optional(), - permissions: AppPermissionsSchema.optional() + permissions: AppPermissionsSchema.optional(), + client_id: z.string().describe('The client ID of the GitHub app.') }) export type AppsScopeTokenParams = z.infer @@ -15625,7 +16338,7 @@ export namespace github { typeof AppsScopeTokenResponseSchema > - export const AppsGetBySlugParamsSchema = z.object({}) + export const AppsGetBySlugParamsSchema = z.object({ app_slug: z.string() }) export type AppsGetBySlugParams = z.infer export const AppsGetBySlugResponseSchema = IntegrationSchema @@ -15633,7 +16346,12 @@ export namespace github { typeof AppsGetBySlugResponseSchema > - export const ClassroomGetAnAssignmentParamsSchema = z.object({}) + export const ClassroomGetAnAssignmentParamsSchema = z.object({ + assignment_id: z + .number() + .int() + .describe('The unique identifier of the classroom assignment.') + }) export type ClassroomGetAnAssignmentParams = z.infer< typeof ClassroomGetAnAssignmentParamsSchema > @@ -15645,7 +16363,26 @@ export namespace github { > export const ClassroomListAcceptedAssignmentsForAnAssignmentParamsSchema = - z.object({}) + z.object({ + assignment_id: z + .number() + .int() + .describe('The unique identifier of the classroom assignment.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ClassroomListAcceptedAssignmentsForAnAssignmentParams = z.infer< typeof ClassroomListAcceptedAssignmentsForAnAssignmentParamsSchema > @@ -15656,7 +16393,12 @@ export namespace github { typeof ClassroomListAcceptedAssignmentsForAnAssignmentResponseSchema > - export const ClassroomGetAssignmentGradesParamsSchema = z.object({}) + export const ClassroomGetAssignmentGradesParamsSchema = z.object({ + assignment_id: z + .number() + .int() + .describe('The unique identifier of the classroom assignment.') + }) export type ClassroomGetAssignmentGradesParams = z.infer< typeof ClassroomGetAssignmentGradesParamsSchema > @@ -15668,7 +16410,22 @@ export namespace github { typeof ClassroomGetAssignmentGradesResponseSchema > - export const ClassroomListClassroomsParamsSchema = z.object({}) + export const ClassroomListClassroomsParamsSchema = z.object({ + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ClassroomListClassroomsParams = z.infer< typeof ClassroomListClassroomsParamsSchema > @@ -15680,7 +16437,12 @@ export namespace github { typeof ClassroomListClassroomsResponseSchema > - export const ClassroomGetAclassroomParamsSchema = z.object({}) + export const ClassroomGetAclassroomParamsSchema = z.object({ + classroom_id: z + .number() + .int() + .describe('The unique identifier of the classroom.') + }) export type ClassroomGetAclassroomParams = z.infer< typeof ClassroomGetAclassroomParamsSchema > @@ -15690,7 +16452,26 @@ export namespace github { typeof ClassroomGetAclassroomResponseSchema > - export const ClassroomListAssignmentsForAclassroomParamsSchema = z.object({}) + export const ClassroomListAssignmentsForAclassroomParamsSchema = z.object({ + classroom_id: z + .number() + .int() + .describe('The unique identifier of the classroom.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ClassroomListAssignmentsForAclassroomParams = z.infer< typeof ClassroomListAssignmentsForAclassroomParamsSchema > @@ -15733,13 +16514,30 @@ export namespace github { export const CodeSecurityGetConfigurationsForEnterpriseParamsSchema = z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), per_page: z .number() .int() .describe( 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) - .default(30) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional() }) export type CodeSecurityGetConfigurationsForEnterpriseParams = z.infer< typeof CodeSecurityGetConfigurationsForEnterpriseParamsSchema @@ -15840,7 +16638,12 @@ export namespace github { enforcement: z .enum(['enforced', 'unenforced']) .describe('The enforcement status for a security configuration') - .default('enforced') + .default('enforced'), + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ) }) export type CodeSecurityCreateConfigurationForEnterpriseParams = z.infer< typeof CodeSecurityCreateConfigurationForEnterpriseParamsSchema @@ -15849,7 +16652,13 @@ export namespace github { export type CodeSecurityCreateConfigurationForEnterpriseResponse = undefined export const CodeSecurityGetDefaultConfigurationsForEnterpriseParamsSchema = - z.object({}) + z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ) + }) export type CodeSecurityGetDefaultConfigurationsForEnterpriseParams = z.infer< typeof CodeSecurityGetDefaultConfigurationsForEnterpriseParamsSchema > @@ -15862,7 +16671,17 @@ export namespace github { > export const CodeSecurityGetSingleConfigurationForEnterpriseParamsSchema = - z.object({}) + z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') + }) export type CodeSecurityGetSingleConfigurationForEnterpriseParams = z.infer< typeof CodeSecurityGetSingleConfigurationForEnterpriseParamsSchema > @@ -15874,7 +16693,17 @@ export namespace github { > export const CodeSecurityDeleteConfigurationForEnterpriseParamsSchema = - z.object({}) + z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') + }) export type CodeSecurityDeleteConfigurationForEnterpriseParams = z.infer< typeof CodeSecurityDeleteConfigurationForEnterpriseParamsSchema > @@ -15974,7 +16803,16 @@ export namespace github { enforcement: z .enum(['enforced', 'unenforced']) .describe('The enforcement status for a security configuration') - .optional() + .optional(), + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') } ) export type CodeSecurityUpdateEnterpriseConfigurationParams = z.infer< @@ -15991,7 +16829,16 @@ export namespace github { { scope: z .enum(['all', 'all_without_configurations']) - .describe('The type of repositories to attach the configuration to.') + .describe('The type of repositories to attach the configuration to.'), + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') } ) export type CodeSecurityAttachEnterpriseConfigurationParams = z.infer< @@ -16007,7 +16854,16 @@ export namespace github { .describe( 'Specify which types of repository this security configuration should be applied to by default.' ) - .optional() + .optional(), + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') }) export type CodeSecuritySetConfigurationAsDefaultForEnterpriseParams = z.infer< @@ -16031,6 +16887,15 @@ export namespace github { export const CodeSecurityGetRepositoriesForEnterpriseConfigurationParamsSchema = z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.'), per_page: z .number() .int() @@ -16038,6 +16903,18 @@ export namespace github { 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), status: z .string() .describe( @@ -16057,7 +16934,96 @@ export namespace github { typeof CodeSecurityGetRepositoriesForEnterpriseConfigurationResponseSchema > - export const DependabotListAlertsForEnterpriseParamsSchema = z.object({}) + export const DependabotListAlertsForEnterpriseParamsSchema = z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + state: z + .string() + .describe( + 'A comma-separated list of states. If specified, only alerts with these states will be returned.\n\nCan be: `auto_dismissed`, `dismissed`, `fixed`, `open`' + ) + .optional(), + severity: z + .string() + .describe( + 'A comma-separated list of severities. If specified, only alerts with these severities will be returned.\n\nCan be: `low`, `medium`, `high`, `critical`' + ) + .optional(), + ecosystem: z + .string() + .describe( + 'A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.\n\nCan be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`' + ) + .optional(), + package: z + .string() + .describe( + 'A comma-separated list of package names. If specified, only alerts for these packages will be returned.' + ) + .optional(), + epss_percentage: z + .string() + .describe( + 'CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:\n- An exact number (`n`)\n- Comparators such as `>n`, `=n`, `<=n`\n- A range like `n..n`, where `n` is a number from 0.0 to 1.0\n\nFilters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.' + ) + .optional(), + scope: z + .enum(['development', 'runtime']) + .describe( + 'The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.' + ) + .optional(), + sort: z + .enum(['created', 'updated', 'epss_percentage']) + .describe( + "The property by which to sort the results.\n`created` means when the alert was created.\n`updated` means when the alert's state last changed.\n`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage." + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + first: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the first matching result.\nThis parameter must not be used in combination with `last`.\nInstead, use `per_page` in combination with `after` to fetch the first page of results.' + ) + .default(30), + last: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the last matching result.\nThis parameter must not be used in combination with `first`.\nInstead, use `per_page` in combination with `before` to fetch the last page of results.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type DependabotListAlertsForEnterpriseParams = z.infer< typeof DependabotListAlertsForEnterpriseParamsSchema > @@ -16069,7 +17035,78 @@ export namespace github { typeof DependabotListAlertsForEnterpriseResponseSchema > - export const SecretScanningListAlertsForEnterpriseParamsSchema = z.object({}) + export const SecretScanningListAlertsForEnterpriseParamsSchema = z.object({ + enterprise: z + .string() + .describe( + 'The slug version of the enterprise name. You can also substitute this value with the enterprise id.' + ), + state: z + .enum(['open', 'resolved']) + .describe( + 'Set to `open` or `resolved` to only list secret scanning alerts in a specific state.' + ) + .optional(), + secret_type: z + .string() + .describe( + 'A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types.' + ) + .optional(), + resolution: z + .string() + .describe( + 'A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.' + ) + .optional(), + sort: z + .enum(['created', 'updated']) + .describe( + 'The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.' + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + validity: z + .string() + .describe( + 'A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.' + ) + .optional(), + is_publicly_leaked: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.' + ) + .default(false), + is_multi_repo: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the multi-repo tag being present.' + ) + .default(false) + }) export type SecretScanningListAlertsForEnterpriseParams = z.infer< typeof SecretScanningListAlertsForEnterpriseParamsSchema > @@ -16081,7 +17118,22 @@ export namespace github { typeof SecretScanningListAlertsForEnterpriseResponseSchema > - export const ActivityListPublicEventsParamsSchema = z.object({}) + export const ActivityListPublicEventsParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListPublicEventsParams = z.infer< typeof ActivityListPublicEventsParamsSchema > @@ -16101,7 +17153,29 @@ export namespace github { typeof ActivityGetFeedsResponseSchema > - export const GistsListParamsSchema = z.object({}) + export const GistsListParamsSchema = z.object({ + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListParams = z.infer export const GistsListResponseSchema = z.array(BaseGistSchema) @@ -16126,7 +17200,29 @@ export namespace github { export type GistsCreateResponse = undefined - export const GistsListPublicParamsSchema = z.object({}) + export const GistsListPublicParamsSchema = z.object({ + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListPublicParams = z.infer< typeof GistsListPublicParamsSchema > @@ -16136,7 +17232,29 @@ export namespace github { typeof GistsListPublicResponseSchema > - export const GistsListStarredParamsSchema = z.object({}) + export const GistsListStarredParamsSchema = z.object({ + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListStarredParams = z.infer< typeof GistsListStarredParamsSchema > @@ -16146,13 +17264,17 @@ export namespace github { typeof GistsListStarredResponseSchema > - export const GistsGetParamsSchema = z.object({}) + export const GistsGetParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsGetParams = z.infer export const GistsGetResponseSchema = GistSimpleSchema export type GistsGetResponse = z.infer - export const GistsDeleteParamsSchema = z.object({}) + export const GistsDeleteParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsDeleteParams = z.infer export type GistsDeleteResponse = undefined @@ -16161,31 +17283,45 @@ export namespace github { description: z.string().describe('The description of the gist.').optional(), files: z .record( - z - .object({ - content: z - .string() - .describe('The new content of the file.') - .optional(), - filename: z - .string() - .nullable() - .describe('The new filename for the file.') - .optional() - }) - .nullable() + z.object({ + content: z + .string() + .describe('The new content of the file.') + .optional(), + filename: z + .string() + .describe('The new filename for the file.') + .optional() + }) ) .describe( 'The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.' ) - .optional() + .optional(), + gist_id: z.string().describe('The unique identifier of the gist.') }) export type GistsUpdateParams = z.infer export const GistsUpdateResponseSchema = GistSimpleSchema export type GistsUpdateResponse = z.infer - export const GistsListCommentsParamsSchema = z.object({}) + export const GistsListCommentsParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListCommentsParams = z.infer< typeof GistsListCommentsParamsSchema > @@ -16196,7 +17332,8 @@ export namespace github { > export const GistsCreateCommentParamsSchema = z.object({ - body: z.string().max(65_535).describe('The comment text.') + body: z.string().max(65_535).describe('The comment text.'), + gist_id: z.string().describe('The unique identifier of the gist.') }) export type GistsCreateCommentParams = z.infer< typeof GistsCreateCommentParamsSchema @@ -16204,7 +17341,13 @@ export namespace github { export type GistsCreateCommentResponse = undefined - export const GistsGetCommentParamsSchema = z.object({}) + export const GistsGetCommentParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type GistsGetCommentParams = z.infer< typeof GistsGetCommentParamsSchema > @@ -16214,7 +17357,13 @@ export namespace github { typeof GistsGetCommentResponseSchema > - export const GistsDeleteCommentParamsSchema = z.object({}) + export const GistsDeleteCommentParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type GistsDeleteCommentParams = z.infer< typeof GistsDeleteCommentParamsSchema > @@ -16222,7 +17371,12 @@ export namespace github { export type GistsDeleteCommentResponse = undefined export const GistsUpdateCommentParamsSchema = z.object({ - body: z.string().max(65_535).describe('The comment text.') + body: z.string().max(65_535).describe('The comment text.'), + gist_id: z.string().describe('The unique identifier of the gist.'), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type GistsUpdateCommentParams = z.infer< typeof GistsUpdateCommentParamsSchema @@ -16233,7 +17387,23 @@ export namespace github { typeof GistsUpdateCommentResponseSchema > - export const GistsListCommitsParamsSchema = z.object({}) + export const GistsListCommitsParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListCommitsParams = z.infer< typeof GistsListCommitsParamsSchema > @@ -16243,7 +17413,23 @@ export namespace github { typeof GistsListCommitsResponseSchema > - export const GistsListForksParamsSchema = z.object({}) + export const GistsListForksParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListForksParams = z.infer export const GistsListForksResponseSchema = z.array(GistSimpleSchema) @@ -16251,29 +17437,40 @@ export namespace github { typeof GistsListForksResponseSchema > - export const GistsForkParamsSchema = z.object({}) + export const GistsForkParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsForkParams = z.infer export type GistsForkResponse = undefined - export const GistsCheckIsStarredParamsSchema = z.object({}) + export const GistsCheckIsStarredParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsCheckIsStarredParams = z.infer< typeof GistsCheckIsStarredParamsSchema > export type GistsCheckIsStarredResponse = undefined - export const GistsStarParamsSchema = z.object({}) + export const GistsStarParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsStarParams = z.infer export type GistsStarResponse = undefined - export const GistsUnstarParamsSchema = z.object({}) + export const GistsUnstarParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.') + }) export type GistsUnstarParams = z.infer export type GistsUnstarResponse = undefined - export const GistsGetRevisionParamsSchema = z.object({ sha: z.string() }) + export const GistsGetRevisionParamsSchema = z.object({ + gist_id: z.string().describe('The unique identifier of the gist.'), + sha: z.string() + }) export type GistsGetRevisionParams = z.infer< typeof GistsGetRevisionParamsSchema > @@ -16303,7 +17500,22 @@ export namespace github { typeof GitignoreGetTemplateResponseSchema > - export const AppsListReposAccessibleToInstallationParamsSchema = z.object({}) + export const AppsListReposAccessibleToInstallationParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListReposAccessibleToInstallationParams = z.infer< typeof AppsListReposAccessibleToInstallationParamsSchema > @@ -16335,14 +17547,45 @@ export namespace github { .enum(['open', 'closed', 'all']) .describe('Indicates the state of the issues to return.') .default('open'), + labels: z + .string() + .describe( + 'A list of comma separated label names. Example: `bug,ui,@high`' + ) + .optional(), sort: z .enum(['created', 'updated', 'comments']) .describe('What to sort results by.') .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), collab: z.boolean().optional(), orgs: z.boolean().optional(), owned: z.boolean().optional(), - pulls: z.boolean().optional() + pulls: z.boolean().optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListParams = z.infer @@ -16350,7 +17593,21 @@ export namespace github { export type IssuesListResponse = z.infer export const LicensesGetAllCommonlyUsedParamsSchema = z.object({ - featured: z.boolean().optional() + featured: z.boolean().optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type LicensesGetAllCommonlyUsedParams = z.infer< typeof LicensesGetAllCommonlyUsedParamsSchema @@ -16392,7 +17649,9 @@ export namespace github { export type MarkdownRenderRawResponse = undefined - export const AppsGetSubscriptionPlanForAccountParamsSchema = z.object({}) + export const AppsGetSubscriptionPlanForAccountParamsSchema = z.object({ + account_id: z.number().int().describe('account_id parameter') + }) export type AppsGetSubscriptionPlanForAccountParams = z.infer< typeof AppsGetSubscriptionPlanForAccountParamsSchema > @@ -16403,7 +17662,22 @@ export namespace github { typeof AppsGetSubscriptionPlanForAccountResponseSchema > - export const AppsListPlansParamsSchema = z.object({}) + export const AppsListPlansParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListPlansParams = z.infer export const AppsListPlansResponseSchema = z.array( @@ -16414,12 +17688,31 @@ export namespace github { > export const AppsListAccountsForPlanParamsSchema = z.object({ + plan_id: z.number().int().describe('The unique identifier of the plan.'), + sort: z + .enum(['created', 'updated']) + .describe('The property to sort the results by.') + .default('created'), direction: z .enum(['asc', 'desc']) .describe( 'To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type AppsListAccountsForPlanParams = z.infer< typeof AppsListAccountsForPlanParamsSchema @@ -16432,9 +17725,9 @@ export namespace github { typeof AppsListAccountsForPlanResponseSchema > - export const AppsGetSubscriptionPlanForAccountStubbedParamsSchema = z.object( - {} - ) + export const AppsGetSubscriptionPlanForAccountStubbedParamsSchema = z.object({ + account_id: z.number().int().describe('account_id parameter') + }) export type AppsGetSubscriptionPlanForAccountStubbedParams = z.infer< typeof AppsGetSubscriptionPlanForAccountStubbedParamsSchema > @@ -16445,7 +17738,22 @@ export namespace github { typeof AppsGetSubscriptionPlanForAccountStubbedResponseSchema > - export const AppsListPlansStubbedParamsSchema = z.object({}) + export const AppsListPlansStubbedParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListPlansStubbedParams = z.infer< typeof AppsListPlansStubbedParamsSchema > @@ -16458,12 +17766,31 @@ export namespace github { > export const AppsListAccountsForPlanStubbedParamsSchema = z.object({ + plan_id: z.number().int().describe('The unique identifier of the plan.'), + sort: z + .enum(['created', 'updated']) + .describe('The property to sort the results by.') + .default('created'), direction: z .enum(['asc', 'desc']) .describe( 'To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type AppsListAccountsForPlanStubbedParams = z.infer< typeof AppsListAccountsForPlanStubbedParamsSchema @@ -16482,7 +17809,32 @@ export namespace github { export const MetaGetResponseSchema = ApiOverviewSchema export type MetaGetResponse = z.infer - export const ActivityListPublicEventsForRepoNetworkParamsSchema = z.object({}) + export const ActivityListPublicEventsForRepoNetworkParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListPublicEventsForRepoNetworkParams = z.infer< typeof ActivityListPublicEventsForRepoNetworkParamsSchema > @@ -16495,6 +17847,37 @@ export namespace github { export const ActivityListNotificationsForAuthenticatedUserParamsSchema = z.object({ + all: z + .boolean() + .describe('If `true`, show notifications marked as read.') + .default(false), + participating: z + .boolean() + .describe( + 'If `true`, only shows notifications in which the user is directly participating or mentioned.' + ) + .default(false), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + before: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -16532,7 +17915,14 @@ export namespace github { export type ActivityMarkNotificationsAsReadResponse = undefined - export const ActivityGetThreadParamsSchema = z.object({}) + export const ActivityGetThreadParamsSchema = z.object({ + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + }) export type ActivityGetThreadParams = z.infer< typeof ActivityGetThreadParamsSchema > @@ -16542,14 +17932,28 @@ export namespace github { typeof ActivityGetThreadResponseSchema > - export const ActivityMarkThreadAsDoneParamsSchema = z.object({}) + export const ActivityMarkThreadAsDoneParamsSchema = z.object({ + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + }) export type ActivityMarkThreadAsDoneParams = z.infer< typeof ActivityMarkThreadAsDoneParamsSchema > export type ActivityMarkThreadAsDoneResponse = undefined - export const ActivityMarkThreadAsReadParamsSchema = z.object({}) + export const ActivityMarkThreadAsReadParamsSchema = z.object({ + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + }) export type ActivityMarkThreadAsReadParams = z.infer< typeof ActivityMarkThreadAsReadParamsSchema > @@ -16557,7 +17961,14 @@ export namespace github { export type ActivityMarkThreadAsReadResponse = undefined export const ActivityGetThreadSubscriptionForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + }) export type ActivityGetThreadSubscriptionForAuthenticatedUserParams = z.infer< typeof ActivityGetThreadSubscriptionForAuthenticatedUserParamsSchema > @@ -16573,7 +17984,13 @@ export namespace github { ignored: z .boolean() .describe('Whether to block all notifications from a thread.') - .default(false) + .default(false), + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) }) export type ActivitySetThreadSubscriptionParams = z.infer< typeof ActivitySetThreadSubscriptionParamsSchema @@ -16585,7 +18002,14 @@ export namespace github { typeof ActivitySetThreadSubscriptionResponseSchema > - export const ActivityDeleteThreadSubscriptionParamsSchema = z.object({}) + export const ActivityDeleteThreadSubscriptionParamsSchema = z.object({ + thread_id: z + .number() + .int() + .describe( + 'The unique identifier of the notification thread. This corresponds to the value returned in the `id` field when you retrieve notifications (for example with the [`GET /notifications` operation](https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user)).' + ) + }) export type ActivityDeleteThreadSubscriptionParams = z.infer< typeof ActivityDeleteThreadSubscriptionParamsSchema > @@ -16602,13 +18026,60 @@ export namespace github { export type MetaGetOctocatResponse = undefined - export const OrgsListParamsSchema = z.object({}) + export const OrgsListParamsSchema = z.object({ + since: z + .number() + .int() + .describe( + 'An organization ID. Only return organizations with an ID greater than this ID.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type OrgsListParams = z.infer export const OrgsListResponseSchema = z.array(OrganizationSimpleSchema) export type OrgsListResponse = z.infer - export const BillingGetGithubBillingUsageReportOrgParamsSchema = z.object({}) + export const BillingGetGithubBillingUsageReportOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + year: z + .number() + .int() + .describe( + 'If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.' + ) + .optional(), + month: z + .number() + .int() + .describe( + 'If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the default `year` is used.' + ) + .optional(), + day: z + .number() + .int() + .describe( + 'If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.' + ) + .optional(), + hour: z + .number() + .int() + .describe( + 'If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. If no `year`, `month`, or `day` is specified, the default `year`, `month`, and `day` are used.' + ) + .optional() + }) export type BillingGetGithubBillingUsageReportOrgParams = z.infer< typeof BillingGetGithubBillingUsageReportOrgParamsSchema > @@ -16619,13 +18090,21 @@ export namespace github { typeof BillingGetGithubBillingUsageReportOrgResponseSchema > - export const OrgsGetParamsSchema = z.object({}) + export const OrgsGetParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsGetParams = z.infer export const OrgsGetResponseSchema = OrganizationFullSchema export type OrgsGetResponse = z.infer - export const OrgsDeleteParamsSchema = z.object({}) + export const OrgsDeleteParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsDeleteParams = z.infer export type OrgsDeleteResponse = undefined @@ -16782,14 +18261,21 @@ export namespace github { .describe( 'Controls whether or not deploy keys may be added and used for repositories in the organization.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsUpdateParams = z.infer export const OrgsUpdateResponseSchema = OrganizationFullSchema export type OrgsUpdateResponse = z.infer - export const ActionsGetActionsCacheUsageForOrgParamsSchema = z.object({}) + export const ActionsGetActionsCacheUsageForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetActionsCacheUsageForOrgParams = z.infer< typeof ActionsGetActionsCacheUsageForOrgParamsSchema > @@ -16800,9 +18286,25 @@ export namespace github { typeof ActionsGetActionsCacheUsageForOrgResponseSchema > - export const ActionsGetActionsCacheUsageByRepoForOrgParamsSchema = z.object( - {} - ) + export const ActionsGetActionsCacheUsageByRepoForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsGetActionsCacheUsageByRepoForOrgParams = z.infer< typeof ActionsGetActionsCacheUsageByRepoForOrgParamsSchema > @@ -16817,7 +18319,25 @@ export namespace github { typeof ActionsGetActionsCacheUsageByRepoForOrgResponseSchema > - export const ActionsListHostedRunnersForOrgParamsSchema = z.object({}) + export const ActionsListHostedRunnersForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListHostedRunnersForOrgParams = z.infer< typeof ActionsListHostedRunnersForOrgParamsSchema > @@ -16871,7 +18391,10 @@ export namespace github { .describe( 'Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsCreateHostedRunnerForOrgParams = z.infer< typeof ActionsCreateHostedRunnerForOrgParamsSchema @@ -16880,7 +18403,11 @@ export namespace github { export type ActionsCreateHostedRunnerForOrgResponse = undefined export const ActionsGetHostedRunnersGithubOwnedImagesForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetHostedRunnersGithubOwnedImagesForOrgParams = z.infer< typeof ActionsGetHostedRunnersGithubOwnedImagesForOrgParamsSchema > @@ -16895,7 +18422,11 @@ export namespace github { > export const ActionsGetHostedRunnersPartnerImagesForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetHostedRunnersPartnerImagesForOrgParams = z.infer< typeof ActionsGetHostedRunnersPartnerImagesForOrgParamsSchema > @@ -16909,7 +18440,11 @@ export namespace github { typeof ActionsGetHostedRunnersPartnerImagesForOrgResponseSchema > - export const ActionsGetHostedRunnersLimitsForOrgParamsSchema = z.object({}) + export const ActionsGetHostedRunnersLimitsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetHostedRunnersLimitsForOrgParams = z.infer< typeof ActionsGetHostedRunnersLimitsForOrgParamsSchema > @@ -16921,7 +18456,11 @@ export namespace github { > export const ActionsGetHostedRunnersMachineSpecsForOrgParamsSchema = z.object( - {} + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + } ) export type ActionsGetHostedRunnersMachineSpecsForOrgParams = z.infer< typeof ActionsGetHostedRunnersMachineSpecsForOrgParamsSchema @@ -16936,7 +18475,11 @@ export namespace github { typeof ActionsGetHostedRunnersMachineSpecsForOrgResponseSchema > - export const ActionsGetHostedRunnersPlatformsForOrgParamsSchema = z.object({}) + export const ActionsGetHostedRunnersPlatformsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetHostedRunnersPlatformsForOrgParams = z.infer< typeof ActionsGetHostedRunnersPlatformsForOrgParamsSchema > @@ -16949,7 +18492,15 @@ export namespace github { typeof ActionsGetHostedRunnersPlatformsForOrgResponseSchema > - export const ActionsGetHostedRunnerForOrgParamsSchema = z.object({}) + export const ActionsGetHostedRunnerForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hosted_runner_id: z + .number() + .int() + .describe('Unique identifier of the GitHub-hosted runner.') + }) export type ActionsGetHostedRunnerForOrgParams = z.infer< typeof ActionsGetHostedRunnerForOrgParamsSchema > @@ -16960,7 +18511,15 @@ export namespace github { typeof ActionsGetHostedRunnerForOrgResponseSchema > - export const ActionsDeleteHostedRunnerForOrgParamsSchema = z.object({}) + export const ActionsDeleteHostedRunnerForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hosted_runner_id: z + .number() + .int() + .describe('Unique identifier of the GitHub-hosted runner.') + }) export type ActionsDeleteHostedRunnerForOrgParams = z.infer< typeof ActionsDeleteHostedRunnerForOrgParamsSchema > @@ -16991,7 +18550,14 @@ export namespace github { .describe( 'Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hosted_runner_id: z + .number() + .int() + .describe('Unique identifier of the GitHub-hosted runner.') }) export type ActionsUpdateHostedRunnerForOrgParams = z.infer< typeof ActionsUpdateHostedRunnerForOrgParamsSchema @@ -17003,7 +18569,11 @@ export namespace github { typeof ActionsUpdateHostedRunnerForOrgResponseSchema > - export const OidcGetOidcCustomSubTemplateForOrgParamsSchema = z.object({}) + export const OidcGetOidcCustomSubTemplateForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OidcGetOidcCustomSubTemplateForOrgParams = z.infer< typeof OidcGetOidcCustomSubTemplateForOrgParamsSchema > @@ -17014,7 +18584,13 @@ export namespace github { typeof OidcGetOidcCustomSubTemplateForOrgResponseSchema > - export const OidcUpdateOidcCustomSubTemplateForOrgParamsSchema = OidcCustomSubSchema + export const OidcUpdateOidcCustomSubTemplateForOrgParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) + .merge(OidcCustomSubSchema) export type OidcUpdateOidcCustomSubTemplateForOrgParams = z.infer< typeof OidcUpdateOidcCustomSubTemplateForOrgParamsSchema > @@ -17022,7 +18598,11 @@ export namespace github { export type OidcUpdateOidcCustomSubTemplateForOrgResponse = undefined export const ActionsGetGithubActionsPermissionsOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetGithubActionsPermissionsOrganizationParams = z.infer< typeof ActionsGetGithubActionsPermissionsOrganizationParamsSchema > @@ -17036,7 +18616,10 @@ export namespace github { export const ActionsSetGithubActionsPermissionsOrganizationParamsSchema = z.object({ enabled_repositories: EnabledRepositoriesSchema, - allowed_actions: AllowedActionsSchema.optional() + allowed_actions: AllowedActionsSchema.optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsSetGithubActionsPermissionsOrganizationParams = z.infer< typeof ActionsSetGithubActionsPermissionsOrganizationParamsSchema @@ -17045,7 +18628,25 @@ export namespace github { export type ActionsSetGithubActionsPermissionsOrganizationResponse = undefined export const ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams = z.infer< typeof ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParamsSchema @@ -17067,7 +18668,10 @@ export namespace github { .array( z.number().int().describe('Unique identifier of the repository.') ) - .describe('List of repository IDs to enable for GitHub Actions.') + .describe('List of repository IDs to enable for GitHub Actions.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams = z.infer< @@ -17078,7 +18682,15 @@ export namespace github { undefined export const ActionsEnableSelectedRepositoryGithubActionsOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type ActionsEnableSelectedRepositoryGithubActionsOrganizationParams = z.infer< typeof ActionsEnableSelectedRepositoryGithubActionsOrganizationParamsSchema @@ -17088,7 +18700,15 @@ export namespace github { undefined export const ActionsDisableSelectedRepositoryGithubActionsOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type ActionsDisableSelectedRepositoryGithubActionsOrganizationParams = z.infer< typeof ActionsDisableSelectedRepositoryGithubActionsOrganizationParamsSchema @@ -17097,7 +18717,11 @@ export namespace github { export type ActionsDisableSelectedRepositoryGithubActionsOrganizationResponse = undefined - export const ActionsGetAllowedActionsOrganizationParamsSchema = z.object({}) + export const ActionsGetAllowedActionsOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetAllowedActionsOrganizationParams = z.infer< typeof ActionsGetAllowedActionsOrganizationParamsSchema > @@ -17108,7 +18732,13 @@ export namespace github { typeof ActionsGetAllowedActionsOrganizationResponseSchema > - export const ActionsSetAllowedActionsOrganizationParamsSchema = SelectedActionsSchema + export const ActionsSetAllowedActionsOrganizationParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) + .merge(SelectedActionsSchema) export type ActionsSetAllowedActionsOrganizationParams = z.infer< typeof ActionsSetAllowedActionsOrganizationParamsSchema > @@ -17116,7 +18746,11 @@ export namespace github { export type ActionsSetAllowedActionsOrganizationResponse = undefined export const ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParams = z.infer< typeof ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamsSchema @@ -17130,7 +18764,13 @@ export namespace github { > export const ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParamsSchema = - ActionsSetDefaultWorkflowPermissionsSchema + z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) + .merge(ActionsSetDefaultWorkflowPermissionsSchema) export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParams = z.infer< typeof ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParamsSchema @@ -17139,9 +18779,31 @@ export namespace github { export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationResponse = undefined - export const ActionsListSelfHostedRunnerGroupsForOrgParamsSchema = z.object( - {} - ) + export const ActionsListSelfHostedRunnerGroupsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + visible_to_repository: z + .string() + .describe( + 'Only return runner groups that are allowed to be used by this repository.' + ) + .optional() + }) export type ActionsListSelfHostedRunnerGroupsForOrgParams = z.infer< typeof ActionsListSelfHostedRunnerGroupsForOrgParamsSchema > @@ -17196,7 +18858,10 @@ export namespace github { network_configuration_id: z .string() .describe('The identifier of a hosted compute network configuration.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsCreateSelfHostedRunnerGroupForOrgParams = z.infer< typeof ActionsCreateSelfHostedRunnerGroupForOrgParamsSchema @@ -17204,7 +18869,15 @@ export namespace github { export type ActionsCreateSelfHostedRunnerGroupForOrgResponse = undefined - export const ActionsGetSelfHostedRunnerGroupForOrgParamsSchema = z.object({}) + export const ActionsGetSelfHostedRunnerGroupForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.') + }) export type ActionsGetSelfHostedRunnerGroupForOrgParams = z.infer< typeof ActionsGetSelfHostedRunnerGroupForOrgParamsSchema > @@ -17216,7 +18889,15 @@ export namespace github { > export const ActionsDeleteSelfHostedRunnerGroupFromOrgParamsSchema = z.object( - {} + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.') + } ) export type ActionsDeleteSelfHostedRunnerGroupFromOrgParams = z.infer< typeof ActionsDeleteSelfHostedRunnerGroupFromOrgParamsSchema @@ -17258,9 +18939,15 @@ export namespace github { .optional(), network_configuration_id: z .string() - .nullable() .describe('The identifier of a hosted compute network configuration.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.') }) export type ActionsUpdateSelfHostedRunnerGroupForOrgParams = z.infer< typeof ActionsUpdateSelfHostedRunnerGroupForOrgParamsSchema @@ -17273,7 +18960,29 @@ export namespace github { > export const ActionsListGithubHostedRunnersInGroupForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListGithubHostedRunnersInGroupForOrgParams = z.infer< typeof ActionsListGithubHostedRunnersInGroupForOrgParamsSchema > @@ -17288,7 +18997,29 @@ export namespace github { > export const ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams = z.infer< typeof ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema > @@ -17309,7 +19040,14 @@ export namespace github { .array( z.number().int().describe('Unique identifier of the repository.') ) - .describe('List of repository IDs that can access the runner group.') + .describe('List of repository IDs that can access the runner group.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.') }) export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams = z.infer< typeof ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema @@ -17319,7 +19057,19 @@ export namespace github { undefined export const ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams = z.infer< typeof ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema > @@ -17328,7 +19078,19 @@ export namespace github { undefined export const ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams = z.infer< typeof ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema @@ -17338,7 +19100,29 @@ export namespace github { undefined export const ActionsListSelfHostedRunnersInGroupForOrgParamsSchema = z.object( - {} + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type ActionsListSelfHostedRunnersInGroupForOrgParams = z.infer< typeof ActionsListSelfHostedRunnersInGroupForOrgParamsSchema @@ -17353,7 +19137,14 @@ export namespace github { export const ActionsSetSelfHostedRunnersInGroupForOrgParamsSchema = z.object({ runners: z .array(z.number().int().describe('Unique identifier of the runner.')) - .describe('List of runner IDs to add to the runner group.') + .describe('List of runner IDs to add to the runner group.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.') }) export type ActionsSetSelfHostedRunnersInGroupForOrgParams = z.infer< typeof ActionsSetSelfHostedRunnersInGroupForOrgParamsSchema @@ -17361,9 +19152,19 @@ export namespace github { export type ActionsSetSelfHostedRunnersInGroupForOrgResponse = undefined - export const ActionsAddSelfHostedRunnerToGroupForOrgParamsSchema = z.object( - {} - ) + export const ActionsAddSelfHostedRunnerToGroupForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsAddSelfHostedRunnerToGroupForOrgParams = z.infer< typeof ActionsAddSelfHostedRunnerToGroupForOrgParamsSchema > @@ -17371,7 +19172,19 @@ export namespace github { export type ActionsAddSelfHostedRunnerToGroupForOrgResponse = undefined export const ActionsRemoveSelfHostedRunnerFromGroupForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_group_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner group.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsRemoveSelfHostedRunnerFromGroupForOrgParams = z.infer< typeof ActionsRemoveSelfHostedRunnerFromGroupForOrgParamsSchema > @@ -17379,7 +19192,24 @@ export namespace github { export type ActionsRemoveSelfHostedRunnerFromGroupForOrgResponse = undefined export const ActionsListSelfHostedRunnersForOrgParamsSchema = z.object({ - name: z.string().describe('The name of a self-hosted runner.').optional() + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of a self-hosted runner.').optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ActionsListSelfHostedRunnersForOrgParams = z.infer< typeof ActionsListSelfHostedRunnersForOrgParamsSchema @@ -17393,7 +19223,11 @@ export namespace github { typeof ActionsListSelfHostedRunnersForOrgResponseSchema > - export const ActionsListRunnerApplicationsForOrgParamsSchema = z.object({}) + export const ActionsListRunnerApplicationsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsListRunnerApplicationsForOrgParams = z.infer< typeof ActionsListRunnerApplicationsForOrgParamsSchema > @@ -17423,7 +19257,10 @@ export namespace github { .describe( 'The working directory to be used for job execution, relative to the runner install directory.' ) - .default('_work') + .default('_work'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsGenerateRunnerJitconfigForOrgParams = z.infer< typeof ActionsGenerateRunnerJitconfigForOrgParamsSchema @@ -17431,21 +19268,37 @@ export namespace github { export type ActionsGenerateRunnerJitconfigForOrgResponse = undefined - export const ActionsCreateRegistrationTokenForOrgParamsSchema = z.object({}) + export const ActionsCreateRegistrationTokenForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsCreateRegistrationTokenForOrgParams = z.infer< typeof ActionsCreateRegistrationTokenForOrgParamsSchema > export type ActionsCreateRegistrationTokenForOrgResponse = undefined - export const ActionsCreateRemoveTokenForOrgParamsSchema = z.object({}) + export const ActionsCreateRemoveTokenForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsCreateRemoveTokenForOrgParams = z.infer< typeof ActionsCreateRemoveTokenForOrgParamsSchema > export type ActionsCreateRemoveTokenForOrgResponse = undefined - export const ActionsGetSelfHostedRunnerForOrgParamsSchema = z.object({}) + export const ActionsGetSelfHostedRunnerForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsGetSelfHostedRunnerForOrgParams = z.infer< typeof ActionsGetSelfHostedRunnerForOrgParamsSchema > @@ -17455,7 +19308,15 @@ export namespace github { typeof ActionsGetSelfHostedRunnerForOrgResponseSchema > - export const ActionsDeleteSelfHostedRunnerFromOrgParamsSchema = z.object({}) + export const ActionsDeleteSelfHostedRunnerFromOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsDeleteSelfHostedRunnerFromOrgParams = z.infer< typeof ActionsDeleteSelfHostedRunnerFromOrgParamsSchema > @@ -17463,7 +19324,15 @@ export namespace github { export type ActionsDeleteSelfHostedRunnerFromOrgResponse = undefined export const ActionsListLabelsForSelfHostedRunnerForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsListLabelsForSelfHostedRunnerForOrgParams = z.infer< typeof ActionsListLabelsForSelfHostedRunnerForOrgParamsSchema > @@ -17483,7 +19352,14 @@ export namespace github { .array(z.string()) .min(1) .max(100) - .describe('The names of the custom labels to add to the runner.') + .describe('The names of the custom labels to add to the runner.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') }) export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgParams = z.infer< typeof ActionsAddCustomLabelsToSelfHostedRunnerForOrgParamsSchema @@ -17506,7 +19382,14 @@ export namespace github { .max(100) .describe( 'The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') }) export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgParams = z.infer< typeof ActionsSetCustomLabelsForSelfHostedRunnerForOrgParamsSchema @@ -17522,7 +19405,15 @@ export namespace github { > export const ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParams = z.infer< typeof ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamsSchema @@ -17539,7 +19430,18 @@ export namespace github { > export const ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.'), + name: z + .string() + .describe("The name of a self-hosted runner's custom label.") + }) export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParams = z.infer< typeof ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParamsSchema @@ -17555,7 +19457,25 @@ export namespace github { typeof ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgResponseSchema > - export const ActionsListOrgSecretsParamsSchema = z.object({}) + export const ActionsListOrgSecretsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListOrgSecretsParams = z.infer< typeof ActionsListOrgSecretsParamsSchema > @@ -17568,7 +19488,11 @@ export namespace github { typeof ActionsListOrgSecretsResponseSchema > - export const ActionsGetOrgPublicKeyParamsSchema = z.object({}) + export const ActionsGetOrgPublicKeyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type ActionsGetOrgPublicKeyParams = z.infer< typeof ActionsGetOrgPublicKeyParamsSchema > @@ -17578,7 +19502,12 @@ export namespace github { typeof ActionsGetOrgPublicKeyResponseSchema > - export const ActionsGetOrgSecretParamsSchema = z.object({}) + export const ActionsGetOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsGetOrgSecretParams = z.infer< typeof ActionsGetOrgSecretParamsSchema > @@ -17613,7 +19542,11 @@ export namespace github { .describe( 'An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type ActionsCreateOrUpdateOrgSecretParams = z.infer< typeof ActionsCreateOrUpdateOrgSecretParamsSchema @@ -17621,14 +19554,38 @@ export namespace github { export type ActionsCreateOrUpdateOrgSecretResponse = undefined - export const ActionsDeleteOrgSecretParamsSchema = z.object({}) + export const ActionsDeleteOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsDeleteOrgSecretParams = z.infer< typeof ActionsDeleteOrgSecretParamsSchema > export type ActionsDeleteOrgSecretResponse = undefined - export const ActionsListSelectedReposForOrgSecretParamsSchema = z.object({}) + export const ActionsListSelectedReposForOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ActionsListSelectedReposForOrgSecretParams = z.infer< typeof ActionsListSelectedReposForOrgSecretParamsSchema > @@ -17646,7 +19603,11 @@ export namespace github { .array(z.number().int()) .describe( 'An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type ActionsSetSelectedReposForOrgSecretParams = z.infer< typeof ActionsSetSelectedReposForOrgSecretParamsSchema @@ -17655,6 +19616,10 @@ export namespace github { export type ActionsSetSelectedReposForOrgSecretResponse = undefined export const ActionsAddSelectedRepoToOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), repository_id: z.number().int() }) export type ActionsAddSelectedRepoToOrgSecretParams = z.infer< @@ -17664,6 +19629,10 @@ export namespace github { export type ActionsAddSelectedRepoToOrgSecretResponse = undefined export const ActionsRemoveSelectedRepoFromOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), repository_id: z.number().int() }) export type ActionsRemoveSelectedRepoFromOrgSecretParams = z.infer< @@ -17672,7 +19641,25 @@ export namespace github { export type ActionsRemoveSelectedRepoFromOrgSecretResponse = undefined - export const ActionsListOrgVariablesParamsSchema = z.object({}) + export const ActionsListOrgVariablesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(10), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListOrgVariablesParams = z.infer< typeof ActionsListOrgVariablesParamsSchema > @@ -17698,7 +19685,10 @@ export namespace github { .describe( 'An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsCreateOrgVariableParams = z.infer< typeof ActionsCreateOrgVariableParamsSchema @@ -17706,7 +19696,12 @@ export namespace github { export type ActionsCreateOrgVariableResponse = undefined - export const ActionsGetOrgVariableParamsSchema = z.object({}) + export const ActionsGetOrgVariableParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.') + }) export type ActionsGetOrgVariableParams = z.infer< typeof ActionsGetOrgVariableParamsSchema > @@ -17717,7 +19712,12 @@ export namespace github { typeof ActionsGetOrgVariableResponseSchema > - export const ActionsDeleteOrgVariableParamsSchema = z.object({}) + export const ActionsDeleteOrgVariableParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.') + }) export type ActionsDeleteOrgVariableParams = z.infer< typeof ActionsDeleteOrgVariableParamsSchema > @@ -17725,7 +19725,7 @@ export namespace github { export type ActionsDeleteOrgVariableResponse = undefined export const ActionsUpdateOrgVariableParamsSchema = z.object({ - name: z.string().describe('The name of the variable.').optional(), + name: z.string().describe('The name of the variable.'), value: z.string().describe('The value of the variable.').optional(), visibility: z .enum(['all', 'private', 'selected']) @@ -17738,7 +19738,10 @@ export namespace github { .describe( 'An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ActionsUpdateOrgVariableParams = z.infer< typeof ActionsUpdateOrgVariableParamsSchema @@ -17746,7 +19749,26 @@ export namespace github { export type ActionsUpdateOrgVariableResponse = undefined - export const ActionsListSelectedReposForOrgVariableParamsSchema = z.object({}) + export const ActionsListSelectedReposForOrgVariableParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ActionsListSelectedReposForOrgVariableParams = z.infer< typeof ActionsListSelectedReposForOrgVariableParamsSchema > @@ -17764,7 +19786,11 @@ export namespace github { .array(z.number().int()) .describe( 'The IDs of the repositories that can access the organization variable.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.') }) export type ActionsSetSelectedReposForOrgVariableParams = z.infer< typeof ActionsSetSelectedReposForOrgVariableParamsSchema @@ -17773,6 +19799,10 @@ export namespace github { export type ActionsSetSelectedReposForOrgVariableResponse = undefined export const ActionsAddSelectedRepoToOrgVariableParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.'), repository_id: z.number().int() }) export type ActionsAddSelectedRepoToOrgVariableParams = z.infer< @@ -17782,6 +19812,10 @@ export namespace github { export type ActionsAddSelectedRepoToOrgVariableResponse = undefined export const ActionsRemoveSelectedRepoFromOrgVariableParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + name: z.string().describe('The name of the variable.'), repository_id: z.number().int() }) export type ActionsRemoveSelectedRepoFromOrgVariableParams = z.infer< @@ -17791,11 +19825,33 @@ export namespace github { export type ActionsRemoveSelectedRepoFromOrgVariableResponse = undefined export const OrgsListAttestationsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), subject_digest: z .string() .describe( "The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`." ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), predicate_type: z .string() .describe( @@ -17831,7 +19887,25 @@ export namespace github { typeof OrgsListAttestationsResponseSchema > - export const OrgsListBlockedUsersParamsSchema = z.object({}) + export const OrgsListBlockedUsersParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListBlockedUsersParams = z.infer< typeof OrgsListBlockedUsersParamsSchema > @@ -17841,19 +19915,34 @@ export namespace github { typeof OrgsListBlockedUsersResponseSchema > - export const OrgsCheckBlockedUserParamsSchema = z.object({}) + export const OrgsCheckBlockedUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsCheckBlockedUserParams = z.infer< typeof OrgsCheckBlockedUserParamsSchema > export type OrgsCheckBlockedUserResponse = undefined - export const OrgsBlockUserParamsSchema = z.object({}) + export const OrgsBlockUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsBlockUserParams = z.infer export type OrgsBlockUserResponse = undefined - export const OrgsUnblockUserParamsSchema = z.object({}) + export const OrgsUnblockUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsUnblockUserParams = z.infer< typeof OrgsUnblockUserParamsSchema > @@ -17861,6 +19950,51 @@ export namespace github { export type OrgsUnblockUserResponse = undefined export const CodeScanningListAlertsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + tool_name: z + .any() + .describe( + 'The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both.' + ) + .optional(), + tool_guid: z + .any() + .describe( + 'The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both.' + ) + .optional(), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), state: z .any() .describe( @@ -17890,6 +20024,9 @@ export namespace github { > export const CodeSecurityGetConfigurationsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), target_type: z .enum(['global', 'all']) .describe('The target type of the code security configuration') @@ -17900,7 +20037,19 @@ export namespace github { .describe( 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) - .default(30) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional() }) export type CodeSecurityGetConfigurationsForOrgParams = z.infer< typeof CodeSecurityGetConfigurationsForOrgParamsSchema @@ -18026,7 +20175,10 @@ export namespace github { enforcement: z .enum(['enforced', 'unenforced']) .describe('The enforcement status for a security configuration') - .default('enforced') + .default('enforced'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CodeSecurityCreateConfigurationParams = z.infer< typeof CodeSecurityCreateConfigurationParamsSchema @@ -18034,7 +20186,11 @@ export namespace github { export type CodeSecurityCreateConfigurationResponse = undefined - export const CodeSecurityGetDefaultConfigurationsParamsSchema = z.object({}) + export const CodeSecurityGetDefaultConfigurationsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type CodeSecurityGetDefaultConfigurationsParams = z.infer< typeof CodeSecurityGetDefaultConfigurationsParamsSchema > @@ -18049,7 +20205,10 @@ export namespace github { selected_repository_ids: z .array(z.number().int().describe('Unique identifier of the repository.')) .describe('An array of repository IDs to detach from configurations.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CodeSecurityDetachConfigurationParams = z.infer< typeof CodeSecurityDetachConfigurationParamsSchema @@ -18057,7 +20216,15 @@ export namespace github { export type CodeSecurityDetachConfigurationResponse = undefined - export const CodeSecurityGetConfigurationParamsSchema = z.object({}) + export const CodeSecurityGetConfigurationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') + }) export type CodeSecurityGetConfigurationParams = z.infer< typeof CodeSecurityGetConfigurationParamsSchema > @@ -18068,7 +20235,15 @@ export namespace github { typeof CodeSecurityGetConfigurationResponseSchema > - export const CodeSecurityDeleteConfigurationParamsSchema = z.object({}) + export const CodeSecurityDeleteConfigurationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') + }) export type CodeSecurityDeleteConfigurationParams = z.infer< typeof CodeSecurityDeleteConfigurationParamsSchema > @@ -18190,7 +20365,14 @@ export namespace github { enforcement: z .enum(['enforced', 'unenforced']) .describe('The enforcement status for a security configuration') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') }) export type CodeSecurityUpdateConfigurationParams = z.infer< typeof CodeSecurityUpdateConfigurationParamsSchema @@ -18219,7 +20401,14 @@ export namespace github { .describe( 'An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') }) export type CodeSecurityAttachConfigurationParams = z.infer< typeof CodeSecurityAttachConfigurationParamsSchema @@ -18233,7 +20422,14 @@ export namespace github { .describe( 'Specify which types of repository this security configuration should be applied to by default.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.') }) export type CodeSecuritySetConfigurationAsDefaultParams = z.infer< typeof CodeSecuritySetConfigurationAsDefaultParamsSchema @@ -18254,6 +20450,13 @@ export namespace github { export const CodeSecurityGetRepositoriesForConfigurationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + configuration_id: z + .number() + .int() + .describe('The unique identifier of the code security configuration.'), per_page: z .number() .int() @@ -18261,6 +20464,18 @@ export namespace github { 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), status: z .string() .describe( @@ -18278,7 +20493,25 @@ export namespace github { typeof CodeSecurityGetRepositoriesForConfigurationResponseSchema > - export const CodespacesListInOrganizationParamsSchema = z.object({}) + export const CodespacesListInOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesListInOrganizationParams = z.infer< typeof CodespacesListInOrganizationParamsSchema > @@ -18308,7 +20541,10 @@ export namespace github { .describe( 'The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CodespacesSetCodespacesAccessParams = z.infer< typeof CodespacesSetCodespacesAccessParamsSchema @@ -18322,7 +20558,10 @@ export namespace github { .max(100) .describe( 'The usernames of the organization members whose codespaces be billed to the organization.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CodespacesSetCodespacesAccessUsersParams = z.infer< typeof CodespacesSetCodespacesAccessUsersParamsSchema @@ -18336,7 +20575,10 @@ export namespace github { .max(100) .describe( 'The usernames of the organization members whose codespaces should not be billed to the organization.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CodespacesDeleteCodespacesAccessUsersParams = z.infer< typeof CodespacesDeleteCodespacesAccessUsersParamsSchema @@ -18344,7 +20586,25 @@ export namespace github { export type CodespacesDeleteCodespacesAccessUsersResponse = undefined - export const CodespacesListOrgSecretsParamsSchema = z.object({}) + export const CodespacesListOrgSecretsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesListOrgSecretsParams = z.infer< typeof CodespacesListOrgSecretsParamsSchema > @@ -18357,7 +20617,11 @@ export namespace github { typeof CodespacesListOrgSecretsResponseSchema > - export const CodespacesGetOrgPublicKeyParamsSchema = z.object({}) + export const CodespacesGetOrgPublicKeyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type CodespacesGetOrgPublicKeyParams = z.infer< typeof CodespacesGetOrgPublicKeyParamsSchema > @@ -18368,7 +20632,12 @@ export namespace github { typeof CodespacesGetOrgPublicKeyResponseSchema > - export const CodespacesGetOrgSecretParamsSchema = z.object({}) + export const CodespacesGetOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type CodespacesGetOrgSecretParams = z.infer< typeof CodespacesGetOrgSecretParamsSchema > @@ -18404,7 +20673,11 @@ export namespace github { .describe( 'An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type CodespacesCreateOrUpdateOrgSecretParams = z.infer< typeof CodespacesCreateOrUpdateOrgSecretParamsSchema @@ -18412,16 +20685,38 @@ export namespace github { export type CodespacesCreateOrUpdateOrgSecretResponse = undefined - export const CodespacesDeleteOrgSecretParamsSchema = z.object({}) + export const CodespacesDeleteOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type CodespacesDeleteOrgSecretParams = z.infer< typeof CodespacesDeleteOrgSecretParamsSchema > export type CodespacesDeleteOrgSecretResponse = undefined - export const CodespacesListSelectedReposForOrgSecretParamsSchema = z.object( - {} - ) + export const CodespacesListSelectedReposForOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type CodespacesListSelectedReposForOrgSecretParams = z.infer< typeof CodespacesListSelectedReposForOrgSecretParamsSchema > @@ -18441,7 +20736,11 @@ export namespace github { .array(z.number().int()) .describe( 'An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type CodespacesSetSelectedReposForOrgSecretParams = z.infer< typeof CodespacesSetSelectedReposForOrgSecretParamsSchema @@ -18450,6 +20749,10 @@ export namespace github { export type CodespacesSetSelectedReposForOrgSecretResponse = undefined export const CodespacesAddSelectedRepoToOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), repository_id: z.number().int() }) export type CodespacesAddSelectedRepoToOrgSecretParams = z.infer< @@ -18459,7 +20762,13 @@ export namespace github { export type CodespacesAddSelectedRepoToOrgSecretResponse = undefined export const CodespacesRemoveSelectedRepoFromOrgSecretParamsSchema = z.object( - { repository_id: z.number().int() } + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), + repository_id: z.number().int() + } ) export type CodespacesRemoveSelectedRepoFromOrgSecretParams = z.infer< typeof CodespacesRemoveSelectedRepoFromOrgSecretParamsSchema @@ -18467,7 +20776,11 @@ export namespace github { export type CodespacesRemoveSelectedRepoFromOrgSecretResponse = undefined - export const CopilotGetCopilotOrganizationDetailsParamsSchema = z.object({}) + export const CopilotGetCopilotOrganizationDetailsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type CopilotGetCopilotOrganizationDetailsParams = z.infer< typeof CopilotGetCopilotOrganizationDetailsParamsSchema > @@ -18479,6 +20792,16 @@ export namespace github { > export const CopilotListCopilotSeatsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -18511,7 +20834,10 @@ export namespace github { .min(1) .describe( 'List of team names within the organization to which to grant access to GitHub Copilot.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CopilotAddCopilotSeatsForTeamsParams = z.infer< typeof CopilotAddCopilotSeatsForTeamsParamsSchema @@ -18526,7 +20852,10 @@ export namespace github { .min(1) .describe( 'The names of teams from which to revoke access to GitHub Copilot.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CopilotCancelCopilotSeatAssignmentForTeamsParams = z.infer< typeof CopilotCancelCopilotSeatAssignmentForTeamsParamsSchema @@ -18547,7 +20876,10 @@ export namespace github { .min(1) .describe( 'The usernames of the organization members to be granted access to GitHub Copilot.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CopilotAddCopilotSeatsForUsersParams = z.infer< typeof CopilotAddCopilotSeatsForUsersParamsSchema @@ -18562,7 +20894,10 @@ export namespace github { .min(1) .describe( 'The usernames of the organization members for which to revoke access to GitHub Copilot.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type CopilotCancelCopilotSeatAssignmentForUsersParams = z.infer< typeof CopilotCancelCopilotSeatAssignmentForUsersParamsSchema @@ -18578,6 +20913,9 @@ export namespace github { > export const CopilotCopilotMetricsForOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), since: z .string() .describe( @@ -18590,6 +20928,13 @@ export namespace github { 'Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.' ) .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -18610,6 +20955,9 @@ export namespace github { > export const CopilotUsageMetricsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), since: z .string() .describe( @@ -18622,6 +20970,13 @@ export namespace github { 'Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.' ) .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -18641,7 +20996,94 @@ export namespace github { typeof CopilotUsageMetricsForOrgResponseSchema > - export const DependabotListAlertsForOrgParamsSchema = z.object({}) + export const DependabotListAlertsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + state: z + .string() + .describe( + 'A comma-separated list of states. If specified, only alerts with these states will be returned.\n\nCan be: `auto_dismissed`, `dismissed`, `fixed`, `open`' + ) + .optional(), + severity: z + .string() + .describe( + 'A comma-separated list of severities. If specified, only alerts with these severities will be returned.\n\nCan be: `low`, `medium`, `high`, `critical`' + ) + .optional(), + ecosystem: z + .string() + .describe( + 'A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.\n\nCan be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`' + ) + .optional(), + package: z + .string() + .describe( + 'A comma-separated list of package names. If specified, only alerts for these packages will be returned.' + ) + .optional(), + epss_percentage: z + .string() + .describe( + 'CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:\n- An exact number (`n`)\n- Comparators such as `>n`, `=n`, `<=n`\n- A range like `n..n`, where `n` is a number from 0.0 to 1.0\n\nFilters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.' + ) + .optional(), + scope: z + .enum(['development', 'runtime']) + .describe( + 'The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.' + ) + .optional(), + sort: z + .enum(['created', 'updated', 'epss_percentage']) + .describe( + "The property by which to sort the results.\n`created` means when the alert was created.\n`updated` means when the alert's state last changed.\n`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage." + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + first: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the first matching result.\nThis parameter must not be used in combination with `last`.\nInstead, use `per_page` in combination with `after` to fetch the first page of results.' + ) + .default(30), + last: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the last matching result.\nThis parameter must not be used in combination with `first`.\nInstead, use `per_page` in combination with `before` to fetch the last page of results.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type DependabotListAlertsForOrgParams = z.infer< typeof DependabotListAlertsForOrgParamsSchema > @@ -18653,7 +21095,25 @@ export namespace github { typeof DependabotListAlertsForOrgResponseSchema > - export const DependabotListOrgSecretsParamsSchema = z.object({}) + export const DependabotListOrgSecretsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type DependabotListOrgSecretsParams = z.infer< typeof DependabotListOrgSecretsParamsSchema > @@ -18666,7 +21126,11 @@ export namespace github { typeof DependabotListOrgSecretsResponseSchema > - export const DependabotGetOrgPublicKeyParamsSchema = z.object({}) + export const DependabotGetOrgPublicKeyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type DependabotGetOrgPublicKeyParams = z.infer< typeof DependabotGetOrgPublicKeyParamsSchema > @@ -18677,7 +21141,12 @@ export namespace github { typeof DependabotGetOrgPublicKeyResponseSchema > - export const DependabotGetOrgSecretParamsSchema = z.object({}) + export const DependabotGetOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type DependabotGetOrgSecretParams = z.infer< typeof DependabotGetOrgSecretParamsSchema > @@ -18714,7 +21183,11 @@ export namespace github { .describe( 'An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type DependabotCreateOrUpdateOrgSecretParams = z.infer< typeof DependabotCreateOrUpdateOrgSecretParamsSchema @@ -18722,16 +21195,38 @@ export namespace github { export type DependabotCreateOrUpdateOrgSecretResponse = undefined - export const DependabotDeleteOrgSecretParamsSchema = z.object({}) + export const DependabotDeleteOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type DependabotDeleteOrgSecretParams = z.infer< typeof DependabotDeleteOrgSecretParamsSchema > export type DependabotDeleteOrgSecretResponse = undefined - export const DependabotListSelectedReposForOrgSecretParamsSchema = z.object( - {} - ) + export const DependabotListSelectedReposForOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type DependabotListSelectedReposForOrgSecretParams = z.infer< typeof DependabotListSelectedReposForOrgSecretParamsSchema > @@ -18751,7 +21246,11 @@ export namespace github { .array(z.number().int()) .describe( 'An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') }) export type DependabotSetSelectedReposForOrgSecretParams = z.infer< typeof DependabotSetSelectedReposForOrgSecretParamsSchema @@ -18760,6 +21259,10 @@ export namespace github { export type DependabotSetSelectedReposForOrgSecretResponse = undefined export const DependabotAddSelectedRepoToOrgSecretParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), repository_id: z.number().int() }) export type DependabotAddSelectedRepoToOrgSecretParams = z.infer< @@ -18769,7 +21272,13 @@ export namespace github { export type DependabotAddSelectedRepoToOrgSecretResponse = undefined export const DependabotRemoveSelectedRepoFromOrgSecretParamsSchema = z.object( - { repository_id: z.number().int() } + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.'), + repository_id: z.number().int() + } ) export type DependabotRemoveSelectedRepoFromOrgSecretParams = z.infer< typeof DependabotRemoveSelectedRepoFromOrgSecretParamsSchema @@ -18778,7 +21287,11 @@ export namespace github { export type DependabotRemoveSelectedRepoFromOrgSecretResponse = undefined export const PackagesListDockerMigrationConflictingPackagesForOrganizationParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type PackagesListDockerMigrationConflictingPackagesForOrganizationParams = z.infer< typeof PackagesListDockerMigrationConflictingPackagesForOrganizationParamsSchema @@ -18791,7 +21304,25 @@ export namespace github { typeof PackagesListDockerMigrationConflictingPackagesForOrganizationResponseSchema > - export const ActivityListPublicOrgEventsParamsSchema = z.object({}) + export const ActivityListPublicOrgEventsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListPublicOrgEventsParams = z.infer< typeof ActivityListPublicOrgEventsParamsSchema > @@ -18801,7 +21332,25 @@ export namespace github { typeof ActivityListPublicOrgEventsResponseSchema > - export const OrgsListFailedInvitationsParamsSchema = z.object({}) + export const OrgsListFailedInvitationsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListFailedInvitationsParams = z.infer< typeof OrgsListFailedInvitationsParamsSchema > @@ -18813,7 +21362,25 @@ export namespace github { typeof OrgsListFailedInvitationsResponseSchema > - export const OrgsListWebhooksParamsSchema = z.object({}) + export const OrgsListWebhooksParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListWebhooksParams = z.infer< typeof OrgsListWebhooksParamsSchema > @@ -18846,7 +21413,10 @@ export namespace github { .describe( 'Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.' ) - .default(true) + .default(true), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsCreateWebhookParams = z.infer< typeof OrgsCreateWebhookParamsSchema @@ -18854,7 +21424,17 @@ export namespace github { export type OrgsCreateWebhookResponse = undefined - export const OrgsGetWebhookParamsSchema = z.object({}) + export const OrgsGetWebhookParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type OrgsGetWebhookParams = z.infer export const OrgsGetWebhookResponseSchema = OrgHookSchema @@ -18862,7 +21442,17 @@ export namespace github { typeof OrgsGetWebhookResponseSchema > - export const OrgsDeleteWebhookParamsSchema = z.object({}) + export const OrgsDeleteWebhookParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type OrgsDeleteWebhookParams = z.infer< typeof OrgsDeleteWebhookParamsSchema > @@ -18891,7 +21481,16 @@ export namespace github { 'Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.' ) .default(true), - name: z.string().optional() + name: z.string().optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) }) export type OrgsUpdateWebhookParams = z.infer< typeof OrgsUpdateWebhookParamsSchema @@ -18902,7 +21501,17 @@ export namespace github { typeof OrgsUpdateWebhookResponseSchema > - export const OrgsGetWebhookConfigForOrgParamsSchema = z.object({}) + export const OrgsGetWebhookConfigForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type OrgsGetWebhookConfigForOrgParams = z.infer< typeof OrgsGetWebhookConfigForOrgParamsSchema > @@ -18916,7 +21525,16 @@ export namespace github { url: WebhookConfigUrlSchema.optional(), content_type: WebhookConfigContentTypeSchema.optional(), secret: WebhookConfigSecretSchema.optional(), - insecure_ssl: WebhookConfigInsecureSslSchema.optional() + insecure_ssl: WebhookConfigInsecureSslSchema.optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) }) export type OrgsUpdateWebhookConfigForOrgParams = z.infer< typeof OrgsUpdateWebhookConfigForOrgParamsSchema @@ -18927,7 +21545,30 @@ export namespace github { typeof OrgsUpdateWebhookConfigForOrgResponseSchema > - export const OrgsListWebhookDeliveriesParamsSchema = z.object({}) + export const OrgsListWebhookDeliveriesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + cursor: z + .string() + .describe( + 'Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.' + ) + .optional() + }) export type OrgsListWebhookDeliveriesParams = z.infer< typeof OrgsListWebhookDeliveriesParamsSchema > @@ -18939,7 +21580,18 @@ export namespace github { typeof OrgsListWebhookDeliveriesResponseSchema > - export const OrgsGetWebhookDeliveryParamsSchema = z.object({}) + export const OrgsGetWebhookDeliveryParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + delivery_id: z.number().int() + }) export type OrgsGetWebhookDeliveryParams = z.infer< typeof OrgsGetWebhookDeliveryParamsSchema > @@ -18949,21 +21601,106 @@ export namespace github { typeof OrgsGetWebhookDeliveryResponseSchema > - export const OrgsRedeliverWebhookDeliveryParamsSchema = z.object({}) + export const OrgsRedeliverWebhookDeliveryParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + delivery_id: z.number().int() + }) export type OrgsRedeliverWebhookDeliveryParams = z.infer< typeof OrgsRedeliverWebhookDeliveryParamsSchema > export type OrgsRedeliverWebhookDeliveryResponse = undefined - export const OrgsPingWebhookParamsSchema = z.object({}) + export const OrgsPingWebhookParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type OrgsPingWebhookParams = z.infer< typeof OrgsPingWebhookParamsSchema > export type OrgsPingWebhookResponse = undefined - export const ApiInsightsGetRouteStatsByActorParamsSchema = z.object({}) + export const ApiInsightsGetRouteStatsByActorParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + actor_type: z + .enum([ + 'installation', + 'classic_pat', + 'fine_grained_pat', + 'oauth_app', + 'github_app_user_to_server' + ]) + .describe('The type of the actor'), + actor_id: z.number().int().describe('The ID of the actor'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + sort: z + .array( + z + .enum([ + 'last_rate_limited_timestamp', + 'last_request_timestamp', + 'rate_limited_request_count', + 'http_method', + 'api_route', + 'total_request_count' + ]) + .default('total_request_count') + ) + .describe('The property to sort the results by.') + .optional(), + api_route_substring: z + .string() + .describe( + 'Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.' + ) + .optional() + }) export type ApiInsightsGetRouteStatsByActorParams = z.infer< typeof ApiInsightsGetRouteStatsByActorParamsSchema > @@ -18974,7 +21711,60 @@ export namespace github { typeof ApiInsightsGetRouteStatsByActorResponseSchema > - export const ApiInsightsGetSubjectStatsParamsSchema = z.object({}) + export const ApiInsightsGetSubjectStatsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + sort: z + .array( + z + .enum([ + 'last_rate_limited_timestamp', + 'last_request_timestamp', + 'rate_limited_request_count', + 'subject_name', + 'total_request_count' + ]) + .default('total_request_count') + ) + .describe('The property to sort the results by.') + .optional(), + subject_name_substring: z + .string() + .describe( + 'Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search.' + ) + .optional() + }) export type ApiInsightsGetSubjectStatsParams = z.infer< typeof ApiInsightsGetSubjectStatsParamsSchema > @@ -18985,7 +21775,22 @@ export namespace github { typeof ApiInsightsGetSubjectStatsResponseSchema > - export const ApiInsightsGetSummaryStatsParamsSchema = z.object({}) + export const ApiInsightsGetSummaryStatsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional() + }) export type ApiInsightsGetSummaryStatsParams = z.infer< typeof ApiInsightsGetSummaryStatsParamsSchema > @@ -18996,7 +21801,23 @@ export namespace github { typeof ApiInsightsGetSummaryStatsResponseSchema > - export const ApiInsightsGetSummaryStatsByUserParamsSchema = z.object({}) + export const ApiInsightsGetSummaryStatsByUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + user_id: z.string().describe('The ID of the user to query for stats'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional() + }) export type ApiInsightsGetSummaryStatsByUserParams = z.infer< typeof ApiInsightsGetSummaryStatsByUserParamsSchema > @@ -19007,7 +21828,32 @@ export namespace github { typeof ApiInsightsGetSummaryStatsByUserResponseSchema > - export const ApiInsightsGetSummaryStatsByActorParamsSchema = z.object({}) + export const ApiInsightsGetSummaryStatsByActorParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + actor_type: z + .enum([ + 'installation', + 'classic_pat', + 'fine_grained_pat', + 'oauth_app', + 'github_app_user_to_server' + ]) + .describe('The type of the actor'), + actor_id: z.number().int().describe('The ID of the actor'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional() + }) export type ApiInsightsGetSummaryStatsByActorParams = z.infer< typeof ApiInsightsGetSummaryStatsByActorParamsSchema > @@ -19018,7 +21864,27 @@ export namespace github { typeof ApiInsightsGetSummaryStatsByActorResponseSchema > - export const ApiInsightsGetTimeStatsParamsSchema = z.object({}) + export const ApiInsightsGetTimeStatsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + timestamp_increment: z + .string() + .describe( + 'The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)' + ) + }) export type ApiInsightsGetTimeStatsParams = z.infer< typeof ApiInsightsGetTimeStatsParamsSchema > @@ -19029,7 +21895,28 @@ export namespace github { typeof ApiInsightsGetTimeStatsResponseSchema > - export const ApiInsightsGetTimeStatsByUserParamsSchema = z.object({}) + export const ApiInsightsGetTimeStatsByUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + user_id: z.string().describe('The ID of the user to query for stats'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + timestamp_increment: z + .string() + .describe( + 'The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)' + ) + }) export type ApiInsightsGetTimeStatsByUserParams = z.infer< typeof ApiInsightsGetTimeStatsByUserParamsSchema > @@ -19040,7 +21927,37 @@ export namespace github { typeof ApiInsightsGetTimeStatsByUserResponseSchema > - export const ApiInsightsGetTimeStatsByActorParamsSchema = z.object({}) + export const ApiInsightsGetTimeStatsByActorParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + actor_type: z + .enum([ + 'installation', + 'classic_pat', + 'fine_grained_pat', + 'oauth_app', + 'github_app_user_to_server' + ]) + .describe('The type of the actor'), + actor_id: z.number().int().describe('The ID of the actor'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + timestamp_increment: z + .string() + .describe( + 'The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)' + ) + }) export type ApiInsightsGetTimeStatsByActorParams = z.infer< typeof ApiInsightsGetTimeStatsByActorParamsSchema > @@ -19051,7 +21968,61 @@ export namespace github { typeof ApiInsightsGetTimeStatsByActorResponseSchema > - export const ApiInsightsGetUserStatsParamsSchema = z.object({}) + export const ApiInsightsGetUserStatsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + user_id: z.string().describe('The ID of the user to query for stats'), + min_timestamp: z + .string() + .describe( + 'The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ), + max_timestamp: z + .string() + .describe( + 'The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + sort: z + .array( + z + .enum([ + 'last_rate_limited_timestamp', + 'last_request_timestamp', + 'rate_limited_request_count', + 'subject_name', + 'total_request_count' + ]) + .default('total_request_count') + ) + .describe('The property to sort the results by.') + .optional(), + actor_name_substring: z + .string() + .describe( + 'Providing a substring will filter results where the actor name contains the substring. This is a case-insensitive search.' + ) + .optional() + }) export type ApiInsightsGetUserStatsParams = z.infer< typeof ApiInsightsGetUserStatsParamsSchema > @@ -19062,7 +22033,11 @@ export namespace github { typeof ApiInsightsGetUserStatsResponseSchema > - export const AppsGetOrgInstallationParamsSchema = z.object({}) + export const AppsGetOrgInstallationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type AppsGetOrgInstallationParams = z.infer< typeof AppsGetOrgInstallationParamsSchema > @@ -19072,7 +22047,25 @@ export namespace github { typeof AppsGetOrgInstallationResponseSchema > - export const OrgsListAppInstallationsParamsSchema = z.object({}) + export const OrgsListAppInstallationsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListAppInstallationsParams = z.infer< typeof OrgsListAppInstallationsParamsSchema > @@ -19085,7 +22078,11 @@ export namespace github { typeof OrgsListAppInstallationsResponseSchema > - export const InteractionsGetRestrictionsForOrgParamsSchema = z.object({}) + export const InteractionsGetRestrictionsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type InteractionsGetRestrictionsForOrgParams = z.infer< typeof InteractionsGetRestrictionsForOrgParamsSchema > @@ -19098,7 +22095,13 @@ export namespace github { typeof InteractionsGetRestrictionsForOrgResponseSchema > - export const InteractionsSetRestrictionsForOrgParamsSchema = InteractionLimitSchema + export const InteractionsSetRestrictionsForOrgParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) + .merge(InteractionLimitSchema) export type InteractionsSetRestrictionsForOrgParams = z.infer< typeof InteractionsSetRestrictionsForOrgParamsSchema > @@ -19109,7 +22112,11 @@ export namespace github { typeof InteractionsSetRestrictionsForOrgResponseSchema > - export const InteractionsRemoveRestrictionsForOrgParamsSchema = z.object({}) + export const InteractionsRemoveRestrictionsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type InteractionsRemoveRestrictionsForOrgParams = z.infer< typeof InteractionsRemoveRestrictionsForOrgParamsSchema > @@ -19117,6 +22124,23 @@ export namespace github { export type InteractionsRemoveRestrictionsForOrgResponse = undefined export const OrgsListPendingInvitationsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), role: z .enum([ 'all', @@ -19166,7 +22190,10 @@ export namespace github { team_ids: z .array(z.number().int()) .describe('Specify IDs for the teams you want to invite new members to.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsCreateInvitationParams = z.infer< typeof OrgsCreateInvitationParamsSchema @@ -19174,14 +22201,44 @@ export namespace github { export type OrgsCreateInvitationResponse = undefined - export const OrgsCancelInvitationParamsSchema = z.object({}) + export const OrgsCancelInvitationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.') + }) export type OrgsCancelInvitationParams = z.infer< typeof OrgsCancelInvitationParamsSchema > export type OrgsCancelInvitationResponse = undefined - export const OrgsListInvitationTeamsParamsSchema = z.object({}) + export const OrgsListInvitationTeamsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListInvitationTeamsParams = z.infer< typeof OrgsListInvitationTeamsParamsSchema > @@ -19191,7 +22248,11 @@ export namespace github { typeof OrgsListInvitationTeamsResponseSchema > - export const OrgsListIssueTypesParamsSchema = z.object({}) + export const OrgsListIssueTypesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsListIssueTypesParams = z.infer< typeof OrgsListIssueTypesParamsSchema > @@ -19201,7 +22262,13 @@ export namespace github { typeof OrgsListIssueTypesResponseSchema > - export const OrgsCreateIssueTypeParamsSchema = OrganizationCreateIssueTypeSchema + export const OrgsCreateIssueTypeParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) + .merge(OrganizationCreateIssueTypeSchema) export type OrgsCreateIssueTypeParams = z.infer< typeof OrgsCreateIssueTypeParamsSchema > @@ -19211,7 +22278,17 @@ export namespace github { typeof OrgsCreateIssueTypeResponseSchema > - export const OrgsUpdateIssueTypeParamsSchema = OrganizationUpdateIssueTypeSchema + export const OrgsUpdateIssueTypeParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + issue_type_id: z + .number() + .int() + .describe('The unique identifier of the issue type.') + }) + .merge(OrganizationUpdateIssueTypeSchema) export type OrgsUpdateIssueTypeParams = z.infer< typeof OrgsUpdateIssueTypeParamsSchema > @@ -19221,7 +22298,15 @@ export namespace github { typeof OrgsUpdateIssueTypeResponseSchema > - export const OrgsDeleteIssueTypeParamsSchema = z.object({}) + export const OrgsDeleteIssueTypeParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + issue_type_id: z + .number() + .int() + .describe('The unique identifier of the issue type.') + }) export type OrgsDeleteIssueTypeParams = z.infer< typeof OrgsDeleteIssueTypeParamsSchema > @@ -19229,6 +22314,9 @@ export namespace github { export type OrgsDeleteIssueTypeResponse = undefined export const IssuesListForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), filter: z .enum(['assigned', 'created', 'mentioned', 'subscribed', 'repos', 'all']) .describe( @@ -19239,11 +22327,42 @@ export namespace github { .enum(['open', 'closed', 'all']) .describe('Indicates the state of the issues to return.') .default('open'), + labels: z + .string() + .describe( + 'A list of comma separated label names. Example: `bug,ui,@high`' + ) + .optional(), type: z.string().describe('Can be the name of an issue type.').optional(), sort: z .enum(['created', 'updated', 'comments']) .describe('What to sort results by.') - .default('created') + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListForOrgParams = z.infer< typeof IssuesListForOrgParamsSchema @@ -19255,6 +22374,9 @@ export namespace github { > export const OrgsListMembersParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), filter: z .enum(['2fa_disabled', 'all']) .describe( @@ -19264,7 +22386,21 @@ export namespace github { role: z .enum(['all', 'admin', 'member']) .describe('Filter members returned by their role.') - .default('all') + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsListMembersParams = z.infer< typeof OrgsListMembersParamsSchema @@ -19275,21 +22411,50 @@ export namespace github { typeof OrgsListMembersResponseSchema > - export const OrgsCheckMembershipForUserParamsSchema = z.object({}) + export const OrgsCheckMembershipForUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsCheckMembershipForUserParams = z.infer< typeof OrgsCheckMembershipForUserParamsSchema > export type OrgsCheckMembershipForUserResponse = undefined - export const OrgsRemoveMemberParamsSchema = z.object({}) + export const OrgsRemoveMemberParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsRemoveMemberParams = z.infer< typeof OrgsRemoveMemberParamsSchema > export type OrgsRemoveMemberResponse = undefined - export const CodespacesGetCodespacesForUserInOrgParamsSchema = z.object({}) + export const CodespacesGetCodespacesForUserInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesGetCodespacesForUserInOrgParams = z.infer< typeof CodespacesGetCodespacesForUserInOrgParamsSchema > @@ -19302,14 +22467,26 @@ export namespace github { typeof CodespacesGetCodespacesForUserInOrgResponseSchema > - export const CodespacesDeleteFromOrganizationParamsSchema = z.object({}) + export const CodespacesDeleteFromOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.'), + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesDeleteFromOrganizationParams = z.infer< typeof CodespacesDeleteFromOrganizationParamsSchema > export type CodespacesDeleteFromOrganizationResponse = undefined - export const CodespacesStopInOrganizationParamsSchema = z.object({}) + export const CodespacesStopInOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.'), + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesStopInOrganizationParams = z.infer< typeof CodespacesStopInOrganizationParamsSchema > @@ -19319,7 +22496,12 @@ export namespace github { typeof CodespacesStopInOrganizationResponseSchema > - export const CopilotGetCopilotSeatDetailsForUserParamsSchema = z.object({}) + export const CopilotGetCopilotSeatDetailsForUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type CopilotGetCopilotSeatDetailsForUserParams = z.infer< typeof CopilotGetCopilotSeatDetailsForUserParamsSchema > @@ -19330,7 +22512,12 @@ export namespace github { typeof CopilotGetCopilotSeatDetailsForUserResponseSchema > - export const OrgsGetMembershipForUserParamsSchema = z.object({}) + export const OrgsGetMembershipForUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsGetMembershipForUserParams = z.infer< typeof OrgsGetMembershipForUserParamsSchema > @@ -19346,7 +22533,11 @@ export namespace github { .describe( 'The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.' ) - .default('member') + .default('member'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') }) export type OrgsSetMembershipForUserParams = z.infer< typeof OrgsSetMembershipForUserParamsSchema @@ -19357,7 +22548,12 @@ export namespace github { typeof OrgsSetMembershipForUserResponseSchema > - export const OrgsRemoveMembershipForUserParamsSchema = z.object({}) + export const OrgsRemoveMembershipForUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsRemoveMembershipForUserParams = z.infer< typeof OrgsRemoveMembershipForUserParamsSchema > @@ -19365,6 +22561,23 @@ export namespace github { export type OrgsRemoveMembershipForUserResponse = undefined export const MigrationsListForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), exclude: z .array( z @@ -19438,7 +22651,10 @@ export namespace github { .describe( 'Exclude related items from being returned in the response in order to improve performance of the request.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type MigrationsStartForOrgParams = z.infer< typeof MigrationsStartForOrgParamsSchema @@ -19447,6 +22663,13 @@ export namespace github { export type MigrationsStartForOrgResponse = undefined export const MigrationsGetStatusForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), exclude: z .array( z @@ -19467,28 +22690,75 @@ export namespace github { typeof MigrationsGetStatusForOrgResponseSchema > - export const MigrationsDownloadArchiveForOrgParamsSchema = z.object({}) + export const MigrationsDownloadArchiveForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.') + }) export type MigrationsDownloadArchiveForOrgParams = z.infer< typeof MigrationsDownloadArchiveForOrgParamsSchema > export type MigrationsDownloadArchiveForOrgResponse = undefined - export const MigrationsDeleteArchiveForOrgParamsSchema = z.object({}) + export const MigrationsDeleteArchiveForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.') + }) export type MigrationsDeleteArchiveForOrgParams = z.infer< typeof MigrationsDeleteArchiveForOrgParamsSchema > export type MigrationsDeleteArchiveForOrgResponse = undefined - export const MigrationsUnlockRepoForOrgParamsSchema = z.object({}) + export const MigrationsUnlockRepoForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), + repo_name: z.string().describe('repo_name parameter') + }) export type MigrationsUnlockRepoForOrgParams = z.infer< typeof MigrationsUnlockRepoForOrgParamsSchema > export type MigrationsUnlockRepoForOrgResponse = undefined - export const MigrationsListReposForOrgParamsSchema = z.object({}) + export const MigrationsListReposForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type MigrationsListReposForOrgParams = z.infer< typeof MigrationsListReposForOrgParamsSchema > @@ -19500,7 +22770,11 @@ export namespace github { typeof MigrationsListReposForOrgResponseSchema > - export const OrgsListOrgRolesParamsSchema = z.object({}) + export const OrgsListOrgRolesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsListOrgRolesParams = z.infer< typeof OrgsListOrgRolesParamsSchema > @@ -19522,49 +22796,88 @@ export namespace github { typeof OrgsListOrgRolesResponseSchema > - export const OrgsRevokeAllOrgRolesTeamParamsSchema = z.object({}) + export const OrgsRevokeAllOrgRolesTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') + }) export type OrgsRevokeAllOrgRolesTeamParams = z.infer< typeof OrgsRevokeAllOrgRolesTeamParamsSchema > export type OrgsRevokeAllOrgRolesTeamResponse = undefined - export const OrgsAssignTeamToOrgRoleParamsSchema = z.object({}) + export const OrgsAssignTeamToOrgRoleParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + role_id: z.number().int().describe('The unique identifier of the role.') + }) export type OrgsAssignTeamToOrgRoleParams = z.infer< typeof OrgsAssignTeamToOrgRoleParamsSchema > export type OrgsAssignTeamToOrgRoleResponse = undefined - export const OrgsRevokeOrgRoleTeamParamsSchema = z.object({}) + export const OrgsRevokeOrgRoleTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + role_id: z.number().int().describe('The unique identifier of the role.') + }) export type OrgsRevokeOrgRoleTeamParams = z.infer< typeof OrgsRevokeOrgRoleTeamParamsSchema > export type OrgsRevokeOrgRoleTeamResponse = undefined - export const OrgsRevokeAllOrgRolesUserParamsSchema = z.object({}) + export const OrgsRevokeAllOrgRolesUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsRevokeAllOrgRolesUserParams = z.infer< typeof OrgsRevokeAllOrgRolesUserParamsSchema > export type OrgsRevokeAllOrgRolesUserResponse = undefined - export const OrgsAssignUserToOrgRoleParamsSchema = z.object({}) + export const OrgsAssignUserToOrgRoleParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.'), + role_id: z.number().int().describe('The unique identifier of the role.') + }) export type OrgsAssignUserToOrgRoleParams = z.infer< typeof OrgsAssignUserToOrgRoleParamsSchema > export type OrgsAssignUserToOrgRoleResponse = undefined - export const OrgsRevokeOrgRoleUserParamsSchema = z.object({}) + export const OrgsRevokeOrgRoleUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.'), + role_id: z.number().int().describe('The unique identifier of the role.') + }) export type OrgsRevokeOrgRoleUserParams = z.infer< typeof OrgsRevokeOrgRoleUserParamsSchema > export type OrgsRevokeOrgRoleUserResponse = undefined - export const OrgsGetOrgRoleParamsSchema = z.object({}) + export const OrgsGetOrgRoleParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + role_id: z.number().int().describe('The unique identifier of the role.') + }) export type OrgsGetOrgRoleParams = z.infer export const OrgsGetOrgRoleResponseSchema = OrganizationRoleSchema @@ -19572,7 +22885,26 @@ export namespace github { typeof OrgsGetOrgRoleResponseSchema > - export const OrgsListOrgRoleTeamsParamsSchema = z.object({}) + export const OrgsListOrgRoleTeamsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + role_id: z.number().int().describe('The unique identifier of the role.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListOrgRoleTeamsParams = z.infer< typeof OrgsListOrgRoleTeamsParamsSchema > @@ -19584,7 +22916,26 @@ export namespace github { typeof OrgsListOrgRoleTeamsResponseSchema > - export const OrgsListOrgRoleUsersParamsSchema = z.object({}) + export const OrgsListOrgRoleUsersParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + role_id: z.number().int().describe('The unique identifier of the role.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListOrgRoleUsersParams = z.infer< typeof OrgsListOrgRoleUsersParamsSchema > @@ -19597,12 +22948,29 @@ export namespace github { > export const OrgsListOutsideCollaboratorsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), filter: z .enum(['2fa_disabled', 'all']) .describe( 'Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled will be returned.' ) - .default('all') + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsListOutsideCollaboratorsParams = z.infer< typeof OrgsListOutsideCollaboratorsParamsSchema @@ -19620,7 +22988,11 @@ export namespace github { .describe( 'When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.' ) - .default(false) + .default(false), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') }) export type OrgsConvertMemberToOutsideCollaboratorParams = z.infer< typeof OrgsConvertMemberToOutsideCollaboratorParamsSchema @@ -19628,7 +23000,12 @@ export namespace github { export type OrgsConvertMemberToOutsideCollaboratorResponse = undefined - export const OrgsRemoveOutsideCollaboratorParamsSchema = z.object({}) + export const OrgsRemoveOutsideCollaboratorParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsRemoveOutsideCollaboratorParams = z.infer< typeof OrgsRemoveOutsideCollaboratorParamsSchema > @@ -19636,11 +23013,20 @@ export namespace github { export type OrgsRemoveOutsideCollaboratorResponse = undefined export const PackagesListPackagesForOrganizationParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), package_type: z .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) .describe( "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." ), + visibility: z + .enum(['public', 'private', 'internal']) + .describe( + 'The selected visibility of the packages. This parameter is optional and only filters an existing result set.\n\nThe `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.\nFor the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."' + ) + .optional(), page: z .number() .int() @@ -19666,7 +23052,17 @@ export namespace github { typeof PackagesListPackagesForOrganizationResponseSchema > - export const PackagesGetPackageForOrganizationParamsSchema = z.object({}) + export const PackagesGetPackageForOrganizationParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type PackagesGetPackageForOrganizationParams = z.infer< typeof PackagesGetPackageForOrganizationParamsSchema > @@ -19676,7 +23072,17 @@ export namespace github { typeof PackagesGetPackageForOrganizationResponseSchema > - export const PackagesDeletePackageForOrgParamsSchema = z.object({}) + export const PackagesDeletePackageForOrgParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type PackagesDeletePackageForOrgParams = z.infer< typeof PackagesDeletePackageForOrgParamsSchema > @@ -19684,6 +23090,15 @@ export namespace github { export type PackagesDeletePackageForOrgResponse = undefined export const PackagesRestorePackageForOrgParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), token: z.string().describe('package token').optional() }) export type PackagesRestorePackageForOrgParams = z.infer< @@ -19694,6 +23109,29 @@ export namespace github { export const PackagesGetAllPackageVersionsForPackageOwnedByOrgParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), state: z .enum(['active', 'deleted']) .describe('The state of the package, either active or deleted.') @@ -19710,9 +23148,21 @@ export namespace github { typeof PackagesGetAllPackageVersionsForPackageOwnedByOrgResponseSchema > - export const PackagesGetPackageVersionForOrganizationParamsSchema = z.object( - {} - ) + export const PackagesGetPackageVersionForOrganizationParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesGetPackageVersionForOrganizationParams = z.infer< typeof PackagesGetPackageVersionForOrganizationParamsSchema > @@ -19723,21 +23173,107 @@ export namespace github { typeof PackagesGetPackageVersionForOrganizationResponseSchema > - export const PackagesDeletePackageVersionForOrgParamsSchema = z.object({}) + export const PackagesDeletePackageVersionForOrgParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesDeletePackageVersionForOrgParams = z.infer< typeof PackagesDeletePackageVersionForOrgParamsSchema > export type PackagesDeletePackageVersionForOrgResponse = undefined - export const PackagesRestorePackageVersionForOrgParamsSchema = z.object({}) + export const PackagesRestorePackageVersionForOrgParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesRestorePackageVersionForOrgParams = z.infer< typeof PackagesRestorePackageVersionForOrgParamsSchema > export type PackagesRestorePackageVersionForOrgResponse = undefined - export const OrgsListPatGrantRequestsParamsSchema = z.object({}) + export const OrgsListPatGrantRequestsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + sort: z + .literal('created_at') + .describe('The property by which to sort the results.') + .default('created_at'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + owner: z + .array(z.string()) + .max(10) + .describe('A list of owner usernames to use to filter the results.') + .optional(), + repository: z + .string() + .describe('The name of the repository to use to filter the results.') + .optional(), + permission: z + .string() + .describe('The permission to use to filter the results.') + .optional(), + last_used_before: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + last_used_after: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + token_id: z + .array(z.string()) + .max(50) + .describe('The ID of the token') + .optional() + }) export type OrgsListPatGrantRequestsParams = z.infer< typeof OrgsListPatGrantRequestsParamsSchema > @@ -19764,11 +23300,13 @@ export namespace github { reason: z .string() .max(1024) - .nullable() .describe( 'Reason for approving or denying the requests. Max 1024 characters.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsReviewPatGrantRequestsInBulkParams = z.infer< typeof OrgsReviewPatGrantRequestsInBulkParamsSchema @@ -19783,11 +23321,13 @@ export namespace github { reason: z .string() .max(1024) - .nullable() .describe( 'Reason for approving or denying the request. Max 1024 characters.' ) .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), pat_request_id: z .number() .int() @@ -19802,12 +23342,29 @@ export namespace github { export type OrgsReviewPatGrantRequestResponse = undefined export const OrgsListPatGrantRequestRepositoriesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), pat_request_id: z .number() .int() .describe( 'Unique identifier of the request for access via fine-grained personal access token.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsListPatGrantRequestRepositoriesParams = z.infer< typeof OrgsListPatGrantRequestRepositoriesParamsSchema @@ -19820,7 +23377,65 @@ export namespace github { typeof OrgsListPatGrantRequestRepositoriesResponseSchema > - export const OrgsListPatGrantsParamsSchema = z.object({}) + export const OrgsListPatGrantsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + sort: z + .literal('created_at') + .describe('The property by which to sort the results.') + .default('created_at'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + owner: z + .array(z.string()) + .max(10) + .describe('A list of owner usernames to use to filter the results.') + .optional(), + repository: z + .string() + .describe('The name of the repository to use to filter the results.') + .optional(), + permission: z + .string() + .describe('The permission to use to filter the results.') + .optional(), + last_used_before: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show fine-grained personal access tokens used before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + last_used_after: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + token_id: z + .array(z.string()) + .max(50) + .describe('The ID of the token') + .optional() + }) export type OrgsListPatGrantsParams = z.infer< typeof OrgsListPatGrantsParamsSchema > @@ -19847,7 +23462,10 @@ export namespace github { ) .min(1) .max(100) - .describe('The IDs of the fine-grained personal access tokens.') + .describe('The IDs of the fine-grained personal access tokens.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsUpdatePatAccessesParams = z.infer< typeof OrgsUpdatePatAccessesParamsSchema @@ -19858,7 +23476,16 @@ export namespace github { export const OrgsUpdatePatAccessParamsSchema = z.object({ action: z .literal('revoke') - .describe('Action to apply to the fine-grained personal access token.') + .describe('Action to apply to the fine-grained personal access token.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + pat_id: z + .number() + .int() + .describe( + 'The unique identifier of the fine-grained personal access token.' + ) }) export type OrgsUpdatePatAccessParams = z.infer< typeof OrgsUpdatePatAccessParamsSchema @@ -19867,10 +23494,27 @@ export namespace github { export type OrgsUpdatePatAccessResponse = undefined export const OrgsListPatGrantRepositoriesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), pat_id: z .number() .int() - .describe('Unique identifier of the fine-grained personal access token.') + .describe('Unique identifier of the fine-grained personal access token.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsListPatGrantRepositoriesParams = z.infer< typeof OrgsListPatGrantRepositoriesParamsSchema @@ -19884,7 +23528,25 @@ export namespace github { > export const PrivateRegistriesListOrgPrivateRegistriesParamsSchema = z.object( - {} + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type PrivateRegistriesListOrgPrivateRegistriesParams = z.infer< typeof PrivateRegistriesListOrgPrivateRegistriesParamsSchema @@ -19906,7 +23568,6 @@ export namespace github { .describe('The registry type.'), username: z .string() - .nullable() .describe( 'The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.' ) @@ -19934,7 +23595,10 @@ export namespace github { .describe( 'An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') } ) export type PrivateRegistriesCreateOrgPrivateRegistryParams = z.infer< @@ -19943,7 +23607,11 @@ export namespace github { export type PrivateRegistriesCreateOrgPrivateRegistryResponse = undefined - export const PrivateRegistriesGetOrgPublicKeyParamsSchema = z.object({}) + export const PrivateRegistriesGetOrgPublicKeyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type PrivateRegistriesGetOrgPublicKeyParams = z.infer< typeof PrivateRegistriesGetOrgPublicKeyParamsSchema > @@ -19956,7 +23624,12 @@ export namespace github { typeof PrivateRegistriesGetOrgPublicKeyResponseSchema > - export const PrivateRegistriesGetOrgPrivateRegistryParamsSchema = z.object({}) + export const PrivateRegistriesGetOrgPrivateRegistryParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + }) export type PrivateRegistriesGetOrgPrivateRegistryParams = z.infer< typeof PrivateRegistriesGetOrgPrivateRegistryParamsSchema > @@ -19968,7 +23641,12 @@ export namespace github { > export const PrivateRegistriesDeleteOrgPrivateRegistryParamsSchema = z.object( - {} + { + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') + } ) export type PrivateRegistriesDeleteOrgPrivateRegistryParams = z.infer< typeof PrivateRegistriesDeleteOrgPrivateRegistryParamsSchema @@ -19984,7 +23662,6 @@ export namespace github { .optional(), username: z .string() - .nullable() .describe( 'The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.' ) @@ -20015,7 +23692,11 @@ export namespace github { .describe( 'An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + secret_name: z.string().describe('The name of the secret.') } ) export type PrivateRegistriesUpdateOrgPrivateRegistryParams = z.infer< @@ -20025,10 +23706,27 @@ export namespace github { export type PrivateRegistriesUpdateOrgPrivateRegistryResponse = undefined export const ProjectsListForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), state: z .enum(['open', 'closed', 'all']) .describe('Indicates the state of the projects to return.') - .default('open') + .default('open'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ProjectsListForOrgParams = z.infer< typeof ProjectsListForOrgParamsSchema @@ -20041,7 +23739,10 @@ export namespace github { export const ProjectsCreateForOrgParamsSchema = z.object({ name: z.string().describe('The name of the project.'), - body: z.string().describe('The description of the project.').optional() + body: z.string().describe('The description of the project.').optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ProjectsCreateForOrgParams = z.infer< typeof ProjectsCreateForOrgParamsSchema @@ -20049,7 +23750,11 @@ export namespace github { export type ProjectsCreateForOrgResponse = undefined - export const OrgsGetAllCustomPropertiesParamsSchema = z.object({}) + export const OrgsGetAllCustomPropertiesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsGetAllCustomPropertiesParams = z.infer< typeof OrgsGetAllCustomPropertiesParamsSchema > @@ -20065,7 +23770,10 @@ export namespace github { .array(CustomPropertySchema) .min(1) .max(100) - .describe('The array of custom properties to create or update.') + .describe('The array of custom properties to create or update.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsCreateOrUpdateCustomPropertiesParams = z.infer< typeof OrgsCreateOrUpdateCustomPropertiesParamsSchema @@ -20077,7 +23785,12 @@ export namespace github { typeof OrgsCreateOrUpdateCustomPropertiesResponseSchema > - export const OrgsGetCustomPropertyParamsSchema = z.object({}) + export const OrgsGetCustomPropertyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + custom_property_name: z.string().describe('The custom property name') + }) export type OrgsGetCustomPropertyParams = z.infer< typeof OrgsGetCustomPropertyParamsSchema > @@ -20087,7 +23800,14 @@ export namespace github { typeof OrgsGetCustomPropertyResponseSchema > - export const OrgsCreateOrUpdateCustomPropertyParamsSchema = CustomPropertySetPayloadSchema + export const OrgsCreateOrUpdateCustomPropertyParamsSchema = z + .object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + custom_property_name: z.string().describe('The custom property name') + }) + .merge(CustomPropertySetPayloadSchema) export type OrgsCreateOrUpdateCustomPropertyParams = z.infer< typeof OrgsCreateOrUpdateCustomPropertyParamsSchema > @@ -20098,7 +23818,12 @@ export namespace github { typeof OrgsCreateOrUpdateCustomPropertyResponseSchema > - export const OrgsRemoveCustomPropertyParamsSchema = z.object({}) + export const OrgsRemoveCustomPropertyParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + custom_property_name: z.string().describe('The custom property name') + }) export type OrgsRemoveCustomPropertyParams = z.infer< typeof OrgsRemoveCustomPropertyParamsSchema > @@ -20106,6 +23831,23 @@ export namespace github { export type OrgsRemoveCustomPropertyResponse = undefined export const OrgsListCustomPropertiesValuesForReposParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), repository_query: z .string() .describe( @@ -20137,7 +23879,10 @@ export namespace github { .array(CustomPropertyValueSchema) .describe( 'List of custom property names and associated values to apply to the repositories.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsCreateOrUpdateCustomPropertiesValuesForReposParams = z.infer< typeof OrgsCreateOrUpdateCustomPropertiesValuesForReposParamsSchema @@ -20146,7 +23891,25 @@ export namespace github { export type OrgsCreateOrUpdateCustomPropertiesValuesForReposResponse = undefined - export const OrgsListPublicMembersParamsSchema = z.object({}) + export const OrgsListPublicMembersParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListPublicMembersParams = z.infer< typeof OrgsListPublicMembersParamsSchema > @@ -20156,7 +23919,12 @@ export namespace github { typeof OrgsListPublicMembersResponseSchema > - export const OrgsCheckPublicMembershipForUserParamsSchema = z.object({}) + export const OrgsCheckPublicMembershipForUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsCheckPublicMembershipForUserParams = z.infer< typeof OrgsCheckPublicMembershipForUserParamsSchema > @@ -20164,7 +23932,12 @@ export namespace github { export type OrgsCheckPublicMembershipForUserResponse = undefined export const OrgsSetPublicMembershipForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsSetPublicMembershipForAuthenticatedUserParams = z.infer< typeof OrgsSetPublicMembershipForAuthenticatedUserParamsSchema > @@ -20172,7 +23945,12 @@ export namespace github { export type OrgsSetPublicMembershipForAuthenticatedUserResponse = undefined export const OrgsRemovePublicMembershipForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type OrgsRemovePublicMembershipForAuthenticatedUserParams = z.infer< typeof OrgsRemovePublicMembershipForAuthenticatedUserParamsSchema > @@ -20180,6 +23958,9 @@ export namespace github { export type OrgsRemovePublicMembershipForAuthenticatedUserResponse = undefined export const ReposListForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), type: z .enum(['all', 'public', 'private', 'forks', 'sources', 'member']) .describe('Specifies the types of repositories you want returned.') @@ -20193,7 +23974,21 @@ export namespace github { .describe( 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListForOrgParams = z.infer< typeof ReposListForOrgParamsSchema @@ -20338,7 +24133,10 @@ export namespace github { .describe( 'The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ReposCreateInOrgParams = z.infer< typeof ReposCreateInOrgParamsSchema @@ -20346,7 +24144,31 @@ export namespace github { export type ReposCreateInOrgResponse = undefined - export const ReposGetOrgRulesetsParamsSchema = z.object({}) + export const ReposGetOrgRulesetsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + targets: z + .string() + .describe( + 'A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, `branch,tag,push`.\n' + ) + .optional() + }) export type ReposGetOrgRulesetsParams = z.infer< typeof ReposGetOrgRulesetsParamsSchema > @@ -20373,7 +24195,10 @@ export namespace github { rules: z .array(RepositoryRuleSchema) .describe('An array of rules within the ruleset.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type ReposCreateOrgRulesetParams = z.infer< typeof ReposCreateOrgRulesetParamsSchema @@ -20381,7 +24206,53 @@ export namespace github { export type ReposCreateOrgRulesetResponse = undefined - export const ReposGetOrgRuleSuitesParamsSchema = z.object({}) + export const ReposGetOrgRuleSuitesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + ref: z + .string() + .describe( + 'The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.' + ) + .optional(), + repository_name: z + .string() + .describe('The name of the repository to filter on.') + .optional(), + time_period: z + .enum(['hour', 'day', 'week', 'month']) + .describe( + 'The time period to filter by.\n\nFor example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours).' + ) + .default('day'), + actor_name: z + .string() + .describe( + 'The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.' + ) + .optional(), + rule_suite_result: z + .enum(['pass', 'fail', 'bypass', 'all']) + .describe( + 'The rule results to filter on. When specified, only suites with this result will be returned.' + ) + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposGetOrgRuleSuitesParams = z.infer< typeof ReposGetOrgRuleSuitesParamsSchema > @@ -20391,7 +24262,17 @@ export namespace github { typeof ReposGetOrgRuleSuitesResponseSchema > - export const ReposGetOrgRuleSuiteParamsSchema = z.object({}) + export const ReposGetOrgRuleSuiteParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + rule_suite_id: z + .number() + .int() + .describe( + 'The unique identifier of the rule suite result.\nTo get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites)\nfor repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites)\nfor organizations.' + ) + }) export type ReposGetOrgRuleSuiteParams = z.infer< typeof ReposGetOrgRuleSuiteParamsSchema > @@ -20402,6 +24283,9 @@ export namespace github { > export const ReposGetOrgRulesetParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), ruleset_id: z.number().int().describe('The ID of the ruleset.') }) export type ReposGetOrgRulesetParams = z.infer< @@ -20429,6 +24313,9 @@ export namespace github { .array(RepositoryRuleSchema) .describe('An array of rules within the ruleset.') .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), ruleset_id: z.number().int().describe('The ID of the ruleset.') }) export type ReposUpdateOrgRulesetParams = z.infer< @@ -20441,6 +24328,9 @@ export namespace github { > export const ReposDeleteOrgRulesetParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), ruleset_id: z.number().int().describe('The ID of the ruleset.') }) export type ReposDeleteOrgRulesetParams = z.infer< @@ -20450,7 +24340,24 @@ export namespace github { export type ReposDeleteOrgRulesetResponse = undefined export const OrgsGetOrgRulesetHistoryParamsSchema = z.object({ - ruleset_id: z.number().int().describe('The ID of the ruleset.') + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + ruleset_id: z.number().int().describe('The ID of the ruleset.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsGetOrgRulesetHistoryParams = z.infer< typeof OrgsGetOrgRulesetHistoryParamsSchema @@ -20463,6 +24370,9 @@ export namespace github { > export const OrgsGetOrgRulesetVersionParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), ruleset_id: z.number().int().describe('The ID of the ruleset.'), version_id: z.number().int().describe('The ID of the version') }) @@ -20476,7 +24386,83 @@ export namespace github { typeof OrgsGetOrgRulesetVersionResponseSchema > - export const SecretScanningListAlertsForOrgParamsSchema = z.object({}) + export const SecretScanningListAlertsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + state: z + .enum(['open', 'resolved']) + .describe( + 'Set to `open` or `resolved` to only list secret scanning alerts in a specific state.' + ) + .optional(), + secret_type: z + .string() + .describe( + 'A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types.' + ) + .optional(), + resolution: z + .string() + .describe( + 'A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.' + ) + .optional(), + sort: z + .enum(['created', 'updated']) + .describe( + 'The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.' + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.' + ) + .optional(), + validity: z + .string() + .describe( + 'A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.' + ) + .optional(), + is_publicly_leaked: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.' + ) + .default(false), + is_multi_repo: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the multi-repo tag being present.' + ) + .default(false) + }) export type SecretScanningListAlertsForOrgParams = z.infer< typeof SecretScanningListAlertsForOrgParamsSchema > @@ -20490,10 +24476,29 @@ export namespace github { export const SecurityAdvisoriesListOrgRepositoryAdvisoriesParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), sort: z .enum(['created', 'updated', 'published']) .describe('The property to sort the results by.') .default('created'), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), per_page: z .number() .int() @@ -20520,7 +24525,11 @@ export namespace github { typeof SecurityAdvisoriesListOrgRepositoryAdvisoriesResponseSchema > - export const OrgsListSecurityManagerTeamsParamsSchema = z.object({}) + export const OrgsListSecurityManagerTeamsParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsListSecurityManagerTeamsParams = z.infer< typeof OrgsListSecurityManagerTeamsParamsSchema > @@ -20531,21 +24540,35 @@ export namespace github { typeof OrgsListSecurityManagerTeamsResponseSchema > - export const OrgsAddSecurityManagerTeamParamsSchema = z.object({}) + export const OrgsAddSecurityManagerTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') + }) export type OrgsAddSecurityManagerTeamParams = z.infer< typeof OrgsAddSecurityManagerTeamParamsSchema > export type OrgsAddSecurityManagerTeamResponse = undefined - export const OrgsRemoveSecurityManagerTeamParamsSchema = z.object({}) + export const OrgsRemoveSecurityManagerTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') + }) export type OrgsRemoveSecurityManagerTeamParams = z.infer< typeof OrgsRemoveSecurityManagerTeamParamsSchema > export type OrgsRemoveSecurityManagerTeamResponse = undefined - export const BillingGetGithubActionsBillingOrgParamsSchema = z.object({}) + export const BillingGetGithubActionsBillingOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type BillingGetGithubActionsBillingOrgParams = z.infer< typeof BillingGetGithubActionsBillingOrgParamsSchema > @@ -20556,7 +24579,11 @@ export namespace github { typeof BillingGetGithubActionsBillingOrgResponseSchema > - export const BillingGetGithubPackagesBillingOrgParamsSchema = z.object({}) + export const BillingGetGithubPackagesBillingOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type BillingGetGithubPackagesBillingOrgParams = z.infer< typeof BillingGetGithubPackagesBillingOrgParamsSchema > @@ -20567,7 +24594,11 @@ export namespace github { typeof BillingGetGithubPackagesBillingOrgResponseSchema > - export const BillingGetSharedStorageBillingOrgParamsSchema = z.object({}) + export const BillingGetSharedStorageBillingOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type BillingGetSharedStorageBillingOrgParams = z.infer< typeof BillingGetSharedStorageBillingOrgParamsSchema > @@ -20579,7 +24610,25 @@ export namespace github { > export const HostedComputeListNetworkConfigurationsForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type HostedComputeListNetworkConfigurationsForOrgParams = z.infer< typeof HostedComputeListNetworkConfigurationsForOrgParamsSchema > @@ -20612,7 +24661,10 @@ export namespace github { .max(1) .describe( 'The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type HostedComputeCreateNetworkConfigurationForOrgParams = z.infer< typeof HostedComputeCreateNetworkConfigurationForOrgParamsSchema @@ -20621,7 +24673,16 @@ export namespace github { export type HostedComputeCreateNetworkConfigurationForOrgResponse = undefined export const HostedComputeGetNetworkConfigurationForOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + network_configuration_id: z + .string() + .describe( + 'Unique identifier of the hosted compute network configuration.' + ) + }) export type HostedComputeGetNetworkConfigurationForOrgParams = z.infer< typeof HostedComputeGetNetworkConfigurationForOrgParamsSchema > @@ -20633,7 +24694,16 @@ export namespace github { > export const HostedComputeDeleteNetworkConfigurationFromOrgParamsSchema = - z.object({}) + z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + network_configuration_id: z + .string() + .describe( + 'Unique identifier of the hosted compute network configuration.' + ) + }) export type HostedComputeDeleteNetworkConfigurationFromOrgParams = z.infer< typeof HostedComputeDeleteNetworkConfigurationFromOrgParamsSchema > @@ -20661,7 +24731,15 @@ export namespace github { .describe( 'The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + network_configuration_id: z + .string() + .describe( + 'Unique identifier of the hosted compute network configuration.' + ) }) export type HostedComputeUpdateNetworkConfigurationForOrgParams = z.infer< typeof HostedComputeUpdateNetworkConfigurationForOrgParamsSchema @@ -20673,7 +24751,14 @@ export namespace github { typeof HostedComputeUpdateNetworkConfigurationForOrgResponseSchema > - export const HostedComputeGetNetworkSettingsForOrgParamsSchema = z.object({}) + export const HostedComputeGetNetworkSettingsForOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + network_settings_id: z + .string() + .describe('Unique identifier of the hosted compute network settings.') + }) export type HostedComputeGetNetworkSettingsForOrgParams = z.infer< typeof HostedComputeGetNetworkSettingsForOrgParamsSchema > @@ -20685,6 +24770,10 @@ export namespace github { > export const CopilotCopilotMetricsForTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), since: z .string() .describe( @@ -20697,6 +24786,13 @@ export namespace github { 'Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.' ) .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -20717,6 +24813,10 @@ export namespace github { > export const CopilotUsageMetricsForTeamParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), since: z .string() .describe( @@ -20729,6 +24829,13 @@ export namespace github { 'Show usage metrics until this date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) and should not preceed the `since` date if it is passed.' ) .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), per_page: z .number() .int() @@ -20748,7 +24855,25 @@ export namespace github { typeof CopilotUsageMetricsForTeamResponseSchema > - export const TeamsListParamsSchema = z.object({}) + export const TeamsListParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListParams = z.infer export const TeamsListResponseSchema = z.array(TeamSchema) @@ -20791,13 +24916,21 @@ export namespace github { .number() .int() .describe('The ID of a team to set as the parent team.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type TeamsCreateParams = z.infer export type TeamsCreateResponse = undefined - export const TeamsGetByNameParamsSchema = z.object({}) + export const TeamsGetByNameParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') + }) export type TeamsGetByNameParams = z.infer export const TeamsGetByNameResponseSchema = TeamFullSchema @@ -20805,7 +24938,12 @@ export namespace github { typeof TeamsGetByNameResponseSchema > - export const TeamsDeleteInOrgParamsSchema = z.object({}) + export const TeamsDeleteInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') + }) export type TeamsDeleteInOrgParams = z.infer< typeof TeamsDeleteInOrgParamsSchema > @@ -20836,9 +24974,12 @@ export namespace github { parent_team_id: z .number() .int() - .nullable() .describe('The ID of a team to set as the parent team.') - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') }) export type TeamsUpdateInOrgParams = z.infer< typeof TeamsUpdateInOrgParamsSchema @@ -20850,6 +24991,28 @@ export namespace github { > export const TeamsListDiscussionsInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), pinned: z.string().describe('Pinned discussions only filter').optional() }) export type TeamsListDiscussionsInOrgParams = z.infer< @@ -20870,7 +25033,11 @@ export namespace github { .describe( 'Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.' ) - .default(false) + .default(false), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.') }) export type TeamsCreateDiscussionInOrgParams = z.infer< typeof TeamsCreateDiscussionInOrgParamsSchema @@ -20878,7 +25045,16 @@ export namespace github { export type TeamsCreateDiscussionInOrgResponse = undefined - export const TeamsGetDiscussionInOrgParamsSchema = z.object({}) + export const TeamsGetDiscussionInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') + }) export type TeamsGetDiscussionInOrgParams = z.infer< typeof TeamsGetDiscussionInOrgParamsSchema > @@ -20888,7 +25064,16 @@ export namespace github { typeof TeamsGetDiscussionInOrgResponseSchema > - export const TeamsDeleteDiscussionInOrgParamsSchema = z.object({}) + export const TeamsDeleteDiscussionInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') + }) export type TeamsDeleteDiscussionInOrgParams = z.infer< typeof TeamsDeleteDiscussionInOrgParamsSchema > @@ -20897,7 +25082,15 @@ export namespace github { export const TeamsUpdateDiscussionInOrgParamsSchema = z.object({ title: z.string().describe("The discussion post's title.").optional(), - body: z.string().describe("The discussion post's body text.").optional() + body: z.string().describe("The discussion post's body text.").optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type TeamsUpdateDiscussionInOrgParams = z.infer< typeof TeamsUpdateDiscussionInOrgParamsSchema @@ -20908,7 +25101,34 @@ export namespace github { typeof TeamsUpdateDiscussionInOrgResponseSchema > - export const TeamsListDiscussionCommentsInOrgParamsSchema = z.object({}) + export const TeamsListDiscussionCommentsInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListDiscussionCommentsInOrgParams = z.infer< typeof TeamsListDiscussionCommentsInOrgParamsSchema > @@ -20921,7 +25141,15 @@ export namespace github { > export const TeamsCreateDiscussionCommentInOrgParamsSchema = z.object({ - body: z.string().describe("The discussion comment's body text.") + body: z.string().describe("The discussion comment's body text."), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type TeamsCreateDiscussionCommentInOrgParams = z.infer< typeof TeamsCreateDiscussionCommentInOrgParamsSchema @@ -20929,7 +25157,20 @@ export namespace github { export type TeamsCreateDiscussionCommentInOrgResponse = undefined - export const TeamsGetDiscussionCommentInOrgParamsSchema = z.object({}) + export const TeamsGetDiscussionCommentInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') + }) export type TeamsGetDiscussionCommentInOrgParams = z.infer< typeof TeamsGetDiscussionCommentInOrgParamsSchema > @@ -20940,7 +25181,20 @@ export namespace github { typeof TeamsGetDiscussionCommentInOrgResponseSchema > - export const TeamsDeleteDiscussionCommentInOrgParamsSchema = z.object({}) + export const TeamsDeleteDiscussionCommentInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') + }) export type TeamsDeleteDiscussionCommentInOrgParams = z.infer< typeof TeamsDeleteDiscussionCommentInOrgParamsSchema > @@ -20948,7 +25202,19 @@ export namespace github { export type TeamsDeleteDiscussionCommentInOrgResponse = undefined export const TeamsUpdateDiscussionCommentInOrgParamsSchema = z.object({ - body: z.string().describe("The discussion comment's body text.") + body: z.string().describe("The discussion comment's body text."), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') }) export type TeamsUpdateDiscussionCommentInOrgParams = z.infer< typeof TeamsUpdateDiscussionCommentInOrgParamsSchema @@ -20962,6 +25228,18 @@ export namespace github { export const ReactionsListForTeamDiscussionCommentInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.'), content: z .enum([ '+1', @@ -20976,7 +25254,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForTeamDiscussionCommentInOrgParams = z.infer< typeof ReactionsListForTeamDiscussionCommentInOrgParamsSchema @@ -21003,7 +25295,19 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') }) export type ReactionsCreateForTeamDiscussionCommentInOrgParams = z.infer< typeof ReactionsCreateForTeamDiscussionCommentInOrgParamsSchema @@ -21015,9 +25319,24 @@ export namespace github { typeof ReactionsCreateForTeamDiscussionCommentInOrgResponseSchema > - export const ReactionsDeleteForTeamDiscussionCommentParamsSchema = z.object( - {} - ) + export const ReactionsDeleteForTeamDiscussionCommentParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForTeamDiscussionCommentParams = z.infer< typeof ReactionsDeleteForTeamDiscussionCommentParamsSchema > @@ -21025,6 +25344,14 @@ export namespace github { export type ReactionsDeleteForTeamDiscussionCommentResponse = undefined export const ReactionsListForTeamDiscussionInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), content: z .enum([ '+1', @@ -21039,7 +25366,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForTeamDiscussionInOrgParams = z.infer< typeof ReactionsListForTeamDiscussionInOrgParamsSchema @@ -21065,7 +25406,15 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type ReactionsCreateForTeamDiscussionInOrgParams = z.infer< typeof ReactionsCreateForTeamDiscussionInOrgParamsSchema @@ -21077,14 +25426,46 @@ export namespace github { typeof ReactionsCreateForTeamDiscussionInOrgResponseSchema > - export const ReactionsDeleteForTeamDiscussionParamsSchema = z.object({}) + export const ReactionsDeleteForTeamDiscussionParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForTeamDiscussionParams = z.infer< typeof ReactionsDeleteForTeamDiscussionParamsSchema > export type ReactionsDeleteForTeamDiscussionResponse = undefined - export const TeamsListPendingInvitationsInOrgParamsSchema = z.object({}) + export const TeamsListPendingInvitationsInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListPendingInvitationsInOrgParams = z.infer< typeof TeamsListPendingInvitationsInOrgParamsSchema > @@ -21097,10 +25478,28 @@ export namespace github { > export const TeamsListMembersInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), role: z .enum(['member', 'maintainer', 'all']) .describe('Filters members returned by their role in the team.') - .default('all') + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type TeamsListMembersInOrgParams = z.infer< typeof TeamsListMembersInOrgParamsSchema @@ -21111,7 +25510,13 @@ export namespace github { typeof TeamsListMembersInOrgResponseSchema > - export const TeamsGetMembershipForUserInOrgParamsSchema = z.object({}) + export const TeamsGetMembershipForUserInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsGetMembershipForUserInOrgParams = z.infer< typeof TeamsGetMembershipForUserInOrgParamsSchema > @@ -21126,7 +25531,12 @@ export namespace github { role: z .enum(['member', 'maintainer']) .describe('The role that this user should have in the team.') - .default('member') + .default('member'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + username: z.string().describe('The handle for the GitHub user account.') }) export type TeamsAddOrUpdateMembershipForUserInOrgParams = z.infer< typeof TeamsAddOrUpdateMembershipForUserInOrgParamsSchema @@ -21138,14 +25548,39 @@ export namespace github { typeof TeamsAddOrUpdateMembershipForUserInOrgResponseSchema > - export const TeamsRemoveMembershipForUserInOrgParamsSchema = z.object({}) + export const TeamsRemoveMembershipForUserInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsRemoveMembershipForUserInOrgParams = z.infer< typeof TeamsRemoveMembershipForUserInOrgParamsSchema > export type TeamsRemoveMembershipForUserInOrgResponse = undefined - export const TeamsListProjectsInOrgParamsSchema = z.object({}) + export const TeamsListProjectsInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListProjectsInOrgParams = z.infer< typeof TeamsListProjectsInOrgParamsSchema > @@ -21155,7 +25590,16 @@ export namespace github { typeof TeamsListProjectsInOrgResponseSchema > - export const TeamsCheckPermissionsForProjectInOrgParamsSchema = z.object({}) + export const TeamsCheckPermissionsForProjectInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type TeamsCheckPermissionsForProjectInOrgParams = z.infer< typeof TeamsCheckPermissionsForProjectInOrgParamsSchema > @@ -21172,7 +25616,15 @@ export namespace github { .describe( 'The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."' ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') }) export type TeamsAddOrUpdateProjectPermissionsInOrgParams = z.infer< typeof TeamsAddOrUpdateProjectPermissionsInOrgParamsSchema @@ -21180,14 +25632,42 @@ export namespace github { export type TeamsAddOrUpdateProjectPermissionsInOrgResponse = undefined - export const TeamsRemoveProjectInOrgParamsSchema = z.object({}) + export const TeamsRemoveProjectInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type TeamsRemoveProjectInOrgParams = z.infer< typeof TeamsRemoveProjectInOrgParamsSchema > export type TeamsRemoveProjectInOrgResponse = undefined - export const TeamsListReposInOrgParamsSchema = z.object({}) + export const TeamsListReposInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListReposInOrgParams = z.infer< typeof TeamsListReposInOrgParamsSchema > @@ -21199,7 +25679,22 @@ export namespace github { typeof TeamsListReposInOrgResponseSchema > - export const TeamsCheckPermissionsForRepoInOrgParamsSchema = z.object({}) + export const TeamsCheckPermissionsForRepoInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type TeamsCheckPermissionsForRepoInOrgParams = z.infer< typeof TeamsCheckPermissionsForRepoInOrgParamsSchema > @@ -21216,7 +25711,21 @@ export namespace github { .describe( "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository." ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type TeamsAddOrUpdateRepoPermissionsInOrgParams = z.infer< typeof TeamsAddOrUpdateRepoPermissionsInOrgParamsSchema @@ -21224,14 +25733,48 @@ export namespace github { export type TeamsAddOrUpdateRepoPermissionsInOrgResponse = undefined - export const TeamsRemoveRepoInOrgParamsSchema = z.object({}) + export const TeamsRemoveRepoInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type TeamsRemoveRepoInOrgParams = z.infer< typeof TeamsRemoveRepoInOrgParamsSchema > export type TeamsRemoveRepoInOrgResponse = undefined - export const TeamsListChildInOrgParamsSchema = z.object({}) + export const TeamsListChildInOrgParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + team_slug: z.string().describe('The slug of the team name.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListChildInOrgParams = z.infer< typeof TeamsListChildInOrgParamsSchema > @@ -21248,7 +25791,26 @@ export namespace github { .describe( "CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied." ) - .optional() + .optional(), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + security_product: z + .enum([ + 'dependency_graph', + 'dependabot_alerts', + 'dependabot_security_updates', + 'advanced_security', + 'code_scanning_default_setup', + 'secret_scanning', + 'secret_scanning_push_protection' + ]) + .describe('The security feature to enable or disable.'), + enablement: z + .enum(['enable_all', 'disable_all']) + .describe( + 'The action to take.\n\n`enable_all` means to enable the specified security feature for all repositories in the organization.\n`disable_all` means to disable the specified security feature for all repositories in the organization.' + ) }) export type OrgsEnableOrDisableSecurityProductOnAllOrgReposParams = z.infer< typeof OrgsEnableOrDisableSecurityProductOnAllOrgReposParamsSchema @@ -21257,7 +25819,9 @@ export namespace github { export type OrgsEnableOrDisableSecurityProductOnAllOrgReposResponse = undefined - export const ProjectsGetCardParamsSchema = z.object({}) + export const ProjectsGetCardParamsSchema = z.object({ + card_id: z.number().int().describe('The unique identifier of the card.') + }) export type ProjectsGetCardParams = z.infer< typeof ProjectsGetCardParamsSchema > @@ -21267,7 +25831,9 @@ export namespace github { typeof ProjectsGetCardResponseSchema > - export const ProjectsDeleteCardParamsSchema = z.object({}) + export const ProjectsDeleteCardParamsSchema = z.object({ + card_id: z.number().int().describe('The unique identifier of the card.') + }) export type ProjectsDeleteCardParams = z.infer< typeof ProjectsDeleteCardParamsSchema > @@ -21275,11 +25841,12 @@ export namespace github { export type ProjectsDeleteCardResponse = undefined export const ProjectsUpdateCardParamsSchema = z.object({ - note: z.string().nullable().describe("The project card's note").optional(), + note: z.string().describe("The project card's note").optional(), archived: z .boolean() .describe('Whether or not the card is archived') - .optional() + .optional(), + card_id: z.number().int().describe('The unique identifier of the card.') }) export type ProjectsUpdateCardParams = z.infer< typeof ProjectsUpdateCardParamsSchema @@ -21303,7 +25870,8 @@ export namespace github { .describe( 'The unique identifier of the column the card should be moved to' ) - .optional() + .optional(), + card_id: z.number().int().describe('The unique identifier of the card.') }) export type ProjectsMoveCardParams = z.infer< typeof ProjectsMoveCardParamsSchema @@ -21311,7 +25879,9 @@ export namespace github { export type ProjectsMoveCardResponse = undefined - export const ProjectsGetColumnParamsSchema = z.object({}) + export const ProjectsGetColumnParamsSchema = z.object({ + column_id: z.number().int().describe('The unique identifier of the column.') + }) export type ProjectsGetColumnParams = z.infer< typeof ProjectsGetColumnParamsSchema > @@ -21321,7 +25891,9 @@ export namespace github { typeof ProjectsGetColumnResponseSchema > - export const ProjectsDeleteColumnParamsSchema = z.object({}) + export const ProjectsDeleteColumnParamsSchema = z.object({ + column_id: z.number().int().describe('The unique identifier of the column.') + }) export type ProjectsDeleteColumnParams = z.infer< typeof ProjectsDeleteColumnParamsSchema > @@ -21329,7 +25901,8 @@ export namespace github { export type ProjectsDeleteColumnResponse = undefined export const ProjectsUpdateColumnParamsSchema = z.object({ - name: z.string().describe('Name of the project column') + name: z.string().describe('Name of the project column'), + column_id: z.number().int().describe('The unique identifier of the column.') }) export type ProjectsUpdateColumnParams = z.infer< typeof ProjectsUpdateColumnParamsSchema @@ -21341,12 +25914,30 @@ export namespace github { > export const ProjectsListCardsParamsSchema = z.object({ + column_id: z + .number() + .int() + .describe('The unique identifier of the column.'), archived_state: z .enum(['all', 'archived', 'not_archived']) .describe( "Filters the project cards that are returned by the card's state." ) - .default('not_archived') + .default('not_archived'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ProjectsListCardsParams = z.infer< typeof ProjectsListCardsParamsSchema @@ -21358,12 +25949,15 @@ export namespace github { > export const ProjectsCreateCardParamsSchema = z - .object({}) + .object({ + column_id: z + .number() + .int() + .describe('The unique identifier of the column.') + }) .and( z.union([ - z.object({ - note: z.string().nullable().describe("The project card's note") - }), + z.object({ note: z.string().describe("The project card's note") }), z.object({ content_id: z .number() @@ -21389,7 +25983,8 @@ export namespace github { .regex(new RegExp('^(?:first|last|after:\\d+)$')) .describe( 'The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.' - ) + ), + column_id: z.number().int().describe('The unique identifier of the column.') }) export type ProjectsMoveColumnParams = z.infer< typeof ProjectsMoveColumnParamsSchema @@ -21397,20 +25992,30 @@ export namespace github { export type ProjectsMoveColumnResponse = undefined - export const ProjectsGetParamsSchema = z.object({}) + export const ProjectsGetParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type ProjectsGetParams = z.infer export const ProjectsGetResponseSchema = ProjectSchema export type ProjectsGetResponse = z.infer - export const ProjectsDeleteParamsSchema = z.object({}) + export const ProjectsDeleteParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type ProjectsDeleteParams = z.infer export type ProjectsDeleteResponse = undefined export const ProjectsUpdateParamsSchema = z.object({ name: z.string().describe('Name of the project').optional(), - body: z.string().nullable().describe('Body of the project').optional(), + body: z.string().describe('Body of the project').optional(), state: z .string() .describe("State of the project; either 'open' or 'closed'") @@ -21424,7 +26029,11 @@ export namespace github { private: z .boolean() .describe('Whether or not this project can be seen by everyone.') - .optional() + .optional(), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') }) export type ProjectsUpdateParams = z.infer @@ -21434,12 +26043,30 @@ export namespace github { > export const ProjectsListCollaboratorsParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.'), affiliation: z .enum(['outside', 'direct', 'all']) .describe( "Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's organization. `direct` means collaborators with permissions to a project, regardless of organization membership status. `all` means all collaborators the authenticated user can see." ) - .default('all') + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ProjectsListCollaboratorsParams = z.infer< typeof ProjectsListCollaboratorsParamsSchema @@ -21455,7 +26082,12 @@ export namespace github { permission: z .enum(['read', 'write', 'admin']) .describe('The permission to grant the collaborator.') - .default('write') + .default('write'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.'), + username: z.string().describe('The handle for the GitHub user account.') }) export type ProjectsAddCollaboratorParams = z.infer< typeof ProjectsAddCollaboratorParamsSchema @@ -21463,14 +26095,26 @@ export namespace github { export type ProjectsAddCollaboratorResponse = undefined - export const ProjectsRemoveCollaboratorParamsSchema = z.object({}) + export const ProjectsRemoveCollaboratorParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type ProjectsRemoveCollaboratorParams = z.infer< typeof ProjectsRemoveCollaboratorParamsSchema > export type ProjectsRemoveCollaboratorResponse = undefined - export const ProjectsGetPermissionForUserParamsSchema = z.object({}) + export const ProjectsGetPermissionForUserParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type ProjectsGetPermissionForUserParams = z.infer< typeof ProjectsGetPermissionForUserParamsSchema > @@ -21481,7 +26125,26 @@ export namespace github { typeof ProjectsGetPermissionForUserResponseSchema > - export const ProjectsListColumnsParamsSchema = z.object({}) + export const ProjectsListColumnsParamsSchema = z.object({ + project_id: z + .number() + .int() + .describe('The unique identifier of the project.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ProjectsListColumnsParams = z.infer< typeof ProjectsListColumnsParamsSchema > @@ -21492,7 +26155,11 @@ export namespace github { > export const ProjectsCreateColumnParamsSchema = z.object({ - name: z.string().describe('Name of the project column') + name: z.string().describe('Name of the project column'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') }) export type ProjectsCreateColumnParams = z.infer< typeof ProjectsCreateColumnParamsSchema @@ -21506,13 +26173,35 @@ export namespace github { export const RateLimitGetResponseSchema = RateLimitOverviewSchema export type RateLimitGetResponse = z.infer - export const ReposGetParamsSchema = z.object({}) + export const ReposGetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetParams = z.infer export const ReposGetResponseSchema = FullRepositorySchema export type ReposGetResponse = z.infer - export const ReposDeleteParamsSchema = z.object({}) + export const ReposDeleteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposDeleteParams = z.infer export type ReposDeleteResponse = undefined @@ -21595,7 +26284,6 @@ export namespace github { ) .optional() }) - .nullable() .describe( 'Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.' ) @@ -21711,14 +26399,55 @@ export namespace github { .describe( 'Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.' ) - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposUpdateParams = z.infer export const ReposUpdateResponseSchema = FullRepositorySchema export type ReposUpdateResponse = z.infer - export const ActionsListArtifactsForRepoParamsSchema = z.object({}) + export const ActionsListArtifactsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + name: z + .string() + .describe( + 'The name field of an artifact. When specified, only artifacts with this name will be returned.' + ) + .optional() + }) export type ActionsListArtifactsForRepoParams = z.infer< typeof ActionsListArtifactsForRepoParamsSchema > @@ -21731,7 +26460,22 @@ export namespace github { typeof ActionsListArtifactsForRepoResponseSchema > - export const ActionsGetArtifactParamsSchema = z.object({}) + export const ActionsGetArtifactParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + artifact_id: z + .number() + .int() + .describe('The unique identifier of the artifact.') + }) export type ActionsGetArtifactParams = z.infer< typeof ActionsGetArtifactParamsSchema > @@ -21741,7 +26485,22 @@ export namespace github { typeof ActionsGetArtifactResponseSchema > - export const ActionsDeleteArtifactParamsSchema = z.object({}) + export const ActionsDeleteArtifactParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + artifact_id: z + .number() + .int() + .describe('The unique identifier of the artifact.') + }) export type ActionsDeleteArtifactParams = z.infer< typeof ActionsDeleteArtifactParamsSchema > @@ -21749,6 +26508,20 @@ export namespace github { export type ActionsDeleteArtifactResponse = undefined export const ActionsDownloadArtifactParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + artifact_id: z + .number() + .int() + .describe('The unique identifier of the artifact.'), archive_format: z.string() }) export type ActionsDownloadArtifactParams = z.infer< @@ -21757,7 +26530,18 @@ export namespace github { export type ActionsDownloadArtifactResponse = undefined - export const ActionsGetActionsCacheUsageParamsSchema = z.object({}) + export const ActionsGetActionsCacheUsageParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetActionsCacheUsageParams = z.infer< typeof ActionsGetActionsCacheUsageParamsSchema > @@ -21768,7 +26552,52 @@ export namespace github { typeof ActionsGetActionsCacheUsageResponseSchema > - export const ActionsGetActionsCacheListParamsSchema = z.object({}) + export const ActionsGetActionsCacheListParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + ref: z + .string() + .describe( + 'The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`.' + ) + .optional(), + key: z + .string() + .describe('An explicit key or prefix for identifying the cache') + .optional(), + sort: z + .enum(['created_at', 'last_accessed_at', 'size_in_bytes']) + .describe( + 'The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes.' + ) + .default('last_accessed_at'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc') + }) export type ActionsGetActionsCacheListParams = z.infer< typeof ActionsGetActionsCacheListParamsSchema > @@ -21778,7 +26607,25 @@ export namespace github { typeof ActionsGetActionsCacheListResponseSchema > - export const ActionsDeleteActionsCacheByKeyParamsSchema = z.object({}) + export const ActionsDeleteActionsCacheByKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + key: z.string().describe('A key for identifying the cache.'), + ref: z + .string() + .describe( + 'The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`.' + ) + .optional() + }) export type ActionsDeleteActionsCacheByKeyParams = z.infer< typeof ActionsDeleteActionsCacheByKeyParamsSchema > @@ -21789,14 +26636,41 @@ export namespace github { typeof ActionsDeleteActionsCacheByKeyResponseSchema > - export const ActionsDeleteActionsCacheByIdParamsSchema = z.object({}) + export const ActionsDeleteActionsCacheByIdParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + cache_id: z + .number() + .int() + .describe('The unique identifier of the GitHub Actions cache.') + }) export type ActionsDeleteActionsCacheByIdParams = z.infer< typeof ActionsDeleteActionsCacheByIdParamsSchema > export type ActionsDeleteActionsCacheByIdResponse = undefined - export const ActionsGetJobForWorkflowRunParamsSchema = z.object({}) + export const ActionsGetJobForWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + job_id: z.number().int().describe('The unique identifier of the job.') + }) export type ActionsGetJobForWorkflowRunParams = z.infer< typeof ActionsGetJobForWorkflowRunParamsSchema > @@ -21806,7 +26680,19 @@ export namespace github { typeof ActionsGetJobForWorkflowRunResponseSchema > - export const ActionsDownloadJobLogsForWorkflowRunParamsSchema = z.object({}) + export const ActionsDownloadJobLogsForWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + job_id: z.number().int().describe('The unique identifier of the job.') + }) export type ActionsDownloadJobLogsForWorkflowRunParams = z.infer< typeof ActionsDownloadJobLogsForWorkflowRunParamsSchema > @@ -21817,7 +26703,18 @@ export namespace github { enable_debug_logging: z .boolean() .describe('Whether to enable debug logging for the re-run.') - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + job_id: z.number().int().describe('The unique identifier of the job.') }) export type ActionsReRunJobForWorkflowRunParams = z.infer< typeof ActionsReRunJobForWorkflowRunParamsSchema @@ -21825,7 +26722,18 @@ export namespace github { export type ActionsReRunJobForWorkflowRunResponse = undefined - export const ActionsGetCustomOidcSubClaimForRepoParamsSchema = z.object({}) + export const ActionsGetCustomOidcSubClaimForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetCustomOidcSubClaimForRepoParams = z.infer< typeof ActionsGetCustomOidcSubClaimForRepoParamsSchema > @@ -21847,7 +26755,17 @@ export namespace github { .describe( 'Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActionsSetCustomOidcSubClaimForRepoParams = z.infer< typeof ActionsSetCustomOidcSubClaimForRepoParamsSchema @@ -21855,7 +26773,32 @@ export namespace github { export type ActionsSetCustomOidcSubClaimForRepoResponse = undefined - export const ActionsListRepoOrganizationSecretsParamsSchema = z.object({}) + export const ActionsListRepoOrganizationSecretsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListRepoOrganizationSecretsParams = z.infer< typeof ActionsListRepoOrganizationSecretsParamsSchema > @@ -21868,7 +26811,32 @@ export namespace github { typeof ActionsListRepoOrganizationSecretsResponseSchema > - export const ActionsListRepoOrganizationVariablesParamsSchema = z.object({}) + export const ActionsListRepoOrganizationVariablesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(10), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListRepoOrganizationVariablesParams = z.infer< typeof ActionsListRepoOrganizationVariablesParamsSchema > @@ -21882,7 +26850,18 @@ export namespace github { > export const ActionsGetGithubActionsPermissionsRepositoryParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetGithubActionsPermissionsRepositoryParams = z.infer< typeof ActionsGetGithubActionsPermissionsRepositoryParamsSchema > @@ -21896,7 +26875,17 @@ export namespace github { export const ActionsSetGithubActionsPermissionsRepositoryParamsSchema = z.object({ enabled: ActionsEnabledSchema, - allowed_actions: AllowedActionsSchema.optional() + allowed_actions: AllowedActionsSchema.optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActionsSetGithubActionsPermissionsRepositoryParams = z.infer< typeof ActionsSetGithubActionsPermissionsRepositoryParamsSchema @@ -21904,7 +26893,18 @@ export namespace github { export type ActionsSetGithubActionsPermissionsRepositoryResponse = undefined - export const ActionsGetWorkflowAccessToRepositoryParamsSchema = z.object({}) + export const ActionsGetWorkflowAccessToRepositoryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetWorkflowAccessToRepositoryParams = z.infer< typeof ActionsGetWorkflowAccessToRepositoryParamsSchema > @@ -21915,14 +26915,38 @@ export namespace github { typeof ActionsGetWorkflowAccessToRepositoryResponseSchema > - export const ActionsSetWorkflowAccessToRepositoryParamsSchema = ActionsWorkflowAccessToRepositorySchema + export const ActionsSetWorkflowAccessToRepositoryParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(ActionsWorkflowAccessToRepositorySchema) export type ActionsSetWorkflowAccessToRepositoryParams = z.infer< typeof ActionsSetWorkflowAccessToRepositoryParamsSchema > export type ActionsSetWorkflowAccessToRepositoryResponse = undefined - export const ActionsGetAllowedActionsRepositoryParamsSchema = z.object({}) + export const ActionsGetAllowedActionsRepositoryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetAllowedActionsRepositoryParams = z.infer< typeof ActionsGetAllowedActionsRepositoryParamsSchema > @@ -21933,7 +26957,20 @@ export namespace github { typeof ActionsGetAllowedActionsRepositoryResponseSchema > - export const ActionsSetAllowedActionsRepositoryParamsSchema = SelectedActionsSchema + export const ActionsSetAllowedActionsRepositoryParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(SelectedActionsSchema) export type ActionsSetAllowedActionsRepositoryParams = z.infer< typeof ActionsSetAllowedActionsRepositoryParamsSchema > @@ -21941,7 +26978,18 @@ export namespace github { export type ActionsSetAllowedActionsRepositoryResponse = undefined export const ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParams = z.infer< typeof ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamsSchema @@ -21955,7 +27003,20 @@ export namespace github { > export const ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParamsSchema = - ActionsSetDefaultWorkflowPermissionsSchema + z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(ActionsSetDefaultWorkflowPermissionsSchema) export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParams = z.infer< typeof ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParamsSchema @@ -21965,7 +27026,31 @@ export namespace github { undefined export const ActionsListSelfHostedRunnersForRepoParamsSchema = z.object({ - name: z.string().describe('The name of a self-hosted runner.').optional() + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string().describe('The name of a self-hosted runner.').optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ActionsListSelfHostedRunnersForRepoParams = z.infer< typeof ActionsListSelfHostedRunnersForRepoParamsSchema @@ -21979,7 +27064,18 @@ export namespace github { typeof ActionsListSelfHostedRunnersForRepoResponseSchema > - export const ActionsListRunnerApplicationsForRepoParamsSchema = z.object({}) + export const ActionsListRunnerApplicationsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsListRunnerApplicationsForRepoParams = z.infer< typeof ActionsListRunnerApplicationsForRepoParamsSchema > @@ -22009,7 +27105,17 @@ export namespace github { .describe( 'The working directory to be used for job execution, relative to the runner install directory.' ) - .default('_work') + .default('_work'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActionsGenerateRunnerJitconfigForRepoParams = z.infer< typeof ActionsGenerateRunnerJitconfigForRepoParamsSchema @@ -22017,21 +27123,58 @@ export namespace github { export type ActionsGenerateRunnerJitconfigForRepoResponse = undefined - export const ActionsCreateRegistrationTokenForRepoParamsSchema = z.object({}) + export const ActionsCreateRegistrationTokenForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsCreateRegistrationTokenForRepoParams = z.infer< typeof ActionsCreateRegistrationTokenForRepoParamsSchema > export type ActionsCreateRegistrationTokenForRepoResponse = undefined - export const ActionsCreateRemoveTokenForRepoParamsSchema = z.object({}) + export const ActionsCreateRemoveTokenForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsCreateRemoveTokenForRepoParams = z.infer< typeof ActionsCreateRemoveTokenForRepoParamsSchema > export type ActionsCreateRemoveTokenForRepoResponse = undefined - export const ActionsGetSelfHostedRunnerForRepoParamsSchema = z.object({}) + export const ActionsGetSelfHostedRunnerForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsGetSelfHostedRunnerForRepoParams = z.infer< typeof ActionsGetSelfHostedRunnerForRepoParamsSchema > @@ -22041,7 +27184,22 @@ export namespace github { typeof ActionsGetSelfHostedRunnerForRepoResponseSchema > - export const ActionsDeleteSelfHostedRunnerFromRepoParamsSchema = z.object({}) + export const ActionsDeleteSelfHostedRunnerFromRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsDeleteSelfHostedRunnerFromRepoParams = z.infer< typeof ActionsDeleteSelfHostedRunnerFromRepoParamsSchema > @@ -22049,7 +27207,22 @@ export namespace github { export type ActionsDeleteSelfHostedRunnerFromRepoResponse = undefined export const ActionsListLabelsForSelfHostedRunnerForRepoParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsListLabelsForSelfHostedRunnerForRepoParams = z.infer< typeof ActionsListLabelsForSelfHostedRunnerForRepoParamsSchema > @@ -22069,7 +27242,21 @@ export namespace github { .array(z.string()) .min(1) .max(100) - .describe('The names of the custom labels to add to the runner.') + .describe('The names of the custom labels to add to the runner.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') }) export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoParams = z.infer< typeof ActionsAddCustomLabelsToSelfHostedRunnerForRepoParamsSchema @@ -22092,7 +27279,21 @@ export namespace github { .max(100) .describe( 'The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') }) export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoParams = z.infer< typeof ActionsSetCustomLabelsForSelfHostedRunnerForRepoParamsSchema @@ -22109,7 +27310,22 @@ export namespace github { > export const ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.') + }) export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParams = z.infer< typeof ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParamsSchema @@ -22126,7 +27342,25 @@ export namespace github { > export const ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + runner_id: z + .number() + .int() + .describe('Unique identifier of the self-hosted runner.'), + name: z + .string() + .describe("The name of a self-hosted runner's custom label.") + }) export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParams = z.infer< typeof ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParamsSchema @@ -22142,7 +27376,97 @@ export namespace github { typeof ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoResponseSchema > - export const ActionsListWorkflowRunsForRepoParamsSchema = z.object({}) + export const ActionsListWorkflowRunsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + actor: z + .string() + .describe( + "Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run." + ) + .optional(), + branch: z + .string() + .describe( + 'Returns workflow runs associated with a branch. Use the name of the branch of the `push`.' + ) + .optional(), + event: z + .string() + .describe( + 'Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)."' + ) + .optional(), + status: z + .enum([ + 'completed', + 'action_required', + 'cancelled', + 'failure', + 'neutral', + 'skipped', + 'stale', + 'success', + 'timed_out', + 'in_progress', + 'queued', + 'requested', + 'waiting', + 'pending' + ]) + .describe( + 'Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + created: z + .string() + .datetime({ offset: true }) + .describe( + 'Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)."' + ) + .optional(), + exclude_pull_requests: z + .boolean() + .describe( + 'If `true` pull requests are omitted from the response (empty array).' + ) + .default(false), + check_suite_id: z + .number() + .int() + .describe( + 'Returns workflow runs with the `check_suite_id` that you specify.' + ) + .optional(), + head_sha: z + .string() + .describe( + 'Only returns workflow runs that are associated with the specified `head_sha`.' + ) + .optional() + }) export type ActionsListWorkflowRunsForRepoParams = z.infer< typeof ActionsListWorkflowRunsForRepoParamsSchema > @@ -22155,7 +27479,28 @@ export namespace github { typeof ActionsListWorkflowRunsForRepoResponseSchema > - export const ActionsGetWorkflowRunParamsSchema = z.object({}) + export const ActionsGetWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), + exclude_pull_requests: z + .boolean() + .describe( + 'If `true` pull requests are omitted from the response (empty array).' + ) + .default(false) + }) export type ActionsGetWorkflowRunParams = z.infer< typeof ActionsGetWorkflowRunParamsSchema > @@ -22165,14 +27510,44 @@ export namespace github { typeof ActionsGetWorkflowRunResponseSchema > - export const ActionsDeleteWorkflowRunParamsSchema = z.object({}) + export const ActionsDeleteWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsDeleteWorkflowRunParams = z.infer< typeof ActionsDeleteWorkflowRunParamsSchema > export type ActionsDeleteWorkflowRunResponse = undefined - export const ActionsGetReviewsForRunParamsSchema = z.object({}) + export const ActionsGetReviewsForRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsGetReviewsForRunParams = z.infer< typeof ActionsGetReviewsForRunParamsSchema > @@ -22184,14 +27559,64 @@ export namespace github { typeof ActionsGetReviewsForRunResponseSchema > - export const ActionsApproveWorkflowRunParamsSchema = z.object({}) + export const ActionsApproveWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsApproveWorkflowRunParams = z.infer< typeof ActionsApproveWorkflowRunParamsSchema > export type ActionsApproveWorkflowRunResponse = undefined - export const ActionsListWorkflowRunArtifactsParamsSchema = z.object({}) + export const ActionsListWorkflowRunArtifactsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + name: z + .string() + .describe( + 'The name field of an artifact. When specified, only artifacts with this name will be returned.' + ) + .optional() + }) export type ActionsListWorkflowRunArtifactsParams = z.infer< typeof ActionsListWorkflowRunArtifactsParamsSchema > @@ -22204,7 +27629,32 @@ export namespace github { typeof ActionsListWorkflowRunArtifactsResponseSchema > - export const ActionsGetWorkflowRunAttemptParamsSchema = z.object({}) + export const ActionsGetWorkflowRunAttemptParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), + attempt_number: z + .number() + .int() + .describe('The attempt number of the workflow run.'), + exclude_pull_requests: z + .boolean() + .describe( + 'If `true` pull requests are omitted from the response (empty array).' + ) + .default(false) + }) export type ActionsGetWorkflowRunAttemptParams = z.infer< typeof ActionsGetWorkflowRunAttemptParamsSchema > @@ -22214,7 +27664,40 @@ export namespace github { typeof ActionsGetWorkflowRunAttemptResponseSchema > - export const ActionsListJobsForWorkflowRunAttemptParamsSchema = z.object({}) + export const ActionsListJobsForWorkflowRunAttemptParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), + attempt_number: z + .number() + .int() + .describe('The attempt number of the workflow run.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListJobsForWorkflowRunAttemptParams = z.infer< typeof ActionsListJobsForWorkflowRunAttemptParamsSchema > @@ -22227,14 +27710,48 @@ export namespace github { typeof ActionsListJobsForWorkflowRunAttemptResponseSchema > - export const ActionsDownloadWorkflowRunAttemptLogsParamsSchema = z.object({}) + export const ActionsDownloadWorkflowRunAttemptLogsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), + attempt_number: z + .number() + .int() + .describe('The attempt number of the workflow run.') + }) export type ActionsDownloadWorkflowRunAttemptLogsParams = z.infer< typeof ActionsDownloadWorkflowRunAttemptLogsParamsSchema > export type ActionsDownloadWorkflowRunAttemptLogsResponse = undefined - export const ActionsCancelWorkflowRunParamsSchema = z.object({}) + export const ActionsCancelWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsCancelWorkflowRunParams = z.infer< typeof ActionsCancelWorkflowRunParamsSchema > @@ -22242,7 +27759,22 @@ export namespace github { export type ActionsCancelWorkflowRunResponse = undefined export const ActionsReviewCustomGatesForRunParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) .and( z.union([ ReviewCustomGatesCommentRequiredSchema, @@ -22255,7 +27787,22 @@ export namespace github { export type ActionsReviewCustomGatesForRunResponse = undefined - export const ActionsForceCancelWorkflowRunParamsSchema = z.object({}) + export const ActionsForceCancelWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsForceCancelWorkflowRunParams = z.infer< typeof ActionsForceCancelWorkflowRunParamsSchema > @@ -22263,12 +27810,40 @@ export namespace github { export type ActionsForceCancelWorkflowRunResponse = undefined export const ActionsListJobsForWorkflowRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.'), filter: z .enum(['latest', 'all']) .describe( 'Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all jobs for a workflow run, including from old executions of the workflow run.' ) - .default('latest') + .default('latest'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ActionsListJobsForWorkflowRunParams = z.infer< typeof ActionsListJobsForWorkflowRunParamsSchema @@ -22282,21 +27857,66 @@ export namespace github { typeof ActionsListJobsForWorkflowRunResponseSchema > - export const ActionsDownloadWorkflowRunLogsParamsSchema = z.object({}) + export const ActionsDownloadWorkflowRunLogsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsDownloadWorkflowRunLogsParams = z.infer< typeof ActionsDownloadWorkflowRunLogsParamsSchema > export type ActionsDownloadWorkflowRunLogsResponse = undefined - export const ActionsDeleteWorkflowRunLogsParamsSchema = z.object({}) + export const ActionsDeleteWorkflowRunLogsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsDeleteWorkflowRunLogsParams = z.infer< typeof ActionsDeleteWorkflowRunLogsParamsSchema > export type ActionsDeleteWorkflowRunLogsResponse = undefined - export const ActionsGetPendingDeploymentsForRunParamsSchema = z.object({}) + export const ActionsGetPendingDeploymentsForRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsGetPendingDeploymentsForRunParams = z.infer< typeof ActionsGetPendingDeploymentsForRunParamsSchema > @@ -22317,7 +27937,23 @@ export namespace github { .describe( 'Whether to approve or reject deployment to the specified environments.' ), - comment: z.string().describe('A comment to accompany the deployment review') + comment: z + .string() + .describe('A comment to accompany the deployment review'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') }) export type ActionsReviewPendingDeploymentsForRunParams = z.infer< typeof ActionsReviewPendingDeploymentsForRunParamsSchema @@ -22333,7 +27969,21 @@ export namespace github { enable_debug_logging: z .boolean() .describe('Whether to enable debug logging for the re-run.') - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') }) export type ActionsReRunWorkflowParams = z.infer< typeof ActionsReRunWorkflowParamsSchema @@ -22345,7 +27995,21 @@ export namespace github { enable_debug_logging: z .boolean() .describe('Whether to enable debug logging for the re-run.') - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') }) export type ActionsReRunWorkflowFailedJobsParams = z.infer< typeof ActionsReRunWorkflowFailedJobsParamsSchema @@ -22353,7 +28017,22 @@ export namespace github { export type ActionsReRunWorkflowFailedJobsResponse = undefined - export const ActionsGetWorkflowRunUsageParamsSchema = z.object({}) + export const ActionsGetWorkflowRunUsageParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + run_id: z + .number() + .int() + .describe('The unique identifier of the workflow run.') + }) export type ActionsGetWorkflowRunUsageParams = z.infer< typeof ActionsGetWorkflowRunUsageParamsSchema > @@ -22363,7 +28042,32 @@ export namespace github { typeof ActionsGetWorkflowRunUsageResponseSchema > - export const ActionsListRepoSecretsParamsSchema = z.object({}) + export const ActionsListRepoSecretsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListRepoSecretsParams = z.infer< typeof ActionsListRepoSecretsParamsSchema > @@ -22376,7 +28080,18 @@ export namespace github { typeof ActionsListRepoSecretsResponseSchema > - export const ActionsGetRepoPublicKeyParamsSchema = z.object({}) + export const ActionsGetRepoPublicKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActionsGetRepoPublicKeyParams = z.infer< typeof ActionsGetRepoPublicKeyParamsSchema > @@ -22386,7 +28101,19 @@ export namespace github { typeof ActionsGetRepoPublicKeyResponseSchema > - export const ActionsGetRepoSecretParamsSchema = z.object({}) + export const ActionsGetRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsGetRepoSecretParams = z.infer< typeof ActionsGetRepoSecretParamsSchema > @@ -22407,7 +28134,20 @@ export namespace github { .describe( 'Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.' ), - key_id: z.string().describe('ID of the key you used to encrypt the secret.') + key_id: z + .string() + .describe('ID of the key you used to encrypt the secret.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') }) export type ActionsCreateOrUpdateRepoSecretParams = z.infer< typeof ActionsCreateOrUpdateRepoSecretParamsSchema @@ -22415,14 +28155,51 @@ export namespace github { export type ActionsCreateOrUpdateRepoSecretResponse = undefined - export const ActionsDeleteRepoSecretParamsSchema = z.object({}) + export const ActionsDeleteRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsDeleteRepoSecretParams = z.infer< typeof ActionsDeleteRepoSecretParamsSchema > export type ActionsDeleteRepoSecretResponse = undefined - export const ActionsListRepoVariablesParamsSchema = z.object({}) + export const ActionsListRepoVariablesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(10), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListRepoVariablesParams = z.infer< typeof ActionsListRepoVariablesParamsSchema > @@ -22437,7 +28214,17 @@ export namespace github { export const ActionsCreateRepoVariableParamsSchema = z.object({ name: z.string().describe('The name of the variable.'), - value: z.string().describe('The value of the variable.') + value: z.string().describe('The value of the variable.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActionsCreateRepoVariableParams = z.infer< typeof ActionsCreateRepoVariableParamsSchema @@ -22445,7 +28232,19 @@ export namespace github { export type ActionsCreateRepoVariableResponse = undefined - export const ActionsGetRepoVariableParamsSchema = z.object({}) + export const ActionsGetRepoVariableParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string().describe('The name of the variable.') + }) export type ActionsGetRepoVariableParams = z.infer< typeof ActionsGetRepoVariableParamsSchema > @@ -22455,7 +28254,19 @@ export namespace github { typeof ActionsGetRepoVariableResponseSchema > - export const ActionsDeleteRepoVariableParamsSchema = z.object({}) + export const ActionsDeleteRepoVariableParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string().describe('The name of the variable.') + }) export type ActionsDeleteRepoVariableParams = z.infer< typeof ActionsDeleteRepoVariableParamsSchema > @@ -22463,8 +28274,18 @@ export namespace github { export type ActionsDeleteRepoVariableResponse = undefined export const ActionsUpdateRepoVariableParamsSchema = z.object({ - name: z.string().describe('The name of the variable.').optional(), - value: z.string().describe('The value of the variable.').optional() + name: z.string().describe('The name of the variable.'), + value: z.string().describe('The value of the variable.').optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActionsUpdateRepoVariableParams = z.infer< typeof ActionsUpdateRepoVariableParamsSchema @@ -22472,7 +28293,32 @@ export namespace github { export type ActionsUpdateRepoVariableResponse = undefined - export const ActionsListRepoWorkflowsParamsSchema = z.object({}) + export const ActionsListRepoWorkflowsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListRepoWorkflowsParams = z.infer< typeof ActionsListRepoWorkflowsParamsSchema > @@ -22485,7 +28331,23 @@ export namespace github { typeof ActionsListRepoWorkflowsResponseSchema > - export const ActionsGetWorkflowParamsSchema = z.object({}) + export const ActionsGetWorkflowParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) + }) export type ActionsGetWorkflowParams = z.infer< typeof ActionsGetWorkflowParamsSchema > @@ -22495,7 +28357,23 @@ export namespace github { typeof ActionsGetWorkflowResponseSchema > - export const ActionsDisableWorkflowParamsSchema = z.object({}) + export const ActionsDisableWorkflowParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) + }) export type ActionsDisableWorkflowParams = z.infer< typeof ActionsDisableWorkflowParamsSchema > @@ -22513,7 +28391,22 @@ export namespace github { .describe( 'Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) }) export type ActionsCreateWorkflowDispatchParams = z.infer< typeof ActionsCreateWorkflowDispatchParamsSchema @@ -22521,14 +28414,125 @@ export namespace github { export type ActionsCreateWorkflowDispatchResponse = undefined - export const ActionsEnableWorkflowParamsSchema = z.object({}) + export const ActionsEnableWorkflowParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) + }) export type ActionsEnableWorkflowParams = z.infer< typeof ActionsEnableWorkflowParamsSchema > export type ActionsEnableWorkflowResponse = undefined - export const ActionsListWorkflowRunsParamsSchema = z.object({}) + export const ActionsListWorkflowRunsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ), + actor: z + .string() + .describe( + "Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run." + ) + .optional(), + branch: z + .string() + .describe( + 'Returns workflow runs associated with a branch. Use the name of the branch of the `push`.' + ) + .optional(), + event: z + .string() + .describe( + 'Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)."' + ) + .optional(), + status: z + .enum([ + 'completed', + 'action_required', + 'cancelled', + 'failure', + 'neutral', + 'skipped', + 'stale', + 'success', + 'timed_out', + 'in_progress', + 'queued', + 'requested', + 'waiting', + 'pending' + ]) + .describe( + 'Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + created: z + .string() + .datetime({ offset: true }) + .describe( + 'Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)."' + ) + .optional(), + exclude_pull_requests: z + .boolean() + .describe( + 'If `true` pull requests are omitted from the response (empty array).' + ) + .default(false), + check_suite_id: z + .number() + .int() + .describe( + 'Returns workflow runs with the `check_suite_id` that you specify.' + ) + .optional(), + head_sha: z + .string() + .describe( + 'Only returns workflow runs that are associated with the specified `head_sha`.' + ) + .optional() + }) export type ActionsListWorkflowRunsParams = z.infer< typeof ActionsListWorkflowRunsParamsSchema > @@ -22541,7 +28545,23 @@ export namespace github { typeof ActionsListWorkflowRunsResponseSchema > - export const ActionsGetWorkflowUsageParamsSchema = z.object({}) + export const ActionsGetWorkflowUsageParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + workflow_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the workflow. You can also pass the workflow file name as a string.' + ) + }) export type ActionsGetWorkflowUsageParams = z.infer< typeof ActionsGetWorkflowUsageParamsSchema > @@ -22552,6 +28572,39 @@ export namespace github { > export const ReposListActivitiesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), ref: z .string() .describe( @@ -22593,7 +28646,32 @@ export namespace github { typeof ReposListActivitiesResponseSchema > - export const IssuesListAssigneesParamsSchema = z.object({}) + export const IssuesListAssigneesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListAssigneesParams = z.infer< typeof IssuesListAssigneesParamsSchema > @@ -22604,6 +28682,16 @@ export namespace github { > export const IssuesCheckUserCanBeAssignedParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), assignee: z.string() }) export type IssuesCheckUserCanBeAssignedParams = z.infer< @@ -22621,6 +28709,16 @@ export namespace github { }) .describe( "The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type ReposCreateAttestationParams = z.infer< @@ -22630,11 +28728,40 @@ export namespace github { export type ReposCreateAttestationResponse = undefined export const ReposListAttestationsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), subject_digest: z .string() .describe( "The parameter should be set to the attestation's subject's SHA256 digest, in the form `sha256:HEX_DIGEST`." ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), predicate_type: z .string() .describe( @@ -22670,7 +28797,18 @@ export namespace github { typeof ReposListAttestationsResponseSchema > - export const ReposListAutolinksParamsSchema = z.object({}) + export const ReposListAutolinksParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposListAutolinksParams = z.infer< typeof ReposListAutolinksParamsSchema > @@ -22696,7 +28834,17 @@ export namespace github { .describe( 'Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.' ) - .default(true) + .default(true), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateAutolinkParams = z.infer< typeof ReposCreateAutolinkParamsSchema @@ -22704,7 +28852,22 @@ export namespace github { export type ReposCreateAutolinkResponse = undefined - export const ReposGetAutolinkParamsSchema = z.object({}) + export const ReposGetAutolinkParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + autolink_id: z + .number() + .int() + .describe('The unique identifier of the autolink.') + }) export type ReposGetAutolinkParams = z.infer< typeof ReposGetAutolinkParamsSchema > @@ -22714,14 +28877,40 @@ export namespace github { typeof ReposGetAutolinkResponseSchema > - export const ReposDeleteAutolinkParamsSchema = z.object({}) + export const ReposDeleteAutolinkParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + autolink_id: z + .number() + .int() + .describe('The unique identifier of the autolink.') + }) export type ReposDeleteAutolinkParams = z.infer< typeof ReposDeleteAutolinkParamsSchema > export type ReposDeleteAutolinkResponse = undefined - export const ReposCheckAutomatedSecurityFixesParamsSchema = z.object({}) + export const ReposCheckAutomatedSecurityFixesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposCheckAutomatedSecurityFixesParams = z.infer< typeof ReposCheckAutomatedSecurityFixesParamsSchema > @@ -22732,14 +28921,36 @@ export namespace github { typeof ReposCheckAutomatedSecurityFixesResponseSchema > - export const ReposEnableAutomatedSecurityFixesParamsSchema = z.object({}) + export const ReposEnableAutomatedSecurityFixesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposEnableAutomatedSecurityFixesParams = z.infer< typeof ReposEnableAutomatedSecurityFixesParamsSchema > export type ReposEnableAutomatedSecurityFixesResponse = undefined - export const ReposDisableAutomatedSecurityFixesParamsSchema = z.object({}) + export const ReposDisableAutomatedSecurityFixesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposDisableAutomatedSecurityFixesParams = z.infer< typeof ReposDisableAutomatedSecurityFixesParamsSchema > @@ -22747,12 +28958,36 @@ export namespace github { export type ReposDisableAutomatedSecurityFixesResponse = undefined export const ReposListBranchesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), protected: z .boolean() .describe( 'Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListBranchesParams = z.infer< typeof ReposListBranchesParamsSchema @@ -22763,7 +28998,23 @@ export namespace github { typeof ReposListBranchesResponseSchema > - export const ReposGetBranchParamsSchema = z.object({}) + export const ReposGetBranchParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetBranchParams = z.infer export const ReposGetBranchResponseSchema = BranchWithProtectionSchema @@ -22771,7 +29022,23 @@ export namespace github { typeof ReposGetBranchResponseSchema > - export const ReposGetBranchProtectionParamsSchema = z.object({}) + export const ReposGetBranchProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetBranchProtectionParams = z.infer< typeof ReposGetBranchProtectionParamsSchema > @@ -22810,13 +29077,11 @@ export namespace github { ) .optional() }) - .nullable() .describe( 'Require status checks to pass before merging. Set to `null` to disable.' ), enforce_admins: z .boolean() - .nullable() .describe( 'Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.' ), @@ -22892,7 +29157,6 @@ export namespace github { ) .optional() }) - .nullable() .describe( 'Require at least one approving review on a pull request, before merging. Set to `null` to disable.' ), @@ -22909,7 +29173,6 @@ export namespace github { .describe('The list of app `slug`s with push access') .optional() }) - .nullable() .describe( 'Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.' ), @@ -22921,7 +29184,6 @@ export namespace github { .optional(), allow_force_pushes: z .boolean() - .nullable() .describe( 'Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."' ) @@ -22955,7 +29217,22 @@ export namespace github { .describe( 'Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.' ) - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposUpdateBranchProtectionParams = z.infer< typeof ReposUpdateBranchProtectionParamsSchema @@ -22966,14 +29243,46 @@ export namespace github { typeof ReposUpdateBranchProtectionResponseSchema > - export const ReposDeleteBranchProtectionParamsSchema = z.object({}) + export const ReposDeleteBranchProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposDeleteBranchProtectionParams = z.infer< typeof ReposDeleteBranchProtectionParamsSchema > export type ReposDeleteBranchProtectionResponse = undefined - export const ReposGetAdminBranchProtectionParamsSchema = z.object({}) + export const ReposGetAdminBranchProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetAdminBranchProtectionParams = z.infer< typeof ReposGetAdminBranchProtectionParamsSchema > @@ -22984,7 +29293,23 @@ export namespace github { typeof ReposGetAdminBranchProtectionResponseSchema > - export const ReposSetAdminBranchProtectionParamsSchema = z.object({}) + export const ReposSetAdminBranchProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposSetAdminBranchProtectionParams = z.infer< typeof ReposSetAdminBranchProtectionParamsSchema > @@ -22995,14 +29320,46 @@ export namespace github { typeof ReposSetAdminBranchProtectionResponseSchema > - export const ReposDeleteAdminBranchProtectionParamsSchema = z.object({}) + export const ReposDeleteAdminBranchProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposDeleteAdminBranchProtectionParams = z.infer< typeof ReposDeleteAdminBranchProtectionParamsSchema > export type ReposDeleteAdminBranchProtectionResponse = undefined - export const ReposGetPullRequestReviewProtectionParamsSchema = z.object({}) + export const ReposGetPullRequestReviewProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetPullRequestReviewProtectionParams = z.infer< typeof ReposGetPullRequestReviewProtectionParamsSchema > @@ -23013,7 +29370,23 @@ export namespace github { typeof ReposGetPullRequestReviewProtectionResponseSchema > - export const ReposDeletePullRequestReviewProtectionParamsSchema = z.object({}) + export const ReposDeletePullRequestReviewProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposDeletePullRequestReviewProtectionParams = z.infer< typeof ReposDeletePullRequestReviewProtectionParamsSchema > @@ -23089,7 +29462,22 @@ export namespace github { .describe( 'Allow specific users, teams, or apps to bypass pull request requirements.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposUpdatePullRequestReviewProtectionParams = z.infer< typeof ReposUpdatePullRequestReviewProtectionParamsSchema @@ -23101,7 +29489,23 @@ export namespace github { typeof ReposUpdatePullRequestReviewProtectionResponseSchema > - export const ReposGetCommitSignatureProtectionParamsSchema = z.object({}) + export const ReposGetCommitSignatureProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetCommitSignatureProtectionParams = z.infer< typeof ReposGetCommitSignatureProtectionParamsSchema > @@ -23112,7 +29516,23 @@ export namespace github { typeof ReposGetCommitSignatureProtectionResponseSchema > - export const ReposCreateCommitSignatureProtectionParamsSchema = z.object({}) + export const ReposCreateCommitSignatureProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposCreateCommitSignatureProtectionParams = z.infer< typeof ReposCreateCommitSignatureProtectionParamsSchema > @@ -23123,14 +29543,46 @@ export namespace github { typeof ReposCreateCommitSignatureProtectionResponseSchema > - export const ReposDeleteCommitSignatureProtectionParamsSchema = z.object({}) + export const ReposDeleteCommitSignatureProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposDeleteCommitSignatureProtectionParams = z.infer< typeof ReposDeleteCommitSignatureProtectionParamsSchema > export type ReposDeleteCommitSignatureProtectionResponse = undefined - export const ReposGetStatusChecksProtectionParamsSchema = z.object({}) + export const ReposGetStatusChecksProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetStatusChecksProtectionParams = z.infer< typeof ReposGetStatusChecksProtectionParamsSchema > @@ -23141,7 +29593,23 @@ export namespace github { typeof ReposGetStatusChecksProtectionResponseSchema > - export const ReposRemoveStatusCheckProtectionParamsSchema = z.object({}) + export const ReposRemoveStatusCheckProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposRemoveStatusCheckProtectionParams = z.infer< typeof ReposRemoveStatusCheckProtectionParamsSchema > @@ -23175,7 +29643,22 @@ export namespace github { .describe( 'The list of status checks to require in order to merge into this branch.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposUpdateStatusCheckProtectionParams = z.infer< typeof ReposUpdateStatusCheckProtectionParamsSchema @@ -23187,7 +29670,23 @@ export namespace github { typeof ReposUpdateStatusCheckProtectionResponseSchema > - export const ReposGetAllStatusCheckContextsParamsSchema = z.object({}) + export const ReposGetAllStatusCheckContextsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetAllStatusCheckContextsParams = z.infer< typeof ReposGetAllStatusCheckContextsParamsSchema > @@ -23200,7 +29699,23 @@ export namespace github { > export const ReposAddStatusCheckContextsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23221,7 +29736,23 @@ export namespace github { > export const ReposSetStatusCheckContextsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23242,7 +29773,23 @@ export namespace github { > export const ReposRemoveStatusCheckContextsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23264,7 +29811,23 @@ export namespace github { typeof ReposRemoveStatusCheckContextsResponseSchema > - export const ReposGetAccessRestrictionsParamsSchema = z.object({}) + export const ReposGetAccessRestrictionsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetAccessRestrictionsParams = z.infer< typeof ReposGetAccessRestrictionsParamsSchema > @@ -23275,16 +29838,46 @@ export namespace github { typeof ReposGetAccessRestrictionsResponseSchema > - export const ReposDeleteAccessRestrictionsParamsSchema = z.object({}) + export const ReposDeleteAccessRestrictionsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposDeleteAccessRestrictionsParams = z.infer< typeof ReposDeleteAccessRestrictionsParamsSchema > export type ReposDeleteAccessRestrictionsResponse = undefined - export const ReposGetAppsWithAccessToProtectedBranchParamsSchema = z.object( - {} - ) + export const ReposGetAppsWithAccessToProtectedBranchParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetAppsWithAccessToProtectedBranchParams = z.infer< typeof ReposGetAppsWithAccessToProtectedBranchParamsSchema > @@ -23300,6 +29893,21 @@ export namespace github { .array(z.string()) .describe( 'The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' ) }) export type ReposAddAppAccessRestrictionsParams = z.infer< @@ -23317,6 +29925,21 @@ export namespace github { .array(z.string()) .describe( 'The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' ) }) export type ReposSetAppAccessRestrictionsParams = z.infer< @@ -23334,6 +29957,21 @@ export namespace github { .array(z.string()) .describe( 'The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' ) }) export type ReposRemoveAppAccessRestrictionsParams = z.infer< @@ -23346,9 +29984,23 @@ export namespace github { typeof ReposRemoveAppAccessRestrictionsResponseSchema > - export const ReposGetTeamsWithAccessToProtectedBranchParamsSchema = z.object( - {} - ) + export const ReposGetTeamsWithAccessToProtectedBranchParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetTeamsWithAccessToProtectedBranchParams = z.infer< typeof ReposGetTeamsWithAccessToProtectedBranchParamsSchema > @@ -23360,7 +30012,23 @@ export namespace github { > export const ReposAddTeamAccessRestrictionsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23380,7 +30048,23 @@ export namespace github { > export const ReposSetTeamAccessRestrictionsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23400,7 +30084,23 @@ export namespace github { > export const ReposRemoveTeamAccessRestrictionsParamsSchema = z - .object({}) + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) .and( z.union([ z.object({ @@ -23419,9 +30119,23 @@ export namespace github { typeof ReposRemoveTeamAccessRestrictionsResponseSchema > - export const ReposGetUsersWithAccessToProtectedBranchParamsSchema = z.object( - {} - ) + export const ReposGetUsersWithAccessToProtectedBranchParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) + }) export type ReposGetUsersWithAccessToProtectedBranchParams = z.infer< typeof ReposGetUsersWithAccessToProtectedBranchParamsSchema > @@ -23433,7 +30147,22 @@ export namespace github { > export const ReposAddUserAccessRestrictionsParamsSchema = z.object({ - users: z.array(z.string()).describe('The username for users') + users: z.array(z.string()).describe('The username for users'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposAddUserAccessRestrictionsParams = z.infer< typeof ReposAddUserAccessRestrictionsParamsSchema @@ -23446,7 +30175,22 @@ export namespace github { > export const ReposSetUserAccessRestrictionsParamsSchema = z.object({ - users: z.array(z.string()).describe('The username for users') + users: z.array(z.string()).describe('The username for users'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposSetUserAccessRestrictionsParams = z.infer< typeof ReposSetUserAccessRestrictionsParamsSchema @@ -23459,7 +30203,22 @@ export namespace github { > export const ReposRemoveUserAccessRestrictionsParamsSchema = z.object({ - users: z.array(z.string()).describe('The username for users') + users: z.array(z.string()).describe('The username for users'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposRemoveUserAccessRestrictionsParams = z.infer< typeof ReposRemoveUserAccessRestrictionsParamsSchema @@ -23472,7 +30231,22 @@ export namespace github { > export const ReposRenameBranchParamsSchema = z.object({ - new_name: z.string().describe('The new name of the branch.') + new_name: z.string().describe('The new name of the branch.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ) }) export type ReposRenameBranchParams = z.infer< typeof ReposRenameBranchParamsSchema @@ -23660,7 +30434,17 @@ export namespace github { .describe( 'Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) .and( z.union([ @@ -23674,7 +30458,22 @@ export namespace github { export type ChecksCreateResponse = undefined - export const ChecksGetParamsSchema = z.object({}) + export const ChecksGetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_run_id: z + .number() + .int() + .describe('The unique identifier of the check run.') + }) export type ChecksGetParams = z.infer export const ChecksGetResponseSchema = CheckRunSchema @@ -23853,7 +30652,21 @@ export namespace github { .describe( 'Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_run_id: z + .number() + .int() + .describe('The unique identifier of the check run.') }) .and( z.union([ @@ -23870,7 +30683,36 @@ export namespace github { export const ChecksUpdateResponseSchema = CheckRunSchema export type ChecksUpdateResponse = z.infer - export const ChecksListAnnotationsParamsSchema = z.object({}) + export const ChecksListAnnotationsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_run_id: z + .number() + .int() + .describe('The unique identifier of the check run.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ChecksListAnnotationsParams = z.infer< typeof ChecksListAnnotationsParamsSchema > @@ -23882,7 +30724,22 @@ export namespace github { typeof ChecksListAnnotationsResponseSchema > - export const ChecksRerequestRunParamsSchema = z.object({}) + export const ChecksRerequestRunParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_run_id: z + .number() + .int() + .describe('The unique identifier of the check run.') + }) export type ChecksRerequestRunParams = z.infer< typeof ChecksRerequestRunParamsSchema > @@ -23890,7 +30747,17 @@ export namespace github { export type ChecksRerequestRunResponse = undefined export const ChecksCreateSuiteParamsSchema = z.object({ - head_sha: z.string().describe('The sha of the head commit.') + head_sha: z.string().describe('The sha of the head commit.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ChecksCreateSuiteParams = z.infer< typeof ChecksCreateSuiteParamsSchema @@ -23917,7 +30784,17 @@ export namespace github { .describe( 'Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ChecksSetSuitesPreferencesParams = z.infer< typeof ChecksSetSuitesPreferencesParamsSchema @@ -23929,7 +30806,22 @@ export namespace github { typeof ChecksSetSuitesPreferencesResponseSchema > - export const ChecksGetSuiteParamsSchema = z.object({}) + export const ChecksGetSuiteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_suite_id: z + .number() + .int() + .describe('The unique identifier of the check suite.') + }) export type ChecksGetSuiteParams = z.infer export const ChecksGetSuiteResponseSchema = CheckSuiteSchema @@ -23938,12 +30830,48 @@ export namespace github { > export const ChecksListForSuiteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_suite_id: z + .number() + .int() + .describe('The unique identifier of the check suite.'), + check_name: z + .string() + .describe('Returns check runs with the specified `name`.') + .optional(), + status: z + .enum(['queued', 'in_progress', 'completed']) + .describe('Returns check runs with the specified `status`.') + .optional(), filter: z .enum(['latest', 'all']) .describe( 'Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.' ) - .default('latest') + .default('latest'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ChecksListForSuiteParams = z.infer< typeof ChecksListForSuiteParamsSchema @@ -23957,7 +30885,22 @@ export namespace github { typeof ChecksListForSuiteResponseSchema > - export const ChecksRerequestSuiteParamsSchema = z.object({}) + export const ChecksRerequestSuiteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + check_suite_id: z + .number() + .int() + .describe('The unique identifier of the check suite.') + }) export type ChecksRerequestSuiteParams = z.infer< typeof ChecksRerequestSuiteParamsSchema > @@ -23965,6 +30908,71 @@ export namespace github { export type ChecksRerequestSuiteResponse = undefined export const CodeScanningListAlertsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + tool_name: z + .any() + .describe( + 'The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both.' + ) + .optional(), + tool_guid: z + .any() + .describe( + 'The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + ref: z + .any() + .describe( + 'The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`.' + ) + .optional(), + pr: z + .number() + .int() + .describe( + 'The number of the pull request for the results you want to list.' + ) + .optional(), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), sort: z .enum(['created', 'updated']) .describe('The property by which to sort the results.') @@ -23993,7 +31001,23 @@ export namespace github { typeof CodeScanningListAlertsForRepoResponseSchema > - export const CodeScanningGetAlertParamsSchema = z.object({}) + export const CodeScanningGetAlertParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) + }) export type CodeScanningGetAlertParams = z.infer< typeof CodeScanningGetAlertParamsSchema > @@ -24007,7 +31031,22 @@ export namespace github { state: CodeScanningAlertSetStateSchema, dismissed_reason: CodeScanningAlertDismissedReasonSchema.optional(), dismissed_comment: CodeScanningAlertDismissedCommentSchema.optional(), - create_request: CodeScanningAlertCreateRequestSchema.optional() + create_request: CodeScanningAlertCreateRequestSchema.optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) }) export type CodeScanningUpdateAlertParams = z.infer< typeof CodeScanningUpdateAlertParamsSchema @@ -24018,7 +31057,23 @@ export namespace github { typeof CodeScanningUpdateAlertResponseSchema > - export const CodeScanningGetAutofixParamsSchema = z.object({}) + export const CodeScanningGetAutofixParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) + }) export type CodeScanningGetAutofixParams = z.infer< typeof CodeScanningGetAutofixParamsSchema > @@ -24028,7 +31083,23 @@ export namespace github { typeof CodeScanningGetAutofixResponseSchema > - export const CodeScanningCreateAutofixParamsSchema = z.object({}) + export const CodeScanningCreateAutofixParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) + }) export type CodeScanningCreateAutofixParams = z.infer< typeof CodeScanningCreateAutofixParamsSchema > @@ -24039,14 +31110,75 @@ export namespace github { typeof CodeScanningCreateAutofixResponseSchema > - export const CodeScanningCommitAutofixParamsSchema = CodeScanningAutofixCommitsSchema + export const CodeScanningCommitAutofixParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) + }) + .merge(CodeScanningAutofixCommitsSchema) export type CodeScanningCommitAutofixParams = z.infer< typeof CodeScanningCommitAutofixParamsSchema > export type CodeScanningCommitAutofixResponse = undefined - export const CodeScanningListAlertInstancesParamsSchema = z.object({}) + export const CodeScanningListAlertInstancesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + ref: z + .any() + .describe( + 'The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`.' + ) + .optional(), + pr: z + .number() + .int() + .describe( + 'The number of the pull request for the results you want to list.' + ) + .optional() + }) export type CodeScanningListAlertInstancesParams = z.infer< typeof CodeScanningListAlertInstancesParamsSchema > @@ -24059,6 +31191,49 @@ export namespace github { > export const CodeScanningListRecentAnalysesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + tool_name: z + .any() + .describe( + 'The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both.' + ) + .optional(), + tool_guid: z + .any() + .describe( + 'The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both.' + ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + pr: z + .number() + .int() + .describe( + 'The number of the pull request for the results you want to list.' + ) + .optional(), ref: z .any() .describe( @@ -24069,6 +31244,10 @@ export namespace github { .any() .describe('Filter analyses belonging to the same SARIF upload.') .optional(), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), sort: z .literal('created') .describe('The property by which to sort the results.') @@ -24086,6 +31265,16 @@ export namespace github { > export const CodeScanningGetAnalysisParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), analysis_id: z .number() .int() @@ -24104,6 +31293,16 @@ export namespace github { > export const CodeScanningDeleteAnalysisParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), analysis_id: z .number() .int() @@ -24127,7 +31326,18 @@ export namespace github { typeof CodeScanningDeleteAnalysisResponseSchema > - export const CodeScanningListCodeqlDatabasesParamsSchema = z.object({}) + export const CodeScanningListCodeqlDatabasesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type CodeScanningListCodeqlDatabasesParams = z.infer< typeof CodeScanningListCodeqlDatabasesParamsSchema > @@ -24140,6 +31350,16 @@ export namespace github { > export const CodeScanningGetCodeqlDatabaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), language: z.string().describe('The language of the CodeQL database.') }) export type CodeScanningGetCodeqlDatabaseParams = z.infer< @@ -24153,6 +31373,16 @@ export namespace github { > export const CodeScanningDeleteCodeqlDatabaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), language: z.string().describe('The language of the CodeQL database.') }) export type CodeScanningDeleteCodeqlDatabaseParams = z.infer< @@ -24188,7 +31418,17 @@ export namespace github { .describe( 'List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) .and(z.union([z.any(), z.any(), z.any()])) export type CodeScanningCreateVariantAnalysisParams = z.infer< @@ -24198,6 +31438,16 @@ export namespace github { export type CodeScanningCreateVariantAnalysisResponse = undefined export const CodeScanningGetVariantAnalysisParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), codeql_variant_analysis_id: z .number() .int() @@ -24214,6 +31464,11 @@ export namespace github { > export const CodeScanningGetVariantAnalysisRepoTaskParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), repo: z.string().describe('The name of the controller repository.'), codeql_variant_analysis_id: z .number() @@ -24238,7 +31493,18 @@ export namespace github { typeof CodeScanningGetVariantAnalysisRepoTaskResponseSchema > - export const CodeScanningGetDefaultSetupParamsSchema = z.object({}) + export const CodeScanningGetDefaultSetupParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type CodeScanningGetDefaultSetupParams = z.infer< typeof CodeScanningGetDefaultSetupParamsSchema > @@ -24249,7 +31515,20 @@ export namespace github { typeof CodeScanningGetDefaultSetupResponseSchema > - export const CodeScanningUpdateDefaultSetupParamsSchema = CodeScanningDefaultSetupUpdateSchema + export const CodeScanningUpdateDefaultSetupParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(CodeScanningDefaultSetupUpdateSchema) export type CodeScanningUpdateDefaultSetupParams = z.infer< typeof CodeScanningUpdateDefaultSetupParamsSchema > @@ -24288,7 +31567,17 @@ export namespace github { .describe( 'Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type CodeScanningUploadSarifParams = z.infer< typeof CodeScanningUploadSarifParamsSchema @@ -24297,6 +31586,16 @@ export namespace github { export type CodeScanningUploadSarifResponse = undefined export const CodeScanningGetSarifParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sarif_id: z.string().describe('The SARIF ID obtained after uploading.') }) export type CodeScanningGetSarifParams = z.infer< @@ -24310,7 +31609,18 @@ export namespace github { > export const CodeSecurityGetConfigurationForRepositoryParamsSchema = z.object( - {} + { + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + } ) export type CodeSecurityGetConfigurationForRepositoryParams = z.infer< typeof CodeSecurityGetConfigurationForRepositoryParamsSchema @@ -24323,6 +31633,16 @@ export namespace github { > export const ReposCodeownersErrorsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z .string() .describe( @@ -24340,7 +31660,32 @@ export namespace github { > export const CodespacesListInRepositoryForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesListInRepositoryForAuthenticatedUserParams = z.infer< typeof CodespacesListInRepositoryForAuthenticatedUserParamsSchema > @@ -24409,7 +31754,17 @@ export namespace github { .describe( 'Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type CodespacesCreateWithRepoForAuthenticatedUserParams = z.infer< typeof CodespacesCreateWithRepoForAuthenticatedUserParamsSchema @@ -24418,7 +31773,32 @@ export namespace github { export type CodespacesCreateWithRepoForAuthenticatedUserResponse = undefined export const CodespacesListDevcontainersInRepositoryForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserParams = z.infer< typeof CodespacesListDevcontainersInRepositoryForAuthenticatedUserParamsSchema @@ -24442,6 +31822,16 @@ export namespace github { export const CodespacesRepoMachinesForAuthenticatedUserParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), location: z .string() .describe( @@ -24474,6 +31864,16 @@ export namespace github { export const CodespacesPreFlightWithRepoForAuthenticatedUserParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z .string() .describe( @@ -24495,10 +31895,7 @@ export namespace github { z.object({ billable_owner: SimpleUserSchema.optional(), defaults: z - .object({ - location: z.string(), - devcontainer_path: z.string().nullable() - }) + .object({ location: z.string(), devcontainer_path: z.string() }) .optional() }) export type CodespacesPreFlightWithRepoForAuthenticatedUserResponse = z.infer< @@ -24507,6 +31904,16 @@ export namespace github { export const CodespacesCheckPermissionsForDevcontainerParamsSchema = z.object( { + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z .string() .describe( @@ -24529,7 +31936,32 @@ export namespace github { typeof CodespacesCheckPermissionsForDevcontainerResponseSchema > - export const CodespacesListRepoSecretsParamsSchema = z.object({}) + export const CodespacesListRepoSecretsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type CodespacesListRepoSecretsParams = z.infer< typeof CodespacesListRepoSecretsParamsSchema > @@ -24542,7 +31974,18 @@ export namespace github { typeof CodespacesListRepoSecretsResponseSchema > - export const CodespacesGetRepoPublicKeyParamsSchema = z.object({}) + export const CodespacesGetRepoPublicKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type CodespacesGetRepoPublicKeyParams = z.infer< typeof CodespacesGetRepoPublicKeyParamsSchema > @@ -24553,7 +31996,19 @@ export namespace github { typeof CodespacesGetRepoPublicKeyResponseSchema > - export const CodespacesGetRepoSecretParamsSchema = z.object({}) + export const CodespacesGetRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type CodespacesGetRepoSecretParams = z.infer< typeof CodespacesGetRepoSecretParamsSchema > @@ -24579,7 +32034,18 @@ export namespace github { key_id: z .string() .describe('ID of the key you used to encrypt the secret.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') }) export type CodespacesCreateOrUpdateRepoSecretParams = z.infer< typeof CodespacesCreateOrUpdateRepoSecretParamsSchema @@ -24587,7 +32053,19 @@ export namespace github { export type CodespacesCreateOrUpdateRepoSecretResponse = undefined - export const CodespacesDeleteRepoSecretParamsSchema = z.object({}) + export const CodespacesDeleteRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type CodespacesDeleteRepoSecretParams = z.infer< typeof CodespacesDeleteRepoSecretParamsSchema > @@ -24595,6 +32073,16 @@ export namespace github { export type CodespacesDeleteRepoSecretResponse = undefined export const ReposListCollaboratorsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), affiliation: z .enum(['outside', 'direct', 'all']) .describe( @@ -24606,7 +32094,21 @@ export namespace github { .describe( 'Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListCollaboratorsParams = z.infer< typeof ReposListCollaboratorsParamsSchema @@ -24618,7 +32120,19 @@ export namespace github { typeof ReposListCollaboratorsResponseSchema > - export const ReposCheckCollaboratorParamsSchema = z.object({}) + export const ReposCheckCollaboratorParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + username: z.string().describe('The handle for the GitHub user account.') + }) export type ReposCheckCollaboratorParams = z.infer< typeof ReposCheckCollaboratorParamsSchema > @@ -24631,7 +32145,18 @@ export namespace github { .describe( 'The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.' ) - .default('push') + .default('push'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + username: z.string().describe('The handle for the GitHub user account.') }) export type ReposAddCollaboratorParams = z.infer< typeof ReposAddCollaboratorParamsSchema @@ -24639,14 +32164,38 @@ export namespace github { export type ReposAddCollaboratorResponse = undefined - export const ReposRemoveCollaboratorParamsSchema = z.object({}) + export const ReposRemoveCollaboratorParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + username: z.string().describe('The handle for the GitHub user account.') + }) export type ReposRemoveCollaboratorParams = z.infer< typeof ReposRemoveCollaboratorParamsSchema > export type ReposRemoveCollaboratorResponse = undefined - export const ReposGetCollaboratorPermissionLevelParamsSchema = z.object({}) + export const ReposGetCollaboratorPermissionLevelParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + username: z.string().describe('The handle for the GitHub user account.') + }) export type ReposGetCollaboratorPermissionLevelParams = z.infer< typeof ReposGetCollaboratorPermissionLevelParamsSchema > @@ -24657,7 +32206,32 @@ export namespace github { typeof ReposGetCollaboratorPermissionLevelResponseSchema > - export const ReposListCommitCommentsForRepoParamsSchema = z.object({}) + export const ReposListCommitCommentsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListCommitCommentsForRepoParams = z.infer< typeof ReposListCommitCommentsForRepoParamsSchema > @@ -24668,7 +32242,22 @@ export namespace github { typeof ReposListCommitCommentsForRepoResponseSchema > - export const ReposGetCommitCommentParamsSchema = z.object({}) + export const ReposGetCommitCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type ReposGetCommitCommentParams = z.infer< typeof ReposGetCommitCommentParamsSchema > @@ -24678,7 +32267,22 @@ export namespace github { typeof ReposGetCommitCommentResponseSchema > - export const ReposDeleteCommitCommentParamsSchema = z.object({}) + export const ReposDeleteCommitCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type ReposDeleteCommitCommentParams = z.infer< typeof ReposDeleteCommitCommentParamsSchema > @@ -24686,7 +32290,21 @@ export namespace github { export type ReposDeleteCommitCommentResponse = undefined export const ReposUpdateCommitCommentParamsSchema = z.object({ - body: z.string().describe('The contents of the comment') + body: z.string().describe('The contents of the comment'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type ReposUpdateCommitCommentParams = z.infer< typeof ReposUpdateCommitCommentParamsSchema @@ -24698,6 +32316,20 @@ export namespace github { > export const ReactionsListForCommitCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), content: z .enum([ '+1', @@ -24712,7 +32344,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForCommitCommentParams = z.infer< typeof ReactionsListForCommitCommentParamsSchema @@ -24738,7 +32384,21 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type ReactionsCreateForCommitCommentParams = z.infer< typeof ReactionsCreateForCommitCommentParamsSchema @@ -24749,7 +32409,26 @@ export namespace github { typeof ReactionsCreateForCommitCommentResponseSchema > - export const ReactionsDeleteForCommitCommentParamsSchema = z.object({}) + export const ReactionsDeleteForCommitCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForCommitCommentParams = z.infer< typeof ReactionsDeleteForCommitCommentParamsSchema > @@ -24757,6 +32436,16 @@ export namespace github { export type ReactionsDeleteForCommitCommentResponse = undefined export const ReposListCommitsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sha: z .string() .describe( @@ -24792,7 +32481,21 @@ export namespace github { .describe( 'Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Due to limitations of Git, timestamps must be between 1970-01-01 and 2099-12-31 (inclusive) or unexpected results may be returned.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListCommitsParams = z.infer< typeof ReposListCommitsParamsSchema @@ -24803,7 +32506,19 @@ export namespace github { typeof ReposListCommitsResponseSchema > - export const ReposListBranchesForHeadCommitParamsSchema = z.object({}) + export const ReposListBranchesForHeadCommitParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + commit_sha: z.string().describe('The SHA of the commit.') + }) export type ReposListBranchesForHeadCommitParams = z.infer< typeof ReposListBranchesForHeadCommitParamsSchema > @@ -24814,7 +32529,33 @@ export namespace github { typeof ReposListBranchesForHeadCommitResponseSchema > - export const ReposListCommentsForCommitParamsSchema = z.object({}) + export const ReposListCommentsForCommitParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + commit_sha: z.string().describe('The SHA of the commit.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListCommentsForCommitParams = z.infer< typeof ReposListCommentsForCommitParamsSchema > @@ -24842,7 +32583,18 @@ export namespace github { .describe( '**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + commit_sha: z.string().describe('The SHA of the commit.') }) export type ReposCreateCommitCommentParams = z.infer< typeof ReposCreateCommitCommentParamsSchema @@ -24851,7 +32603,33 @@ export namespace github { export type ReposCreateCommitCommentResponse = undefined export const ReposListPullRequestsAssociatedWithCommitParamsSchema = z.object( - {} + { + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + commit_sha: z.string().describe('The SHA of the commit.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type ReposListPullRequestsAssociatedWithCommitParams = z.infer< typeof ReposListPullRequestsAssociatedWithCommitParamsSchema @@ -24863,7 +32641,37 @@ export namespace github { typeof ReposListPullRequestsAssociatedWithCommitResponseSchema > - export const ReposGetCommitParamsSchema = z.object({}) + export const ReposGetCommitParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ReposGetCommitParams = z.infer export const ReposGetCommitResponseSchema = CommitSchema @@ -24872,12 +32680,49 @@ export namespace github { > export const ChecksListForRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ), + check_name: z + .string() + .describe('Returns check runs with the specified `name`.') + .optional(), + status: z + .enum(['queued', 'in_progress', 'completed']) + .describe('Returns check runs with the specified `status`.') + .optional(), filter: z .enum(['latest', 'all']) .describe( 'Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.' ) .default('latest'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), app_id: z.number().int().optional() }) export type ChecksListForRefParams = z.infer< @@ -24893,11 +32738,44 @@ export namespace github { > export const ChecksListSuitesForRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ), app_id: z .number() .int() .describe('Filters check suites by GitHub App `id`.') - .optional() + .optional(), + check_name: z + .string() + .describe('Returns check runs with the specified `name`.') + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ChecksListSuitesForRefParams = z.infer< typeof ChecksListSuitesForRefParamsSchema @@ -24911,7 +32789,37 @@ export namespace github { typeof ChecksListSuitesForRefResponseSchema > - export const ReposGetCombinedStatusForRefParamsSchema = z.object({}) + export const ReposGetCombinedStatusForRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposGetCombinedStatusForRefParams = z.infer< typeof ReposGetCombinedStatusForRefParamsSchema > @@ -24922,7 +32830,37 @@ export namespace github { typeof ReposGetCombinedStatusForRefResponseSchema > - export const ReposListCommitStatusesForRefParamsSchema = z.object({}) + export const ReposListCommitStatusesForRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListCommitStatusesForRefParams = z.infer< typeof ReposListCommitStatusesForRefParamsSchema > @@ -24933,7 +32871,18 @@ export namespace github { typeof ReposListCommitStatusesForRefResponseSchema > - export const ReposGetCommunityProfileMetricsParamsSchema = z.object({}) + export const ReposGetCommunityProfileMetricsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetCommunityProfileMetricsParams = z.infer< typeof ReposGetCommunityProfileMetricsParamsSchema > @@ -24945,11 +32894,35 @@ export namespace github { > export const ReposCompareCommitsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), basehead: z .string() .describe( 'The base branch and head branch to compare. This parameter expects the format `BASE...HEAD`. Both must be branch names in `repo`. To compare with a branch that exists in a different repository in the same network as `repo`, the `basehead` parameter expects the format `USERNAME:BASE...USERNAME:HEAD`.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) }) export type ReposCompareCommitsParams = z.infer< typeof ReposCompareCommitsParamsSchema @@ -24961,6 +32934,16 @@ export namespace github { > export const ReposGetContentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), path: z.string().describe('path parameter'), ref: z .string() @@ -25034,6 +33017,16 @@ export namespace github { 'The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.' ) .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), path: z.string().describe('path parameter') }) export type ReposCreateOrUpdateFileContentsParams = z.infer< @@ -25078,6 +33071,16 @@ export namespace github { }) .describe('object containing information about the author.') .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), path: z.string().describe('path parameter') }) export type ReposDeleteFileParams = z.infer< @@ -25090,12 +33093,36 @@ export namespace github { > export const ReposListContributorsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), anon: z .string() .describe( 'Set to `1` or `true` to include anonymous contributors in results.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListContributorsParams = z.infer< typeof ReposListContributorsParamsSchema @@ -25107,6 +33134,68 @@ export namespace github { > export const DependabotListAlertsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + state: z + .string() + .describe( + 'A comma-separated list of states. If specified, only alerts with these states will be returned.\n\nCan be: `auto_dismissed`, `dismissed`, `fixed`, `open`' + ) + .optional(), + severity: z + .string() + .describe( + 'A comma-separated list of severities. If specified, only alerts with these severities will be returned.\n\nCan be: `low`, `medium`, `high`, `critical`' + ) + .optional(), + ecosystem: z + .string() + .describe( + 'A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.\n\nCan be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`' + ) + .optional(), + package: z + .string() + .describe( + 'A comma-separated list of package names. If specified, only alerts for these packages will be returned.' + ) + .optional(), + manifest: z + .string() + .describe( + 'A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.' + ) + .optional(), + epss_percentage: z + .string() + .describe( + 'CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:\n- An exact number (`n`)\n- Comparators such as `>n`, `=n`, `<=n`\n- A range like `n..n`, where `n` is a number from 0.0 to 1.0\n\nFilters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.' + ) + .optional(), + scope: z + .enum(['development', 'runtime']) + .describe( + 'The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.' + ) + .optional(), + sort: z + .enum(['created', 'updated', 'epss_percentage']) + .describe( + "The property by which to sort the results.\n`created` means when the alert was created.\n`updated` means when the alert's state last changed.\n`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage." + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), page: z .number() .int() @@ -25120,7 +33209,37 @@ export namespace github { .describe( 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) - .default(30) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + first: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the first matching result.\nThis parameter must not be used in combination with `last`.\nInstead, use `per_page` in combination with `after` to fetch the first page of results.' + ) + .default(30), + last: z + .number() + .int() + .gte(1) + .lte(100) + .describe( + '**Deprecated**. The number of results per page (max 100), starting from the last matching result.\nThis parameter must not be used in combination with `first`.\nInstead, use `per_page` in combination with `before` to fetch the last page of results.' + ) + .optional() }) export type DependabotListAlertsForRepoParams = z.infer< typeof DependabotListAlertsForRepoParamsSchema @@ -25133,7 +33252,23 @@ export namespace github { typeof DependabotListAlertsForRepoResponseSchema > - export const DependabotGetAlertParamsSchema = z.object({}) + export const DependabotGetAlertParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies a Dependabot alert in its repository.\nYou can find this at the end of the URL for a Dependabot alert within GitHub,\nor in `number` fields in the response from the\n`GET /repos/{owner}/{repo}/dependabot/alerts` operation.' + ) + }) export type DependabotGetAlertParams = z.infer< typeof DependabotGetAlertParamsSchema > @@ -25165,7 +33300,22 @@ export namespace github { .string() .max(280) .describe('An optional comment associated with dismissing the alert.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies a Dependabot alert in its repository.\nYou can find this at the end of the URL for a Dependabot alert within GitHub,\nor in `number` fields in the response from the\n`GET /repos/{owner}/{repo}/dependabot/alerts` operation.' + ) }) export type DependabotUpdateAlertParams = z.infer< typeof DependabotUpdateAlertParamsSchema @@ -25176,7 +33326,32 @@ export namespace github { typeof DependabotUpdateAlertResponseSchema > - export const DependabotListRepoSecretsParamsSchema = z.object({}) + export const DependabotListRepoSecretsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type DependabotListRepoSecretsParams = z.infer< typeof DependabotListRepoSecretsParamsSchema > @@ -25189,7 +33364,18 @@ export namespace github { typeof DependabotListRepoSecretsResponseSchema > - export const DependabotGetRepoPublicKeyParamsSchema = z.object({}) + export const DependabotGetRepoPublicKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type DependabotGetRepoPublicKeyParams = z.infer< typeof DependabotGetRepoPublicKeyParamsSchema > @@ -25200,7 +33386,19 @@ export namespace github { typeof DependabotGetRepoPublicKeyResponseSchema > - export const DependabotGetRepoSecretParamsSchema = z.object({}) + export const DependabotGetRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type DependabotGetRepoSecretParams = z.infer< typeof DependabotGetRepoSecretParamsSchema > @@ -25225,7 +33423,18 @@ export namespace github { key_id: z .string() .describe('ID of the key you used to encrypt the secret.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') }) export type DependabotCreateOrUpdateRepoSecretParams = z.infer< typeof DependabotCreateOrUpdateRepoSecretParamsSchema @@ -25233,7 +33442,19 @@ export namespace github { export type DependabotCreateOrUpdateRepoSecretResponse = undefined - export const DependabotDeleteRepoSecretParamsSchema = z.object({}) + export const DependabotDeleteRepoSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type DependabotDeleteRepoSecretParams = z.infer< typeof DependabotDeleteRepoSecretParamsSchema > @@ -25241,11 +33462,27 @@ export namespace github { export type DependabotDeleteRepoSecretResponse = undefined export const DependencyGraphDiffRangeParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), basehead: z .string() .describe( 'The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`.' + ), + name: z + .string() + .describe( + 'The full path, relative to the repository root, of the dependency manifest file.' ) + .optional() }) export type DependencyGraphDiffRangeParams = z.infer< typeof DependencyGraphDiffRangeParamsSchema @@ -25257,7 +33494,18 @@ export namespace github { typeof DependencyGraphDiffRangeResponseSchema > - export const DependencyGraphExportSbomParamsSchema = z.object({}) + export const DependencyGraphExportSbomParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type DependencyGraphExportSbomParams = z.infer< typeof DependencyGraphExportSbomParamsSchema > @@ -25268,7 +33516,20 @@ export namespace github { typeof DependencyGraphExportSbomResponseSchema > - export const DependencyGraphCreateRepositorySnapshotParamsSchema = SnapshotSchema + export const DependencyGraphCreateRepositorySnapshotParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(SnapshotSchema) export type DependencyGraphCreateRepositorySnapshotParams = z.infer< typeof DependencyGraphCreateRepositorySnapshotParamsSchema > @@ -25276,6 +33537,16 @@ export namespace github { export type DependencyGraphCreateRepositorySnapshotResponse = undefined export const ReposListDeploymentsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sha: z .string() .describe('The SHA recorded at creation time.') @@ -25295,7 +33566,21 @@ export namespace github { .describe( 'The name of the environment that was deployed to (e.g., `staging` or `production`).' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListDeploymentsParams = z.infer< typeof ReposListDeploymentsParamsSchema @@ -25345,7 +33630,6 @@ export namespace github { .default('production'), description: z .string() - .nullable() .describe('Short description of the deployment.') .default(''), transient_environment: z @@ -25359,7 +33643,17 @@ export namespace github { .describe( 'Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateDeploymentParams = z.infer< typeof ReposCreateDeploymentParamsSchema @@ -25367,7 +33661,19 @@ export namespace github { export type ReposCreateDeploymentResponse = undefined - export const ReposGetDeploymentParamsSchema = z.object({}) + export const ReposGetDeploymentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + deployment_id: z.number().int().describe('deployment_id parameter') + }) export type ReposGetDeploymentParams = z.infer< typeof ReposGetDeploymentParamsSchema > @@ -25377,14 +33683,52 @@ export namespace github { typeof ReposGetDeploymentResponseSchema > - export const ReposDeleteDeploymentParamsSchema = z.object({}) + export const ReposDeleteDeploymentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + deployment_id: z.number().int().describe('deployment_id parameter') + }) export type ReposDeleteDeploymentParams = z.infer< typeof ReposDeleteDeploymentParamsSchema > export type ReposDeleteDeploymentResponse = undefined - export const ReposListDeploymentStatusesParamsSchema = z.object({}) + export const ReposListDeploymentStatusesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + deployment_id: z.number().int().describe('deployment_id parameter'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListDeploymentStatusesParams = z.infer< typeof ReposListDeploymentStatusesParamsSchema > @@ -25443,7 +33787,18 @@ export namespace github { .describe( "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`" ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + deployment_id: z.number().int().describe('deployment_id parameter') }) export type ReposCreateDeploymentStatusParams = z.infer< typeof ReposCreateDeploymentStatusParamsSchema @@ -25452,6 +33807,17 @@ export namespace github { export type ReposCreateDeploymentStatusResponse = undefined export const ReposGetDeploymentStatusParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + deployment_id: z.number().int().describe('deployment_id parameter'), status_id: z.number().int() }) export type ReposGetDeploymentStatusParams = z.infer< @@ -25476,7 +33842,17 @@ export namespace github { .describe( 'JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateDispatchEventParams = z.infer< typeof ReposCreateDispatchEventParamsSchema @@ -25484,7 +33860,32 @@ export namespace github { export type ReposCreateDispatchEventResponse = undefined - export const ReposGetAllEnvironmentsParamsSchema = z.object({}) + export const ReposGetAllEnvironmentsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposGetAllEnvironmentsParams = z.infer< typeof ReposGetAllEnvironmentsParamsSchema > @@ -25501,7 +33902,23 @@ export namespace github { typeof ReposGetAllEnvironmentsResponseSchema > - export const ReposGetEnvironmentParamsSchema = z.object({}) + export const ReposGetEnvironmentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + }) export type ReposGetEnvironmentParams = z.infer< typeof ReposGetEnvironmentParamsSchema > @@ -25527,12 +33944,26 @@ export namespace github { .optional() }) ) - .nullable() .describe( 'The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.' ) .optional(), - deployment_branch_policy: DeploymentBranchPolicySettingsSchema.optional() + deployment_branch_policy: DeploymentBranchPolicySettingsSchema.optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) }) export type ReposCreateOrUpdateEnvironmentParams = z.infer< typeof ReposCreateOrUpdateEnvironmentParamsSchema @@ -25543,14 +33974,60 @@ export namespace github { typeof ReposCreateOrUpdateEnvironmentResponseSchema > - export const ReposDeleteAnEnvironmentParamsSchema = z.object({}) + export const ReposDeleteAnEnvironmentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + }) export type ReposDeleteAnEnvironmentParams = z.infer< typeof ReposDeleteAnEnvironmentParamsSchema > export type ReposDeleteAnEnvironmentResponse = undefined - export const ReposListDeploymentBranchPoliciesParamsSchema = z.object({}) + export const ReposListDeploymentBranchPoliciesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListDeploymentBranchPoliciesParams = z.infer< typeof ReposListDeploymentBranchPoliciesParamsSchema > @@ -25568,7 +34045,25 @@ export namespace github { typeof ReposListDeploymentBranchPoliciesResponseSchema > - export const ReposCreateDeploymentBranchPolicyParamsSchema = DeploymentBranchPolicyNamePatternWithTypeSchema + export const ReposCreateDeploymentBranchPolicyParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + }) + .merge(DeploymentBranchPolicyNamePatternWithTypeSchema) export type ReposCreateDeploymentBranchPolicyParams = z.infer< typeof ReposCreateDeploymentBranchPolicyParamsSchema > @@ -25579,7 +34074,27 @@ export namespace github { typeof ReposCreateDeploymentBranchPolicyResponseSchema > - export const ReposGetDeploymentBranchPolicyParamsSchema = z.object({}) + export const ReposGetDeploymentBranchPolicyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + branch_policy_id: z + .number() + .int() + .describe('The unique identifier of the branch policy.') + }) export type ReposGetDeploymentBranchPolicyParams = z.infer< typeof ReposGetDeploymentBranchPolicyParamsSchema > @@ -25590,7 +34105,29 @@ export namespace github { typeof ReposGetDeploymentBranchPolicyResponseSchema > - export const ReposUpdateDeploymentBranchPolicyParamsSchema = DeploymentBranchPolicyNamePatternSchema + export const ReposUpdateDeploymentBranchPolicyParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + branch_policy_id: z + .number() + .int() + .describe('The unique identifier of the branch policy.') + }) + .merge(DeploymentBranchPolicyNamePatternSchema) export type ReposUpdateDeploymentBranchPolicyParams = z.infer< typeof ReposUpdateDeploymentBranchPolicyParamsSchema > @@ -25601,14 +34138,50 @@ export namespace github { typeof ReposUpdateDeploymentBranchPolicyResponseSchema > - export const ReposDeleteDeploymentBranchPolicyParamsSchema = z.object({}) + export const ReposDeleteDeploymentBranchPolicyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + branch_policy_id: z + .number() + .int() + .describe('The unique identifier of the branch policy.') + }) export type ReposDeleteDeploymentBranchPolicyParams = z.infer< typeof ReposDeleteDeploymentBranchPolicyParamsSchema > export type ReposDeleteDeploymentBranchPolicyResponse = undefined - export const ReposGetAllDeploymentProtectionRulesParamsSchema = z.object({}) + export const ReposGetAllDeploymentProtectionRulesParamsSchema = z.object({ + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ) + }) export type ReposGetAllDeploymentProtectionRulesParams = z.infer< typeof ReposGetAllDeploymentProtectionRulesParamsSchema > @@ -25636,7 +34209,22 @@ export namespace github { .describe( 'The ID of the custom app that will be enabled on the environment.' ) - .optional() + .optional(), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ) }) export type ReposCreateDeploymentProtectionRuleParams = z.infer< typeof ReposCreateDeploymentProtectionRuleParamsSchema @@ -25645,7 +34233,37 @@ export namespace github { export type ReposCreateDeploymentProtectionRuleResponse = undefined export const ReposListCustomDeploymentRuleIntegrationsParamsSchema = z.object( - {} + { + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + } ) export type ReposListCustomDeploymentRuleIntegrationsParams = z.infer< typeof ReposListCustomDeploymentRuleIntegrationsParamsSchema @@ -25668,7 +34286,27 @@ export namespace github { typeof ReposListCustomDeploymentRuleIntegrationsResponseSchema > - export const ReposGetCustomDeploymentProtectionRuleParamsSchema = z.object({}) + export const ReposGetCustomDeploymentProtectionRuleParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + protection_rule_id: z + .number() + .int() + .describe('The unique identifier of the protection rule.') + }) export type ReposGetCustomDeploymentProtectionRuleParams = z.infer< typeof ReposGetCustomDeploymentProtectionRuleParamsSchema > @@ -25679,14 +34317,64 @@ export namespace github { typeof ReposGetCustomDeploymentProtectionRuleResponseSchema > - export const ReposDisableDeploymentProtectionRuleParamsSchema = z.object({}) + export const ReposDisableDeploymentProtectionRuleParamsSchema = z.object({ + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + protection_rule_id: z + .number() + .int() + .describe('The unique identifier of the protection rule.') + }) export type ReposDisableDeploymentProtectionRuleParams = z.infer< typeof ReposDisableDeploymentProtectionRuleParamsSchema > export type ReposDisableDeploymentProtectionRuleResponse = undefined - export const ActionsListEnvironmentSecretsParamsSchema = z.object({}) + export const ActionsListEnvironmentSecretsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListEnvironmentSecretsParams = z.infer< typeof ActionsListEnvironmentSecretsParamsSchema > @@ -25699,7 +34387,23 @@ export namespace github { typeof ActionsListEnvironmentSecretsResponseSchema > - export const ActionsGetEnvironmentPublicKeyParamsSchema = z.object({}) + export const ActionsGetEnvironmentPublicKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + }) export type ActionsGetEnvironmentPublicKeyParams = z.infer< typeof ActionsGetEnvironmentPublicKeyParamsSchema > @@ -25710,7 +34414,24 @@ export namespace github { typeof ActionsGetEnvironmentPublicKeyResponseSchema > - export const ActionsGetEnvironmentSecretParamsSchema = z.object({}) + export const ActionsGetEnvironmentSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsGetEnvironmentSecretParams = z.infer< typeof ActionsGetEnvironmentSecretParamsSchema > @@ -25731,7 +34452,25 @@ export namespace github { .describe( 'Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.' ), - key_id: z.string().describe('ID of the key you used to encrypt the secret.') + key_id: z + .string() + .describe('ID of the key you used to encrypt the secret.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + secret_name: z.string().describe('The name of the secret.') }) export type ActionsCreateOrUpdateEnvironmentSecretParams = z.infer< typeof ActionsCreateOrUpdateEnvironmentSecretParamsSchema @@ -25739,14 +34478,61 @@ export namespace github { export type ActionsCreateOrUpdateEnvironmentSecretResponse = undefined - export const ActionsDeleteEnvironmentSecretParamsSchema = z.object({}) + export const ActionsDeleteEnvironmentSecretParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + secret_name: z.string().describe('The name of the secret.') + }) export type ActionsDeleteEnvironmentSecretParams = z.infer< typeof ActionsDeleteEnvironmentSecretParamsSchema > export type ActionsDeleteEnvironmentSecretResponse = undefined - export const ActionsListEnvironmentVariablesParamsSchema = z.object({}) + export const ActionsListEnvironmentVariablesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(10), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActionsListEnvironmentVariablesParams = z.infer< typeof ActionsListEnvironmentVariablesParamsSchema > @@ -25761,7 +34547,22 @@ export namespace github { export const ActionsCreateEnvironmentVariableParamsSchema = z.object({ name: z.string().describe('The name of the variable.'), - value: z.string().describe('The value of the variable.') + value: z.string().describe('The value of the variable.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) }) export type ActionsCreateEnvironmentVariableParams = z.infer< typeof ActionsCreateEnvironmentVariableParamsSchema @@ -25769,7 +34570,24 @@ export namespace github { export type ActionsCreateEnvironmentVariableResponse = undefined - export const ActionsGetEnvironmentVariableParamsSchema = z.object({}) + export const ActionsGetEnvironmentVariableParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ), + name: z.string().describe('The name of the variable.') + }) export type ActionsGetEnvironmentVariableParams = z.infer< typeof ActionsGetEnvironmentVariableParamsSchema > @@ -25780,7 +34598,24 @@ export namespace github { typeof ActionsGetEnvironmentVariableResponseSchema > - export const ActionsDeleteEnvironmentVariableParamsSchema = z.object({}) + export const ActionsDeleteEnvironmentVariableParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string().describe('The name of the variable.'), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) + }) export type ActionsDeleteEnvironmentVariableParams = z.infer< typeof ActionsDeleteEnvironmentVariableParamsSchema > @@ -25788,8 +34623,23 @@ export namespace github { export type ActionsDeleteEnvironmentVariableResponse = undefined export const ActionsUpdateEnvironmentVariableParamsSchema = z.object({ - name: z.string().describe('The name of the variable.').optional(), - value: z.string().describe('The value of the variable.').optional() + name: z.string().describe('The name of the variable.'), + value: z.string().describe('The value of the variable.').optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + environment_name: z + .string() + .describe( + 'The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.' + ) }) export type ActionsUpdateEnvironmentVariableParams = z.infer< typeof ActionsUpdateEnvironmentVariableParamsSchema @@ -25797,7 +34647,32 @@ export namespace github { export type ActionsUpdateEnvironmentVariableResponse = undefined - export const ActivityListRepoEventsParamsSchema = z.object({}) + export const ActivityListRepoEventsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListRepoEventsParams = z.infer< typeof ActivityListRepoEventsParamsSchema > @@ -25808,10 +34683,34 @@ export namespace github { > export const ReposListForksParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sort: z .enum(['newest', 'oldest', 'stargazers', 'watchers']) .describe('The sort order. `stargazers` will sort by star count.') - .default('newest') + .default('newest'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListForksParams = z.infer @@ -25838,7 +34737,17 @@ export namespace github { .describe( 'When forking from an existing repository, fork with only the default branch.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateForkParams = z.infer< typeof ReposCreateForkParamsSchema @@ -25853,13 +34762,35 @@ export namespace github { .describe( 'The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.' ) - .default('utf-8') + .default('utf-8'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type GitCreateBlobParams = z.infer export type GitCreateBlobResponse = undefined - export const GitGetBlobParamsSchema = z.object({ file_sha: z.string() }) + export const GitGetBlobParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + file_sha: z.string() + }) export type GitGetBlobParams = z.infer export const GitGetBlobResponseSchema = BlobSchema @@ -25923,7 +34854,17 @@ export namespace github { .describe( 'The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type GitCreateCommitParams = z.infer< typeof GitCreateCommitParamsSchema @@ -25931,13 +34872,41 @@ export namespace github { export type GitCreateCommitResponse = undefined - export const GitGetCommitParamsSchema = z.object({}) + export const GitGetCommitParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + commit_sha: z.string().describe('The SHA of the commit.') + }) export type GitGetCommitParams = z.infer export const GitGetCommitResponseSchema = GitCommitSchema export type GitGetCommitResponse = z.infer - export const GitListMatchingRefsParamsSchema = z.object({}) + export const GitListMatchingRefsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) + }) export type GitListMatchingRefsParams = z.infer< typeof GitListMatchingRefsParamsSchema > @@ -25947,7 +34916,23 @@ export namespace github { typeof GitListMatchingRefsResponseSchema > - export const GitGetRefParamsSchema = z.object({}) + export const GitGetRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) + }) export type GitGetRefParams = z.infer export const GitGetRefResponseSchema = GitRefSchema @@ -25959,13 +34944,39 @@ export namespace github { .describe( "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." ), - sha: z.string().describe('The SHA1 value for this reference.') + sha: z.string().describe('The SHA1 value for this reference.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type GitCreateRefParams = z.infer export type GitCreateRefResponse = undefined - export const GitDeleteRefParamsSchema = z.object({}) + export const GitDeleteRefParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) + }) export type GitDeleteRefParams = z.infer export type GitDeleteRefResponse = undefined @@ -25977,7 +34988,22 @@ export namespace github { .describe( "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work." ) - .default(false) + .default(false), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.' + ) }) export type GitUpdateRefParams = z.infer @@ -26012,13 +35038,35 @@ export namespace github { .describe( 'An object with information about the individual creating the tag.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type GitCreateTagParams = z.infer export type GitCreateTagResponse = undefined - export const GitGetTagParamsSchema = z.object({ tag_sha: z.string() }) + export const GitGetTagParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + tag_sha: z.string() + }) export type GitGetTagParams = z.infer export const GitGetTagResponseSchema = GitTagSchema @@ -26044,7 +35092,6 @@ export namespace github { .optional(), sha: z .string() - .nullable() .describe( 'The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.' ) @@ -26065,13 +35112,33 @@ export namespace github { .describe( "The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit." ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type GitCreateTreeParams = z.infer export type GitCreateTreeResponse = undefined export const GitGetTreeParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), tree_sha: z .string() .describe('The SHA1 value or ref (branch or tag) name of the tree.'), @@ -26087,7 +35154,32 @@ export namespace github { export const GitGetTreeResponseSchema = GitTreeSchema export type GitGetTreeResponse = z.infer - export const ReposListWebhooksParamsSchema = z.object({}) + export const ReposListWebhooksParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListWebhooksParams = z.infer< typeof ReposListWebhooksParamsSchema > @@ -26124,7 +35216,17 @@ export namespace github { .describe( 'Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.' ) - .default(true) + .default(true), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateWebhookParams = z.infer< typeof ReposCreateWebhookParamsSchema @@ -26132,7 +35234,24 @@ export namespace github { export type ReposCreateWebhookResponse = undefined - export const ReposGetWebhookParamsSchema = z.object({}) + export const ReposGetWebhookParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type ReposGetWebhookParams = z.infer< typeof ReposGetWebhookParamsSchema > @@ -26142,7 +35261,24 @@ export namespace github { typeof ReposGetWebhookResponseSchema > - export const ReposDeleteWebhookParamsSchema = z.object({}) + export const ReposDeleteWebhookParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type ReposDeleteWebhookParams = z.infer< typeof ReposDeleteWebhookParamsSchema > @@ -26174,7 +35310,23 @@ export namespace github { .describe( 'Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.' ) - .default(true) + .default(true), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) }) export type ReposUpdateWebhookParams = z.infer< typeof ReposUpdateWebhookParamsSchema @@ -26185,7 +35337,24 @@ export namespace github { typeof ReposUpdateWebhookResponseSchema > - export const ReposGetWebhookConfigForRepoParamsSchema = z.object({}) + export const ReposGetWebhookConfigForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type ReposGetWebhookConfigForRepoParams = z.infer< typeof ReposGetWebhookConfigForRepoParamsSchema > @@ -26199,7 +35368,23 @@ export namespace github { url: WebhookConfigUrlSchema.optional(), content_type: WebhookConfigContentTypeSchema.optional(), secret: WebhookConfigSecretSchema.optional(), - insecure_ssl: WebhookConfigInsecureSslSchema.optional() + insecure_ssl: WebhookConfigInsecureSslSchema.optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) }) export type ReposUpdateWebhookConfigForRepoParams = z.infer< typeof ReposUpdateWebhookConfigForRepoParamsSchema @@ -26211,7 +35396,37 @@ export namespace github { typeof ReposUpdateWebhookConfigForRepoResponseSchema > - export const ReposListWebhookDeliveriesParamsSchema = z.object({}) + export const ReposListWebhookDeliveriesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + cursor: z + .string() + .describe( + 'Used for pagination: the starting delivery from which the page of deliveries is fetched. Refer to the `link` header for the next and previous page cursors.' + ) + .optional() + }) export type ReposListWebhookDeliveriesParams = z.infer< typeof ReposListWebhookDeliveriesParamsSchema > @@ -26223,7 +35438,25 @@ export namespace github { typeof ReposListWebhookDeliveriesResponseSchema > - export const ReposGetWebhookDeliveryParamsSchema = z.object({}) + export const ReposGetWebhookDeliveryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + delivery_id: z.number().int() + }) export type ReposGetWebhookDeliveryParams = z.infer< typeof ReposGetWebhookDeliveryParamsSchema > @@ -26233,28 +35466,91 @@ export namespace github { typeof ReposGetWebhookDeliveryResponseSchema > - export const ReposRedeliverWebhookDeliveryParamsSchema = z.object({}) + export const ReposRedeliverWebhookDeliveryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ), + delivery_id: z.number().int() + }) export type ReposRedeliverWebhookDeliveryParams = z.infer< typeof ReposRedeliverWebhookDeliveryParamsSchema > export type ReposRedeliverWebhookDeliveryResponse = undefined - export const ReposPingWebhookParamsSchema = z.object({}) + export const ReposPingWebhookParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type ReposPingWebhookParams = z.infer< typeof ReposPingWebhookParamsSchema > export type ReposPingWebhookResponse = undefined - export const ReposTestPushWebhookParamsSchema = z.object({}) + export const ReposTestPushWebhookParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + hook_id: z + .number() + .int() + .describe( + 'The unique identifier of the hook. You can find this value in the `X-GitHub-Hook-ID` header of a webhook delivery.' + ) + }) export type ReposTestPushWebhookParams = z.infer< typeof ReposTestPushWebhookParamsSchema > export type ReposTestPushWebhookResponse = undefined - export const MigrationsGetImportStatusParamsSchema = z.object({}) + export const MigrationsGetImportStatusParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type MigrationsGetImportStatusParams = z.infer< typeof MigrationsGetImportStatusParamsSchema > @@ -26289,7 +35585,17 @@ export namespace github { .describe( 'For a tfvc import, the name of the project that is being imported.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type MigrationsStartImportParams = z.infer< typeof MigrationsStartImportParamsSchema @@ -26297,7 +35603,18 @@ export namespace github { export type MigrationsStartImportResponse = undefined - export const MigrationsCancelImportParamsSchema = z.object({}) + export const MigrationsCancelImportParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type MigrationsCancelImportParams = z.infer< typeof MigrationsCancelImportParamsSchema > @@ -26322,7 +35639,17 @@ export namespace github { .describe( 'For a tfvc import, the name of the project that is being imported.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type MigrationsUpdateImportParams = z.infer< typeof MigrationsUpdateImportParamsSchema @@ -26333,7 +35660,23 @@ export namespace github { typeof MigrationsUpdateImportResponseSchema > - export const MigrationsGetCommitAuthorsParamsSchema = z.object({}) + export const MigrationsGetCommitAuthorsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + since: z + .number() + .int() + .describe('A user ID. Only return users with an ID greater than this ID.') + .optional() + }) export type MigrationsGetCommitAuthorsParams = z.infer< typeof MigrationsGetCommitAuthorsParamsSchema > @@ -26347,6 +35690,16 @@ export namespace github { export const MigrationsMapCommitAuthorParamsSchema = z.object({ email: z.string().describe('The new Git author email.').optional(), name: z.string().describe('The new Git author name.').optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), author_id: z.number().int() }) export type MigrationsMapCommitAuthorParams = z.infer< @@ -26358,7 +35711,18 @@ export namespace github { typeof MigrationsMapCommitAuthorResponseSchema > - export const MigrationsGetLargeFilesParamsSchema = z.object({}) + export const MigrationsGetLargeFilesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type MigrationsGetLargeFilesParams = z.infer< typeof MigrationsGetLargeFilesParamsSchema > @@ -26375,6 +35739,16 @@ export namespace github { .enum(['opt_in', 'opt_out']) .describe( 'Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type MigrationsSetLfsPreferenceParams = z.infer< @@ -26386,7 +35760,18 @@ export namespace github { typeof MigrationsSetLfsPreferenceResponseSchema > - export const AppsGetRepoInstallationParamsSchema = z.object({}) + export const AppsGetRepoInstallationParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type AppsGetRepoInstallationParams = z.infer< typeof AppsGetRepoInstallationParamsSchema > @@ -26396,7 +35781,18 @@ export namespace github { typeof AppsGetRepoInstallationResponseSchema > - export const InteractionsGetRestrictionsForRepoParamsSchema = z.object({}) + export const InteractionsGetRestrictionsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type InteractionsGetRestrictionsForRepoParams = z.infer< typeof InteractionsGetRestrictionsForRepoParamsSchema > @@ -26409,7 +35805,20 @@ export namespace github { typeof InteractionsGetRestrictionsForRepoResponseSchema > - export const InteractionsSetRestrictionsForRepoParamsSchema = InteractionLimitSchema + export const InteractionsSetRestrictionsForRepoParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(InteractionLimitSchema) export type InteractionsSetRestrictionsForRepoParams = z.infer< typeof InteractionsSetRestrictionsForRepoParamsSchema > @@ -26420,14 +35829,50 @@ export namespace github { typeof InteractionsSetRestrictionsForRepoResponseSchema > - export const InteractionsRemoveRestrictionsForRepoParamsSchema = z.object({}) + export const InteractionsRemoveRestrictionsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type InteractionsRemoveRestrictionsForRepoParams = z.infer< typeof InteractionsRemoveRestrictionsForRepoParamsSchema > export type InteractionsRemoveRestrictionsForRepoResponse = undefined - export const ReposListInvitationsParamsSchema = z.object({}) + export const ReposListInvitationsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListInvitationsParams = z.infer< typeof ReposListInvitationsParamsSchema > @@ -26439,7 +35884,22 @@ export namespace github { typeof ReposListInvitationsResponseSchema > - export const ReposDeleteInvitationParamsSchema = z.object({}) + export const ReposDeleteInvitationParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.') + }) export type ReposDeleteInvitationParams = z.infer< typeof ReposDeleteInvitationParamsSchema > @@ -26452,7 +35912,21 @@ export namespace github { .describe( 'The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.') }) export type ReposUpdateInvitationParams = z.infer< typeof ReposUpdateInvitationParamsSchema @@ -26464,6 +35938,16 @@ export namespace github { > export const IssuesListForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), milestone: z .string() .describe( @@ -26491,10 +35975,41 @@ export namespace github { .string() .describe("A user that's mentioned in the issue.") .optional(), + labels: z + .string() + .describe( + 'A list of comma separated label names. Example: `bug,ui,@high`' + ) + .optional(), sort: z .enum(['created', 'updated', 'comments']) .describe('What to sort results by.') - .default('created') + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListForRepoParams = z.infer< typeof IssuesListForRepoParamsSchema @@ -26512,7 +36027,6 @@ export namespace github { body: z.string().describe('The contents of the issue.').optional(), assignee: z .string() - .nullable() .describe( 'Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_' ) @@ -26527,7 +36041,6 @@ export namespace github { 'The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._' ) ]) - .nullable() .optional(), labels: z .array( @@ -26536,8 +36049,8 @@ export namespace github { z.object({ id: z.number().int().optional(), name: z.string().optional(), - description: z.string().nullable().optional(), - color: z.string().nullable().optional() + description: z.string().optional(), + color: z.string().optional() }) ]) ) @@ -26553,21 +36066,65 @@ export namespace github { .optional(), type: z .string() - .nullable() .describe( 'The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type IssuesCreateParams = z.infer export type IssuesCreateResponse = undefined export const IssuesListCommentsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + sort: z + .enum(['created', 'updated']) + .describe('The property to sort the results by.') + .default('created'), direction: z .enum(['asc', 'desc']) .describe('Either `asc` or `desc`. Ignored without the `sort` parameter.') - .optional() + .optional(), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListCommentsForRepoParams = z.infer< typeof IssuesListCommentsForRepoParamsSchema @@ -26579,7 +36136,22 @@ export namespace github { typeof IssuesListCommentsForRepoResponseSchema > - export const IssuesGetCommentParamsSchema = z.object({}) + export const IssuesGetCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type IssuesGetCommentParams = z.infer< typeof IssuesGetCommentParamsSchema > @@ -26589,7 +36161,22 @@ export namespace github { typeof IssuesGetCommentResponseSchema > - export const IssuesDeleteCommentParamsSchema = z.object({}) + export const IssuesDeleteCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type IssuesDeleteCommentParams = z.infer< typeof IssuesDeleteCommentParamsSchema > @@ -26597,7 +36184,21 @@ export namespace github { export type IssuesDeleteCommentResponse = undefined export const IssuesUpdateCommentParamsSchema = z.object({ - body: z.string().describe('The contents of the comment.') + body: z.string().describe('The contents of the comment.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type IssuesUpdateCommentParams = z.infer< typeof IssuesUpdateCommentParamsSchema @@ -26609,6 +36210,20 @@ export namespace github { > export const ReactionsListForIssueCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), content: z .enum([ '+1', @@ -26623,7 +36238,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForIssueCommentParams = z.infer< typeof ReactionsListForIssueCommentParamsSchema @@ -26649,7 +36278,21 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type ReactionsCreateForIssueCommentParams = z.infer< typeof ReactionsCreateForIssueCommentParamsSchema @@ -26660,14 +36303,58 @@ export namespace github { typeof ReactionsCreateForIssueCommentResponseSchema > - export const ReactionsDeleteForIssueCommentParamsSchema = z.object({}) + export const ReactionsDeleteForIssueCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForIssueCommentParams = z.infer< typeof ReactionsDeleteForIssueCommentParamsSchema > export type ReactionsDeleteForIssueCommentResponse = undefined - export const IssuesListEventsForRepoParamsSchema = z.object({}) + export const IssuesListEventsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListEventsForRepoParams = z.infer< typeof IssuesListEventsForRepoParamsSchema > @@ -26678,6 +36365,16 @@ export namespace github { > export const IssuesGetEventParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), event_id: z.number().int() }) export type IssuesGetEventParams = z.infer @@ -26687,7 +36384,22 @@ export namespace github { typeof IssuesGetEventResponseSchema > - export const IssuesGetParamsSchema = z.object({}) + export const IssuesGetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') + }) export type IssuesGetParams = z.infer export const IssuesGetResponseSchema = IssueSchema @@ -26696,17 +36408,11 @@ export namespace github { export const IssuesUpdateParamsSchema = z.object({ title: z .union([z.string(), z.number().int()]) - .nullable() .describe('The title of the issue.') .optional(), - body: z - .string() - .nullable() - .describe('The contents of the issue.') - .optional(), + body: z.string().describe('The contents of the issue.').optional(), assignee: z .string() - .nullable() .describe( 'Username to assign to this issue. **This field is closing down.**' ) @@ -26717,7 +36423,6 @@ export namespace github { .optional(), state_reason: z .enum(['completed', 'not_planned', 'reopened']) - .nullable() .describe( 'The reason for the state change. Ignored unless `state` is changed.' ) @@ -26732,7 +36437,6 @@ export namespace github { 'The `number` of the milestone to associate this issue with or use `null` to remove the current milestone. Only users with push access can set the milestone for issues. Without push access to the repository, milestone changes are silently dropped.' ) ]) - .nullable() .optional(), labels: z .array( @@ -26741,8 +36445,8 @@ export namespace github { z.object({ id: z.number().int().optional(), name: z.string().optional(), - description: z.string().nullable().optional(), - color: z.string().nullable().optional() + description: z.string().optional(), + color: z.string().optional() }) ]) ) @@ -26758,11 +36462,24 @@ export namespace github { .optional(), type: z .string() - .nullable() .describe( 'The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesUpdateParams = z.infer @@ -26775,7 +36492,21 @@ export namespace github { .describe( 'Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesAddAssigneesParams = z.infer< typeof IssuesAddAssigneesParamsSchema @@ -26789,7 +36520,21 @@ export namespace github { .describe( 'Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesRemoveAssigneesParams = z.infer< typeof IssuesRemoveAssigneesParamsSchema @@ -26801,6 +36546,20 @@ export namespace github { > export const IssuesCheckUserCanBeAssignedToIssueParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), assignee: z.string() }) export type IssuesCheckUserCanBeAssignedToIssueParams = z.infer< @@ -26809,7 +36568,43 @@ export namespace github { export type IssuesCheckUserCanBeAssignedToIssueResponse = undefined - export const IssuesListCommentsParamsSchema = z.object({}) + export const IssuesListCommentsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListCommentsParams = z.infer< typeof IssuesListCommentsParamsSchema > @@ -26820,7 +36615,21 @@ export namespace github { > export const IssuesCreateCommentParamsSchema = z.object({ - body: z.string().describe('The contents of the comment.') + body: z.string().describe('The contents of the comment.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesCreateCommentParams = z.infer< typeof IssuesCreateCommentParamsSchema @@ -26828,7 +36637,36 @@ export namespace github { export type IssuesCreateCommentResponse = undefined - export const IssuesListEventsParamsSchema = z.object({}) + export const IssuesListEventsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListEventsParams = z.infer< typeof IssuesListEventsParamsSchema > @@ -26840,7 +36678,36 @@ export namespace github { typeof IssuesListEventsResponseSchema > - export const IssuesListLabelsOnIssueParamsSchema = z.object({}) + export const IssuesListLabelsOnIssueParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListLabelsOnIssueParams = z.infer< typeof IssuesListLabelsOnIssueParamsSchema > @@ -26850,28 +36717,45 @@ export namespace github { typeof IssuesListLabelsOnIssueResponseSchema > - export const IssuesAddLabelsParamsSchema = z.object({}).and( - z.union([ - z.object({ - labels: z - .array(z.string()) - .min(1) - .describe( - 'The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."' - ) - .optional() - }), - z.array(z.string()).min(1), - z.object({ - labels: z - .array(z.object({ name: z.string() })) - .min(1) - .optional() - }), - z.array(z.object({ name: z.string() })).min(1), - z.string() - ]) - ) + export const IssuesAddLabelsParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') + }) + .and( + z.union([ + z.object({ + labels: z + .array(z.string()) + .min(1) + .describe( + 'The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."' + ) + .optional() + }), + z.array(z.string()).min(1), + z.object({ + labels: z + .array(z.object({ name: z.string() })) + .min(1) + .optional() + }), + z.array(z.object({ name: z.string() })).min(1), + z.string() + ]) + ) export type IssuesAddLabelsParams = z.infer< typeof IssuesAddLabelsParamsSchema > @@ -26881,28 +36765,45 @@ export namespace github { typeof IssuesAddLabelsResponseSchema > - export const IssuesSetLabelsParamsSchema = z.object({}).and( - z.union([ - z.object({ - labels: z - .array(z.string()) - .min(1) - .describe( - 'The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."' - ) - .optional() - }), - z.array(z.string()).min(1), - z.object({ - labels: z - .array(z.object({ name: z.string() })) - .min(1) - .optional() - }), - z.array(z.object({ name: z.string() })).min(1), - z.string() - ]) - ) + export const IssuesSetLabelsParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') + }) + .and( + z.union([ + z.object({ + labels: z + .array(z.string()) + .min(1) + .describe( + 'The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."' + ) + .optional() + }), + z.array(z.string()).min(1), + z.object({ + labels: z + .array(z.object({ name: z.string() })) + .min(1) + .optional() + }), + z.array(z.object({ name: z.string() })).min(1), + z.string() + ]) + ) export type IssuesSetLabelsParams = z.infer< typeof IssuesSetLabelsParamsSchema > @@ -26912,14 +36813,45 @@ export namespace github { typeof IssuesSetLabelsResponseSchema > - export const IssuesRemoveAllLabelsParamsSchema = z.object({}) + export const IssuesRemoveAllLabelsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') + }) export type IssuesRemoveAllLabelsParams = z.infer< typeof IssuesRemoveAllLabelsParamsSchema > export type IssuesRemoveAllLabelsResponse = undefined - export const IssuesRemoveLabelParamsSchema = z.object({ name: z.string() }) + export const IssuesRemoveLabelParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + name: z.string() + }) export type IssuesRemoveLabelParams = z.infer< typeof IssuesRemoveLabelParamsSchema > @@ -26935,18 +36867,61 @@ export namespace github { .describe( "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`" ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesLockParams = z.infer export type IssuesLockResponse = undefined - export const IssuesUnlockParamsSchema = z.object({}) + export const IssuesUnlockParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') + }) export type IssuesUnlockParams = z.infer export type IssuesUnlockResponse = undefined export const ReactionsListForIssueParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), content: z .enum([ '+1', @@ -26961,7 +36936,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForIssueParams = z.infer< typeof ReactionsListForIssueParamsSchema @@ -26986,7 +36975,21 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type ReactionsCreateForIssueParams = z.infer< typeof ReactionsCreateForIssueParamsSchema @@ -26997,7 +37000,26 @@ export namespace github { typeof ReactionsCreateForIssueResponseSchema > - export const ReactionsDeleteForIssueParamsSchema = z.object({}) + export const ReactionsDeleteForIssueParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForIssueParams = z.infer< typeof ReactionsDeleteForIssueParamsSchema > @@ -27005,7 +37027,24 @@ export namespace github { export type ReactionsDeleteForIssueResponse = undefined export const IssuesRemoveSubIssueParamsSchema = z.object({ - sub_issue_id: z.number().int().describe('The id of the sub-issue to remove') + sub_issue_id: z + .number() + .int() + .describe('The id of the sub-issue to remove'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesRemoveSubIssueParams = z.infer< typeof IssuesRemoveSubIssueParamsSchema @@ -27016,7 +37055,36 @@ export namespace github { typeof IssuesRemoveSubIssueResponseSchema > - export const IssuesListSubIssuesParamsSchema = z.object({}) + export const IssuesListSubIssuesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListSubIssuesParams = z.infer< typeof IssuesListSubIssuesParamsSchema > @@ -27038,7 +37106,21 @@ export namespace github { .describe( 'Option that, when true, instructs the operation to replace the sub-issues current parent issue' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesAddSubIssueParams = z.infer< typeof IssuesAddSubIssueParamsSchema @@ -27064,7 +37146,21 @@ export namespace github { .describe( 'The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.') }) export type IssuesReprioritizeSubIssueParams = z.infer< typeof IssuesReprioritizeSubIssueParamsSchema @@ -27075,7 +37171,36 @@ export namespace github { typeof IssuesReprioritizeSubIssueResponseSchema > - export const IssuesListEventsForTimelineParamsSchema = z.object({}) + export const IssuesListEventsForTimelineParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + issue_number: z + .number() + .int() + .describe('The number that identifies the issue.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListEventsForTimelineParams = z.infer< typeof IssuesListEventsForTimelineParamsSchema > @@ -27087,7 +37212,32 @@ export namespace github { typeof IssuesListEventsForTimelineResponseSchema > - export const ReposListDeployKeysParamsSchema = z.object({}) + export const ReposListDeployKeysParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListDeployKeysParams = z.infer< typeof ReposListDeployKeysParamsSchema > @@ -27105,7 +37255,17 @@ export namespace github { .describe( 'If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateDeployKeyParams = z.infer< typeof ReposCreateDeployKeyParamsSchema @@ -27113,7 +37273,19 @@ export namespace github { export type ReposCreateDeployKeyResponse = undefined - export const ReposGetDeployKeyParamsSchema = z.object({}) + export const ReposGetDeployKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + key_id: z.number().int().describe('The unique identifier of the key.') + }) export type ReposGetDeployKeyParams = z.infer< typeof ReposGetDeployKeyParamsSchema > @@ -27123,14 +37295,51 @@ export namespace github { typeof ReposGetDeployKeyResponseSchema > - export const ReposDeleteDeployKeyParamsSchema = z.object({}) + export const ReposDeleteDeployKeyParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + key_id: z.number().int().describe('The unique identifier of the key.') + }) export type ReposDeleteDeployKeyParams = z.infer< typeof ReposDeleteDeployKeyParamsSchema > export type ReposDeleteDeployKeyResponse = undefined - export const IssuesListLabelsForRepoParamsSchema = z.object({}) + export const IssuesListLabelsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListLabelsForRepoParams = z.infer< typeof IssuesListLabelsForRepoParamsSchema > @@ -27157,7 +37366,17 @@ export namespace github { .describe( 'A short description of the label. Must be 100 characters or fewer.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type IssuesCreateLabelParams = z.infer< typeof IssuesCreateLabelParamsSchema @@ -27165,7 +37384,19 @@ export namespace github { export type IssuesCreateLabelResponse = undefined - export const IssuesGetLabelParamsSchema = z.object({ name: z.string() }) + export const IssuesGetLabelParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string() + }) export type IssuesGetLabelParams = z.infer export const IssuesGetLabelResponseSchema = LabelSchema @@ -27173,7 +37404,19 @@ export namespace github { typeof IssuesGetLabelResponseSchema > - export const IssuesDeleteLabelParamsSchema = z.object({ name: z.string() }) + export const IssuesDeleteLabelParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + name: z.string() + }) export type IssuesDeleteLabelParams = z.infer< typeof IssuesDeleteLabelParamsSchema > @@ -27199,6 +37442,16 @@ export namespace github { 'A short description of the label. Must be 100 characters or fewer.' ) .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), name: z.string() }) export type IssuesUpdateLabelParams = z.infer< @@ -27210,7 +37463,18 @@ export namespace github { typeof IssuesUpdateLabelResponseSchema > - export const ReposListLanguagesParamsSchema = z.object({}) + export const ReposListLanguagesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposListLanguagesParams = z.infer< typeof ReposListLanguagesParamsSchema > @@ -27220,7 +37484,24 @@ export namespace github { typeof ReposListLanguagesResponseSchema > - export const LicensesGetForRepoParamsSchema = z.object({}) + export const LicensesGetForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .any() + .describe( + 'The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`.' + ) + .optional() + }) export type LicensesGetForRepoParams = z.infer< typeof LicensesGetForRepoParamsSchema > @@ -27235,6 +37516,16 @@ export namespace github { .string() .describe( 'The name of the branch which should be updated to match upstream.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type ReposMergeUpstreamParams = z.infer< @@ -27262,13 +37553,33 @@ export namespace github { .describe( 'Commit message to use for the merge commit. If omitted, a default message will be used.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposMergeParams = z.infer export type ReposMergeResponse = undefined export const IssuesListMilestonesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), state: z .enum(['open', 'closed', 'all']) .describe( @@ -27282,7 +37593,21 @@ export namespace github { direction: z .enum(['asc', 'desc']) .describe('The direction of the sort. Either `asc` or `desc`.') - .default('asc') + .default('asc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListMilestonesParams = z.infer< typeof IssuesListMilestonesParamsSchema @@ -27309,7 +37634,17 @@ export namespace github { .describe( 'The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type IssuesCreateMilestoneParams = z.infer< typeof IssuesCreateMilestoneParamsSchema @@ -27317,7 +37652,22 @@ export namespace github { export type IssuesCreateMilestoneResponse = undefined - export const IssuesGetMilestoneParamsSchema = z.object({}) + export const IssuesGetMilestoneParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + milestone_number: z + .number() + .int() + .describe('The number that identifies the milestone.') + }) export type IssuesGetMilestoneParams = z.infer< typeof IssuesGetMilestoneParamsSchema > @@ -27327,7 +37677,22 @@ export namespace github { typeof IssuesGetMilestoneResponseSchema > - export const IssuesDeleteMilestoneParamsSchema = z.object({}) + export const IssuesDeleteMilestoneParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + milestone_number: z + .number() + .int() + .describe('The number that identifies the milestone.') + }) export type IssuesDeleteMilestoneParams = z.infer< typeof IssuesDeleteMilestoneParamsSchema > @@ -27350,7 +37715,21 @@ export namespace github { .describe( 'The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + milestone_number: z + .number() + .int() + .describe('The number that identifies the milestone.') }) export type IssuesUpdateMilestoneParams = z.infer< typeof IssuesUpdateMilestoneParamsSchema @@ -27361,7 +37740,36 @@ export namespace github { typeof IssuesUpdateMilestoneResponseSchema > - export const IssuesListLabelsForMilestoneParamsSchema = z.object({}) + export const IssuesListLabelsForMilestoneParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + milestone_number: z + .number() + .int() + .describe('The number that identifies the milestone.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type IssuesListLabelsForMilestoneParams = z.infer< typeof IssuesListLabelsForMilestoneParamsSchema > @@ -27372,7 +37780,56 @@ export namespace github { > export const ActivityListRepoNotificationsForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + all: z + .boolean() + .describe('If `true`, show notifications marked as read.') + .default(false), + participating: z + .boolean() + .describe( + 'If `true`, only shows notifications in which the user is directly participating or mentioned.' + ) + .default(false), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + before: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListRepoNotificationsForAuthenticatedUserParams = z.infer< typeof ActivityListRepoNotificationsForAuthenticatedUserParamsSchema > @@ -27391,7 +37848,17 @@ export namespace github { .describe( 'Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActivityMarkRepoNotificationsAsReadParams = z.infer< typeof ActivityMarkRepoNotificationsAsReadParamsSchema @@ -27399,7 +37866,18 @@ export namespace github { export type ActivityMarkRepoNotificationsAsReadResponse = undefined - export const ReposGetPagesParamsSchema = z.object({}) + export const ReposGetPagesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetPagesParams = z.infer export const ReposGetPagesResponseSchema = PageSchema @@ -27432,7 +37910,17 @@ export namespace github { .describe( 'The source branch and directory used to publish your Pages site.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) .and(z.union([z.any(), z.any()])) export type ReposCreatePagesSiteParams = z.infer< @@ -27445,7 +37933,6 @@ export namespace github { .object({ cname: z .string() - .nullable() .describe( 'Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' ) @@ -27486,7 +37973,17 @@ export namespace github { 'Update the source for the repository. Must include the branch name and path.' ) ]) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) .and(z.union([z.any(), z.any(), z.any(), z.any(), z.any()])) export type ReposUpdateInformationAboutPagesSiteParams = z.infer< @@ -27495,14 +37992,50 @@ export namespace github { export type ReposUpdateInformationAboutPagesSiteResponse = undefined - export const ReposDeletePagesSiteParamsSchema = z.object({}) + export const ReposDeletePagesSiteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposDeletePagesSiteParams = z.infer< typeof ReposDeletePagesSiteParamsSchema > export type ReposDeletePagesSiteResponse = undefined - export const ReposListPagesBuildsParamsSchema = z.object({}) + export const ReposListPagesBuildsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListPagesBuildsParams = z.infer< typeof ReposListPagesBuildsParamsSchema > @@ -27512,14 +38045,36 @@ export namespace github { typeof ReposListPagesBuildsResponseSchema > - export const ReposRequestPagesBuildParamsSchema = z.object({}) + export const ReposRequestPagesBuildParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposRequestPagesBuildParams = z.infer< typeof ReposRequestPagesBuildParamsSchema > export type ReposRequestPagesBuildResponse = undefined - export const ReposGetLatestPagesBuildParamsSchema = z.object({}) + export const ReposGetLatestPagesBuildParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetLatestPagesBuildParams = z.infer< typeof ReposGetLatestPagesBuildParamsSchema > @@ -27530,6 +38085,16 @@ export namespace github { > export const ReposGetPagesBuildParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), build_id: z.number().int() }) export type ReposGetPagesBuildParams = z.infer< @@ -27568,6 +38133,16 @@ export namespace github { .string() .describe( 'The OIDC token issued by GitHub Actions certifying the origin of the deployment.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type ReposCreatePagesDeploymentParams = z.infer< @@ -27579,7 +38154,23 @@ export namespace github { typeof ReposCreatePagesDeploymentResponseSchema > - export const ReposGetPagesDeploymentParamsSchema = z.object({}) + export const ReposGetPagesDeploymentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pages_deployment_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the Pages deployment. You can also give the commit SHA of the deployment.' + ) + }) export type ReposGetPagesDeploymentParams = z.infer< typeof ReposGetPagesDeploymentParamsSchema > @@ -27590,14 +38181,41 @@ export namespace github { typeof ReposGetPagesDeploymentResponseSchema > - export const ReposCancelPagesDeploymentParamsSchema = z.object({}) + export const ReposCancelPagesDeploymentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pages_deployment_id: z + .union([z.number().int(), z.string()]) + .describe( + 'The ID of the Pages deployment. You can also give the commit SHA of the deployment.' + ) + }) export type ReposCancelPagesDeploymentParams = z.infer< typeof ReposCancelPagesDeploymentParamsSchema > export type ReposCancelPagesDeploymentResponse = undefined - export const ReposGetPagesHealthCheckParamsSchema = z.object({}) + export const ReposGetPagesHealthCheckParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetPagesHealthCheckParams = z.infer< typeof ReposGetPagesHealthCheckParamsSchema > @@ -27607,9 +38225,18 @@ export namespace github { typeof ReposGetPagesHealthCheckResponseSchema > - export const ReposCheckPrivateVulnerabilityReportingParamsSchema = z.object( - {} - ) + export const ReposCheckPrivateVulnerabilityReportingParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposCheckPrivateVulnerabilityReportingParams = z.infer< typeof ReposCheckPrivateVulnerabilityReportingParamsSchema > @@ -27627,9 +38254,18 @@ export namespace github { typeof ReposCheckPrivateVulnerabilityReportingResponseSchema > - export const ReposEnablePrivateVulnerabilityReportingParamsSchema = z.object( - {} - ) + export const ReposEnablePrivateVulnerabilityReportingParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposEnablePrivateVulnerabilityReportingParams = z.infer< typeof ReposEnablePrivateVulnerabilityReportingParamsSchema > @@ -27637,7 +38273,18 @@ export namespace github { export type ReposEnablePrivateVulnerabilityReportingResponse = undefined export const ReposDisablePrivateVulnerabilityReportingParamsSchema = z.object( - {} + { + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + } ) export type ReposDisablePrivateVulnerabilityReportingParams = z.infer< typeof ReposDisablePrivateVulnerabilityReportingParamsSchema @@ -27646,10 +38293,34 @@ export namespace github { export type ReposDisablePrivateVulnerabilityReportingResponse = undefined export const ProjectsListForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), state: z .enum(['open', 'closed', 'all']) .describe('Indicates the state of the projects to return.') - .default('open') + .default('open'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ProjectsListForRepoParams = z.infer< typeof ProjectsListForRepoParamsSchema @@ -27662,7 +38333,17 @@ export namespace github { export const ProjectsCreateForRepoParamsSchema = z.object({ name: z.string().describe('The name of the project.'), - body: z.string().describe('The description of the project.').optional() + body: z.string().describe('The description of the project.').optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ProjectsCreateForRepoParams = z.infer< typeof ProjectsCreateForRepoParamsSchema @@ -27670,7 +38351,18 @@ export namespace github { export type ProjectsCreateForRepoResponse = undefined - export const ReposGetCustomPropertiesValuesParamsSchema = z.object({}) + export const ReposGetCustomPropertiesValuesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetCustomPropertiesValuesParams = z.infer< typeof ReposGetCustomPropertiesValuesParamsSchema > @@ -27688,6 +38380,16 @@ export namespace github { .array(CustomPropertyValueSchema) .describe( 'A list of custom property names and associated values to apply to the repositories.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) } ) @@ -27698,6 +38400,16 @@ export namespace github { export type ReposCreateOrUpdateCustomPropertiesValuesResponse = undefined export const PullsListParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), state: z .enum(['open', 'closed', 'all']) .describe('Either `open`, `closed`, or `all` to filter by state.') @@ -27723,7 +38435,21 @@ export namespace github { .describe( 'The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type PullsListParams = z.infer @@ -27772,20 +38498,61 @@ export namespace github { .describe( 'An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type PullsCreateParams = z.infer export type PullsCreateResponse = undefined export const PullsListReviewCommentsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sort: z.enum(['created', 'updated', 'created_at']).optional(), direction: z .enum(['asc', 'desc']) .describe( 'The direction to sort results. Ignored without `sort` parameter.' ) - .optional() + .optional(), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type PullsListReviewCommentsForRepoParams = z.infer< typeof PullsListReviewCommentsForRepoParamsSchema @@ -27798,7 +38565,22 @@ export namespace github { typeof PullsListReviewCommentsForRepoResponseSchema > - export const PullsGetReviewCommentParamsSchema = z.object({}) + export const PullsGetReviewCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type PullsGetReviewCommentParams = z.infer< typeof PullsGetReviewCommentParamsSchema > @@ -27809,7 +38591,22 @@ export namespace github { typeof PullsGetReviewCommentResponseSchema > - export const PullsDeleteReviewCommentParamsSchema = z.object({}) + export const PullsDeleteReviewCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') + }) export type PullsDeleteReviewCommentParams = z.infer< typeof PullsDeleteReviewCommentParamsSchema > @@ -27817,7 +38614,21 @@ export namespace github { export type PullsDeleteReviewCommentResponse = undefined export const PullsUpdateReviewCommentParamsSchema = z.object({ - body: z.string().describe('The text of the reply to the review comment.') + body: z.string().describe('The text of the reply to the review comment.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type PullsUpdateReviewCommentParams = z.infer< typeof PullsUpdateReviewCommentParamsSchema @@ -27830,6 +38641,20 @@ export namespace github { > export const ReactionsListForPullRequestReviewCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), content: z .enum([ '+1', @@ -27844,7 +38669,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForPullRequestReviewCommentParams = z.infer< typeof ReactionsListForPullRequestReviewCommentParamsSchema @@ -27871,7 +38710,21 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type ReactionsCreateForPullRequestReviewCommentParams = z.infer< typeof ReactionsCreateForPullRequestReviewCommentParamsSchema @@ -27883,14 +38736,48 @@ export namespace github { typeof ReactionsCreateForPullRequestReviewCommentResponseSchema > - export const ReactionsDeleteForPullRequestCommentParamsSchema = z.object({}) + export const ReactionsDeleteForPullRequestCommentParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForPullRequestCommentParams = z.infer< typeof ReactionsDeleteForPullRequestCommentParamsSchema > export type ReactionsDeleteForPullRequestCommentResponse = undefined - export const PullsGetParamsSchema = z.object({}) + export const PullsGetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') + }) export type PullsGetParams = z.infer export const PullsGetResponseSchema = PullRequestSchema @@ -27914,7 +38801,21 @@ export namespace github { .describe( 'Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsUpdateParams = z.infer @@ -27972,7 +38873,21 @@ export namespace github { .describe( 'Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type CodespacesCreateWithPrForAuthenticatedUserParams = z.infer< typeof CodespacesCreateWithPrForAuthenticatedUserParamsSchema @@ -27981,12 +38896,51 @@ export namespace github { export type CodespacesCreateWithPrForAuthenticatedUserResponse = undefined export const PullsListReviewCommentsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + sort: z + .enum(['created', 'updated']) + .describe('The property to sort the results by.') + .default('created'), direction: z .enum(['asc', 'desc']) .describe( 'The direction to sort results. Ignored without `sort` parameter.' ) - .optional() + .optional(), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type PullsListReviewCommentsParams = z.infer< typeof PullsListReviewCommentsParamsSchema @@ -28052,7 +39006,21 @@ export namespace github { subject_type: z .enum(['line', 'file']) .describe('The level at which the comment is targeted.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsCreateReviewCommentParams = z.infer< typeof PullsCreateReviewCommentParamsSchema @@ -28061,7 +39029,25 @@ export namespace github { export type PullsCreateReviewCommentResponse = undefined export const PullsCreateReplyForReviewCommentParamsSchema = z.object({ - body: z.string().describe('The text of the review comment.') + body: z.string().describe('The text of the review comment.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + comment_id: z + .number() + .int() + .describe('The unique identifier of the comment.') }) export type PullsCreateReplyForReviewCommentParams = z.infer< typeof PullsCreateReplyForReviewCommentParamsSchema @@ -28069,7 +39055,36 @@ export namespace github { export type PullsCreateReplyForReviewCommentResponse = undefined - export const PullsListCommitsParamsSchema = z.object({}) + export const PullsListCommitsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type PullsListCommitsParams = z.infer< typeof PullsListCommitsParamsSchema > @@ -28079,7 +39094,36 @@ export namespace github { typeof PullsListCommitsResponseSchema > - export const PullsListFilesParamsSchema = z.object({}) + export const PullsListFilesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type PullsListFilesParams = z.infer export const PullsListFilesResponseSchema = z.array(DiffEntrySchema) @@ -28087,7 +39131,22 @@ export namespace github { typeof PullsListFilesResponseSchema > - export const PullsCheckIfMergedParamsSchema = z.object({}) + export const PullsCheckIfMergedParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') + }) export type PullsCheckIfMergedParams = z.infer< typeof PullsCheckIfMergedParamsSchema > @@ -28110,14 +39169,43 @@ export namespace github { merge_method: z .enum(['merge', 'squash', 'rebase']) .describe('The merge method to use.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsMergeParams = z.infer export const PullsMergeResponseSchema = PullRequestMergeResultSchema export type PullsMergeResponse = z.infer - export const PullsListRequestedReviewersParamsSchema = z.object({}) + export const PullsListRequestedReviewersParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') + }) export type PullsListRequestedReviewersParams = z.infer< typeof PullsListRequestedReviewersParamsSchema > @@ -28137,7 +39225,21 @@ export namespace github { team_reviewers: z .array(z.string()) .describe('An array of team `slug`s that will be requested.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) .and(z.union([z.any(), z.any()])) export type PullsRequestReviewersParams = z.infer< @@ -28153,7 +39255,21 @@ export namespace github { team_reviewers: z .array(z.string()) .describe('An array of team `slug`s that will be removed.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsRemoveRequestedReviewersParams = z.infer< typeof PullsRemoveRequestedReviewersParamsSchema @@ -28165,7 +39281,36 @@ export namespace github { typeof PullsRemoveRequestedReviewersResponseSchema > - export const PullsListReviewsParamsSchema = z.object({}) + export const PullsListReviewsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type PullsListReviewsParams = z.infer< typeof PullsListReviewsParamsSchema > @@ -28219,7 +39364,21 @@ export namespace github { .describe( 'Use the following table to specify the location, destination, and contents of the draft review comment.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsCreateReviewParams = z.infer< typeof PullsCreateReviewParamsSchema @@ -28230,7 +39389,23 @@ export namespace github { typeof PullsCreateReviewResponseSchema > - export const PullsGetReviewParamsSchema = z.object({}) + export const PullsGetReviewParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z.number().int().describe('The unique identifier of the review.') + }) export type PullsGetReviewParams = z.infer export const PullsGetReviewResponseSchema = PullRequestReviewSchema @@ -28239,7 +39414,22 @@ export namespace github { > export const PullsUpdateReviewParamsSchema = z.object({ - body: z.string().describe('The body text of the pull request review.') + body: z.string().describe('The body text of the pull request review.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z.number().int().describe('The unique identifier of the review.') }) export type PullsUpdateReviewParams = z.infer< typeof PullsUpdateReviewParamsSchema @@ -28250,7 +39440,23 @@ export namespace github { typeof PullsUpdateReviewResponseSchema > - export const PullsDeletePendingReviewParamsSchema = z.object({}) + export const PullsDeletePendingReviewParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z.number().int().describe('The unique identifier of the review.') + }) export type PullsDeletePendingReviewParams = z.infer< typeof PullsDeletePendingReviewParamsSchema > @@ -28260,7 +39466,40 @@ export namespace github { typeof PullsDeletePendingReviewResponseSchema > - export const PullsListCommentsForReviewParamsSchema = z.object({}) + export const PullsListCommentsForReviewParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z + .number() + .int() + .describe('The unique identifier of the review.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type PullsListCommentsForReviewParams = z.infer< typeof PullsListCommentsForReviewParamsSchema > @@ -28275,7 +39514,22 @@ export namespace github { message: z .string() .describe('The message for the pull request review dismissal'), - event: z.literal('DISMISS').optional() + event: z.literal('DISMISS').optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z.number().int().describe('The unique identifier of the review.') }) export type PullsDismissReviewParams = z.infer< typeof PullsDismissReviewParamsSchema @@ -28295,7 +39549,22 @@ export namespace github { .enum(['APPROVE', 'REQUEST_CHANGES', 'COMMENT']) .describe( 'The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.'), + review_id: z.number().int().describe('The unique identifier of the review.') }) export type PullsSubmitReviewParams = z.infer< typeof PullsSubmitReviewParamsSchema @@ -28312,7 +39581,21 @@ export namespace github { .describe( "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref." ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + pull_number: z + .number() + .int() + .describe('The number that identifies the pull request.') }) export type PullsUpdateBranchParams = z.infer< typeof PullsUpdateBranchParamsSchema @@ -28321,6 +39604,16 @@ export namespace github { export type PullsUpdateBranchResponse = undefined export const ReposGetReadmeParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z .string() .describe( @@ -28336,6 +39629,16 @@ export namespace github { > export const ReposGetReadmeInDirectoryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), dir: z.string().describe('The alternate path to look for a README file'), ref: z .string() @@ -28353,7 +39656,32 @@ export namespace github { typeof ReposGetReadmeInDirectoryResponseSchema > - export const ReposListReleasesParamsSchema = z.object({}) + export const ReposListReleasesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListReleasesParams = z.infer< typeof ReposListReleasesParamsSchema > @@ -28405,7 +39733,17 @@ export namespace github { .describe( 'Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.' ) - .default('true') + .default('true'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateReleaseParams = z.infer< typeof ReposCreateReleaseParamsSchema @@ -28413,7 +39751,19 @@ export namespace github { export type ReposCreateReleaseResponse = undefined - export const ReposGetReleaseAssetParamsSchema = z.object({}) + export const ReposGetReleaseAssetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + asset_id: z.number().int().describe('The unique identifier of the asset.') + }) export type ReposGetReleaseAssetParams = z.infer< typeof ReposGetReleaseAssetParamsSchema > @@ -28423,7 +39773,19 @@ export namespace github { typeof ReposGetReleaseAssetResponseSchema > - export const ReposDeleteReleaseAssetParamsSchema = z.object({}) + export const ReposDeleteReleaseAssetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + asset_id: z.number().int().describe('The unique identifier of the asset.') + }) export type ReposDeleteReleaseAssetParams = z.infer< typeof ReposDeleteReleaseAssetParamsSchema > @@ -28438,7 +39800,18 @@ export namespace github { 'An alternate short description of the asset. Used in place of the filename.' ) .optional(), - state: z.string().optional() + state: z.string().optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + asset_id: z.number().int().describe('The unique identifier of the asset.') }) export type ReposUpdateReleaseAssetParams = z.infer< typeof ReposUpdateReleaseAssetParamsSchema @@ -28472,7 +39845,17 @@ export namespace github { .describe( "Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used." ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposGenerateReleaseNotesParams = z.infer< typeof ReposGenerateReleaseNotesParamsSchema @@ -28484,7 +39867,18 @@ export namespace github { typeof ReposGenerateReleaseNotesResponseSchema > - export const ReposGetLatestReleaseParamsSchema = z.object({}) + export const ReposGetLatestReleaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetLatestReleaseParams = z.infer< typeof ReposGetLatestReleaseParamsSchema > @@ -28495,6 +39889,16 @@ export namespace github { > export const ReposGetReleaseByTagParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), tag: z.string().describe('tag parameter') }) export type ReposGetReleaseByTagParams = z.infer< @@ -28506,7 +39910,22 @@ export namespace github { typeof ReposGetReleaseByTagResponseSchema > - export const ReposGetReleaseParamsSchema = z.object({}) + export const ReposGetReleaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.') + }) export type ReposGetReleaseParams = z.infer< typeof ReposGetReleaseParamsSchema > @@ -28516,7 +39935,22 @@ export namespace github { typeof ReposGetReleaseResponseSchema > - export const ReposDeleteReleaseParamsSchema = z.object({}) + export const ReposDeleteReleaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.') + }) export type ReposDeleteReleaseParams = z.infer< typeof ReposDeleteReleaseParamsSchema > @@ -28559,7 +39993,21 @@ export namespace github { .describe( 'If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.') }) export type ReposUpdateReleaseParams = z.infer< typeof ReposUpdateReleaseParamsSchema @@ -28570,7 +40018,36 @@ export namespace github { typeof ReposUpdateReleaseResponseSchema > - export const ReposListReleaseAssetsParamsSchema = z.object({}) + export const ReposListReleaseAssetsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListReleaseAssetsParams = z.infer< typeof ReposListReleaseAssetsParamsSchema > @@ -28582,6 +40059,20 @@ export namespace github { > export const ReposUploadReleaseAssetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.'), name: z.string(), label: z.string().optional() }) @@ -28592,12 +40083,40 @@ export namespace github { export type ReposUploadReleaseAssetResponse = undefined export const ReactionsListForReleaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.'), content: z .enum(['+1', 'laugh', 'heart', 'hooray', 'rocket', 'eyes']) .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForReleaseParams = z.infer< typeof ReactionsListForReleaseParamsSchema @@ -28613,7 +40132,21 @@ export namespace github { .enum(['+1', 'laugh', 'heart', 'hooray', 'rocket', 'eyes']) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release.' - ) + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.') }) export type ReactionsCreateForReleaseParams = z.infer< typeof ReactionsCreateForReleaseParamsSchema @@ -28624,14 +40157,63 @@ export namespace github { typeof ReactionsCreateForReleaseResponseSchema > - export const ReactionsDeleteForReleaseParamsSchema = z.object({}) + export const ReactionsDeleteForReleaseParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + release_id: z + .number() + .int() + .describe('The unique identifier of the release.'), + reaction_id: z + .number() + .int() + .describe('The unique identifier of the reaction.') + }) export type ReactionsDeleteForReleaseParams = z.infer< typeof ReactionsDeleteForReleaseParamsSchema > export type ReactionsDeleteForReleaseResponse = undefined - export const ReposGetBranchRulesParamsSchema = z.object({}) + export const ReposGetBranchRulesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + branch: z + .string() + .describe( + 'The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql).' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposGetBranchRulesParams = z.infer< typeof ReposGetBranchRulesParamsSchema > @@ -28644,12 +40226,42 @@ export namespace github { > export const ReposGetRepoRulesetsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), includes_parents: z .boolean() .describe( 'Include rulesets configured at higher levels that apply to this repository' ) - .default(true) + .default(true), + targets: z + .string() + .describe( + 'A comma-separated list of rule targets to filter by.\nIf provided, only rulesets that apply to the specified targets will be returned.\nFor example, `branch,tag,push`.\n' + ) + .optional() }) export type ReposGetRepoRulesetsParams = z.infer< typeof ReposGetRepoRulesetsParamsSchema @@ -28677,7 +40289,17 @@ export namespace github { rules: z .array(RepositoryRuleSchema) .describe('An array of rules within the ruleset.') - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposCreateRepoRulesetParams = z.infer< typeof ReposCreateRepoRulesetParamsSchema @@ -28685,7 +40307,56 @@ export namespace github { export type ReposCreateRepoRulesetResponse = undefined - export const ReposGetRepoRuleSuitesParamsSchema = z.object({}) + export const ReposGetRepoRuleSuitesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ref: z + .string() + .describe( + 'The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.' + ) + .optional(), + time_period: z + .enum(['hour', 'day', 'week', 'month']) + .describe( + 'The time period to filter by.\n\nFor example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours).' + ) + .default('day'), + actor_name: z + .string() + .describe( + 'The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned.' + ) + .optional(), + rule_suite_result: z + .enum(['pass', 'fail', 'bypass', 'all']) + .describe( + 'The rule results to filter on. When specified, only suites with this result will be returned.' + ) + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposGetRepoRuleSuitesParams = z.infer< typeof ReposGetRepoRuleSuitesParamsSchema > @@ -28695,7 +40366,24 @@ export namespace github { typeof ReposGetRepoRuleSuitesResponseSchema > - export const ReposGetRepoRuleSuiteParamsSchema = z.object({}) + export const ReposGetRepoRuleSuiteParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + rule_suite_id: z + .number() + .int() + .describe( + 'The unique identifier of the rule suite result.\nTo get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites)\nfor repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites)\nfor organizations.' + ) + }) export type ReposGetRepoRuleSuiteParams = z.infer< typeof ReposGetRepoRuleSuiteParamsSchema > @@ -28706,6 +40394,16 @@ export namespace github { > export const ReposGetRepoRulesetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ruleset_id: z.number().int().describe('The ID of the ruleset.'), includes_parents: z .boolean() @@ -28739,6 +40437,16 @@ export namespace github { .array(RepositoryRuleSchema) .describe('An array of rules within the ruleset.') .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ruleset_id: z.number().int().describe('The ID of the ruleset.') }) export type ReposUpdateRepoRulesetParams = z.infer< @@ -28751,6 +40459,16 @@ export namespace github { > export const ReposDeleteRepoRulesetParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ruleset_id: z.number().int().describe('The ID of the ruleset.') }) export type ReposDeleteRepoRulesetParams = z.infer< @@ -28760,7 +40478,31 @@ export namespace github { export type ReposDeleteRepoRulesetResponse = undefined export const ReposGetRepoRulesetHistoryParamsSchema = z.object({ - ruleset_id: z.number().int().describe('The ID of the ruleset.') + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ruleset_id: z.number().int().describe('The ID of the ruleset.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposGetRepoRulesetHistoryParams = z.infer< typeof ReposGetRepoRulesetHistoryParamsSchema @@ -28773,6 +40515,16 @@ export namespace github { > export const ReposGetRepoRulesetVersionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ruleset_id: z.number().int().describe('The ID of the ruleset.'), version_id: z.number().int().describe('The ID of the version') }) @@ -28786,7 +40538,90 @@ export namespace github { typeof ReposGetRepoRulesetVersionResponseSchema > - export const SecretScanningListAlertsForRepoParamsSchema = z.object({}) + export const SecretScanningListAlertsForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + state: z + .enum(['open', 'resolved']) + .describe( + 'Set to `open` or `resolved` to only list secret scanning alerts in a specific state.' + ) + .optional(), + secret_type: z + .string() + .describe( + 'A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types.' + ) + .optional(), + resolution: z + .string() + .describe( + 'A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`.' + ) + .optional(), + sort: z + .enum(['created', 'updated']) + .describe( + 'The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved.' + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string.' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To receive an initial cursor on your first request, include an empty "after" query string.' + ) + .optional(), + validity: z + .string() + .describe( + 'A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`.' + ) + .optional(), + is_publicly_leaked: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present.' + ) + .default(false), + is_multi_repo: z + .boolean() + .describe( + 'A boolean value representing whether or not to filter alerts by the multi-repo tag being present.' + ) + .default(false) + }) export type SecretScanningListAlertsForRepoParams = z.infer< typeof SecretScanningListAlertsForRepoParamsSchema > @@ -28798,7 +40633,23 @@ export namespace github { typeof SecretScanningListAlertsForRepoResponseSchema > - export const SecretScanningGetAlertParamsSchema = z.object({}) + export const SecretScanningGetAlertParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) + }) export type SecretScanningGetAlertParams = z.infer< typeof SecretScanningGetAlertParamsSchema > @@ -28811,7 +40662,22 @@ export namespace github { export const SecretScanningUpdateAlertParamsSchema = z.object({ state: SecretScanningAlertStateSchema, resolution: SecretScanningAlertResolutionSchema.optional(), - resolution_comment: SecretScanningAlertResolutionCommentSchema.optional() + resolution_comment: SecretScanningAlertResolutionCommentSchema.optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ) }) export type SecretScanningUpdateAlertParams = z.infer< typeof SecretScanningUpdateAlertParamsSchema @@ -28823,7 +40689,37 @@ export namespace github { typeof SecretScanningUpdateAlertResponseSchema > - export const SecretScanningListLocationsForAlertParamsSchema = z.object({}) + export const SecretScanningListLocationsForAlertParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + alert_number: z + .any() + .describe( + 'The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type SecretScanningListLocationsForAlertParams = z.infer< typeof SecretScanningListLocationsForAlertParamsSchema > @@ -28837,7 +40733,17 @@ export namespace github { export const SecretScanningCreatePushProtectionBypassParamsSchema = z.object({ reason: SecretScanningPushProtectionBypassReasonSchema, - placeholder_id: SecretScanningPushProtectionBypassPlaceholderIdSchema + placeholder_id: SecretScanningPushProtectionBypassPlaceholderIdSchema, + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type SecretScanningCreatePushProtectionBypassParams = z.infer< typeof SecretScanningCreatePushProtectionBypassParamsSchema @@ -28849,7 +40755,18 @@ export namespace github { typeof SecretScanningCreatePushProtectionBypassResponseSchema > - export const SecretScanningGetScanHistoryParamsSchema = z.object({}) + export const SecretScanningGetScanHistoryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type SecretScanningGetScanHistoryParams = z.infer< typeof SecretScanningGetScanHistoryParamsSchema > @@ -28862,10 +40779,36 @@ export namespace github { export const SecurityAdvisoriesListRepositoryAdvisoriesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), sort: z .enum(['created', 'updated', 'published']) .describe('The property to sort the results by.') .default('created'), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), per_page: z .number() .int() @@ -28892,7 +40835,20 @@ export namespace github { typeof SecurityAdvisoriesListRepositoryAdvisoriesResponseSchema > - export const SecurityAdvisoriesCreateRepositoryAdvisoryParamsSchema = RepositoryAdvisoryCreateSchema + export const SecurityAdvisoriesCreateRepositoryAdvisoryParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(RepositoryAdvisoryCreateSchema) export type SecurityAdvisoriesCreateRepositoryAdvisoryParams = z.infer< typeof SecurityAdvisoriesCreateRepositoryAdvisoryParamsSchema > @@ -28900,7 +40856,20 @@ export namespace github { export type SecurityAdvisoriesCreateRepositoryAdvisoryResponse = undefined export const SecurityAdvisoriesCreatePrivateVulnerabilityReportParamsSchema = - PrivateVulnerabilityReportCreateSchema + z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) + .merge(PrivateVulnerabilityReportCreateSchema) export type SecurityAdvisoriesCreatePrivateVulnerabilityReportParams = z.infer< typeof SecurityAdvisoriesCreatePrivateVulnerabilityReportParamsSchema @@ -28909,9 +40878,23 @@ export namespace github { export type SecurityAdvisoriesCreatePrivateVulnerabilityReportResponse = undefined - export const SecurityAdvisoriesGetRepositoryAdvisoryParamsSchema = z.object( - {} - ) + export const SecurityAdvisoriesGetRepositoryAdvisoryParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ghsa_id: z + .string() + .describe( + 'The GHSA (GitHub Security Advisory) identifier of the advisory.' + ) + }) export type SecurityAdvisoriesGetRepositoryAdvisoryParams = z.infer< typeof SecurityAdvisoriesGetRepositoryAdvisoryParamsSchema > @@ -28922,7 +40905,25 @@ export namespace github { typeof SecurityAdvisoriesGetRepositoryAdvisoryResponseSchema > - export const SecurityAdvisoriesUpdateRepositoryAdvisoryParamsSchema = RepositoryAdvisoryUpdateSchema + export const SecurityAdvisoriesUpdateRepositoryAdvisoryParamsSchema = z + .object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ghsa_id: z + .string() + .describe( + 'The GHSA (GitHub Security Advisory) identifier of the advisory.' + ) + }) + .merge(RepositoryAdvisoryUpdateSchema) export type SecurityAdvisoriesUpdateRepositoryAdvisoryParams = z.infer< typeof SecurityAdvisoriesUpdateRepositoryAdvisoryParamsSchema > @@ -28934,7 +40935,23 @@ export namespace github { > export const SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ghsa_id: z + .string() + .describe( + 'The GHSA (GitHub Security Advisory) identifier of the advisory.' + ) + }) export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParams = z.infer< typeof SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParamsSchema @@ -28943,14 +40960,55 @@ export namespace github { export type SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestResponse = undefined - export const SecurityAdvisoriesCreateForkParamsSchema = z.object({}) + export const SecurityAdvisoriesCreateForkParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + ghsa_id: z + .string() + .describe( + 'The GHSA (GitHub Security Advisory) identifier of the advisory.' + ) + }) export type SecurityAdvisoriesCreateForkParams = z.infer< typeof SecurityAdvisoriesCreateForkParamsSchema > export type SecurityAdvisoriesCreateForkResponse = undefined - export const ActivityListStargazersForRepoParamsSchema = z.object({}) + export const ActivityListStargazersForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListStargazersForRepoParams = z.infer< typeof ActivityListStargazersForRepoParamsSchema > @@ -28963,7 +41021,18 @@ export namespace github { typeof ActivityListStargazersForRepoResponseSchema > - export const ReposGetCodeFrequencyStatsParamsSchema = z.object({}) + export const ReposGetCodeFrequencyStatsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetCodeFrequencyStatsParams = z.infer< typeof ReposGetCodeFrequencyStatsParamsSchema > @@ -28975,7 +41044,18 @@ export namespace github { typeof ReposGetCodeFrequencyStatsResponseSchema > - export const ReposGetCommitActivityStatsParamsSchema = z.object({}) + export const ReposGetCommitActivityStatsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetCommitActivityStatsParams = z.infer< typeof ReposGetCommitActivityStatsParamsSchema > @@ -28986,7 +41066,18 @@ export namespace github { typeof ReposGetCommitActivityStatsResponseSchema > - export const ReposGetContributorsStatsParamsSchema = z.object({}) + export const ReposGetContributorsStatsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetContributorsStatsParams = z.infer< typeof ReposGetContributorsStatsParamsSchema > @@ -28998,7 +41089,18 @@ export namespace github { typeof ReposGetContributorsStatsResponseSchema > - export const ReposGetParticipationStatsParamsSchema = z.object({}) + export const ReposGetParticipationStatsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetParticipationStatsParams = z.infer< typeof ReposGetParticipationStatsParamsSchema > @@ -29009,7 +41111,18 @@ export namespace github { typeof ReposGetParticipationStatsResponseSchema > - export const ReposGetPunchCardStatsParamsSchema = z.object({}) + export const ReposGetPunchCardStatsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetPunchCardStatsParams = z.infer< typeof ReposGetPunchCardStatsParamsSchema > @@ -29027,14 +41140,12 @@ export namespace github { .describe('The state of the status.'), target_url: z .string() - .nullable() .describe( 'The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`' ) .optional(), description: z .string() - .nullable() .describe('A short description of the status.') .optional(), context: z @@ -29043,6 +41154,16 @@ export namespace github { 'A string label to differentiate this status from the status of other systems. This field is case-insensitive.' ) .default('default'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), sha: z.string() }) export type ReposCreateCommitStatusParams = z.infer< @@ -29051,7 +41172,32 @@ export namespace github { export type ReposCreateCommitStatusResponse = undefined - export const ActivityListWatchersForRepoParamsSchema = z.object({}) + export const ActivityListWatchersForRepoParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListWatchersForRepoParams = z.infer< typeof ActivityListWatchersForRepoParamsSchema > @@ -29062,7 +41208,18 @@ export namespace github { typeof ActivityListWatchersForRepoResponseSchema > - export const ActivityGetRepoSubscriptionParamsSchema = z.object({}) + export const ActivityGetRepoSubscriptionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActivityGetRepoSubscriptionParams = z.infer< typeof ActivityGetRepoSubscriptionParamsSchema > @@ -29085,7 +41242,17 @@ export namespace github { .describe( 'Determines if all notifications should be blocked from this repository.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ActivitySetRepoSubscriptionParams = z.infer< typeof ActivitySetRepoSubscriptionParamsSchema @@ -29097,14 +41264,50 @@ export namespace github { typeof ActivitySetRepoSubscriptionResponseSchema > - export const ActivityDeleteRepoSubscriptionParamsSchema = z.object({}) + export const ActivityDeleteRepoSubscriptionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActivityDeleteRepoSubscriptionParams = z.infer< typeof ActivityDeleteRepoSubscriptionParamsSchema > export type ActivityDeleteRepoSubscriptionResponse = undefined - export const ReposListTagsParamsSchema = z.object({}) + export const ReposListTagsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListTagsParams = z.infer export const ReposListTagsResponseSchema = z.array(TagSchema) @@ -29112,7 +41315,18 @@ export namespace github { typeof ReposListTagsResponseSchema > - export const ReposListTagProtectionParamsSchema = z.object({}) + export const ReposListTagProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposListTagProtectionParams = z.infer< typeof ReposListTagProtectionParamsSchema > @@ -29128,6 +41342,16 @@ export namespace github { .string() .describe( 'An optional glob pattern to match against when enforcing tag protection.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type ReposCreateTagProtectionParams = z.infer< @@ -29136,7 +41360,22 @@ export namespace github { export type ReposCreateTagProtectionResponse = undefined - export const ReposDeleteTagProtectionParamsSchema = z.object({}) + export const ReposDeleteTagProtectionParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + tag_protection_id: z + .number() + .int() + .describe('The unique identifier of the tag protection.') + }) export type ReposDeleteTagProtectionParams = z.infer< typeof ReposDeleteTagProtectionParamsSchema > @@ -29144,6 +41383,16 @@ export namespace github { export type ReposDeleteTagProtectionResponse = undefined export const ReposDownloadTarballArchiveParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z.string() }) export type ReposDownloadTarballArchiveParams = z.infer< @@ -29152,7 +41401,32 @@ export namespace github { export type ReposDownloadTarballArchiveResponse = undefined - export const ReposListTeamsParamsSchema = z.object({}) + export const ReposListTeamsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListTeamsParams = z.infer export const ReposListTeamsResponseSchema = z.array(TeamSchema) @@ -29160,7 +41434,32 @@ export namespace github { typeof ReposListTeamsResponseSchema > - export const ReposGetAllTopicsParamsSchema = z.object({}) + export const ReposGetAllTopicsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type ReposGetAllTopicsParams = z.infer< typeof ReposGetAllTopicsParamsSchema > @@ -29175,6 +41474,16 @@ export namespace github { .array(z.string()) .describe( 'An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase.' + ), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' ) }) export type ReposReplaceAllTopicsParams = z.infer< @@ -29186,7 +41495,22 @@ export namespace github { typeof ReposReplaceAllTopicsResponseSchema > - export const ReposGetClonesParamsSchema = z.object({}) + export const ReposGetClonesParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per: z + .enum(['day', 'week']) + .describe('The time frame to display results for.') + .default('day') + }) export type ReposGetClonesParams = z.infer export const ReposGetClonesResponseSchema = CloneTrafficSchema @@ -29194,7 +41518,18 @@ export namespace github { typeof ReposGetClonesResponseSchema > - export const ReposGetTopPathsParamsSchema = z.object({}) + export const ReposGetTopPathsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetTopPathsParams = z.infer< typeof ReposGetTopPathsParamsSchema > @@ -29204,7 +41539,18 @@ export namespace github { typeof ReposGetTopPathsResponseSchema > - export const ReposGetTopReferrersParamsSchema = z.object({}) + export const ReposGetTopReferrersParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposGetTopReferrersParams = z.infer< typeof ReposGetTopReferrersParamsSchema > @@ -29216,7 +41562,22 @@ export namespace github { typeof ReposGetTopReferrersResponseSchema > - export const ReposGetViewsParamsSchema = z.object({}) + export const ReposGetViewsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), + per: z + .enum(['day', 'week']) + .describe('The time frame to display results for.') + .default('day') + }) export type ReposGetViewsParams = z.infer export const ReposGetViewsResponseSchema = ViewTrafficSchema @@ -29239,27 +41600,70 @@ export namespace github { .describe( 'ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.' ) - .optional() + .optional(), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type ReposTransferParams = z.infer export type ReposTransferResponse = undefined - export const ReposCheckVulnerabilityAlertsParamsSchema = z.object({}) + export const ReposCheckVulnerabilityAlertsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposCheckVulnerabilityAlertsParams = z.infer< typeof ReposCheckVulnerabilityAlertsParamsSchema > export type ReposCheckVulnerabilityAlertsResponse = undefined - export const ReposEnableVulnerabilityAlertsParamsSchema = z.object({}) + export const ReposEnableVulnerabilityAlertsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposEnableVulnerabilityAlertsParams = z.infer< typeof ReposEnableVulnerabilityAlertsParamsSchema > export type ReposEnableVulnerabilityAlertsResponse = undefined - export const ReposDisableVulnerabilityAlertsParamsSchema = z.object({}) + export const ReposDisableVulnerabilityAlertsParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ReposDisableVulnerabilityAlertsParams = z.infer< typeof ReposDisableVulnerabilityAlertsParamsSchema > @@ -29267,6 +41671,16 @@ export namespace github { export type ReposDisableVulnerabilityAlertsResponse = undefined export const ReposDownloadZipballArchiveParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ), ref: z.string() }) export type ReposDownloadZipballArchiveParams = z.infer< @@ -29316,7 +41730,15 @@ export namespace github { export type ReposCreateUsingTemplateResponse = undefined - export const ReposListPublicParamsSchema = z.object({}) + export const ReposListPublicParamsSchema = z.object({ + since: z + .number() + .int() + .describe( + 'A repository ID. Only return repositories with an ID greater than this ID.' + ) + .optional() + }) export type ReposListPublicParams = z.infer< typeof ReposListPublicParamsSchema > @@ -29343,7 +41765,21 @@ export namespace github { .describe( '**This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. ' ) - .default('desc') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchCodeParams = z.infer @@ -29365,7 +41801,27 @@ export namespace github { .describe( 'Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)' ) - .optional() + .optional(), + order: z + .enum(['desc', 'asc']) + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchCommitsParams = z.infer @@ -29401,6 +41857,32 @@ export namespace github { .describe( 'Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)' ) + .optional(), + order: z + .enum(['desc', 'asc']) + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + advanced_search: z + .string() + .describe( + 'Set to `true` to use advanced search.\nExample: `http://api.github.com/search/issues?q={query}&advanced_search=true`' + ) .optional() }) export type SearchIssuesAndPullRequestsParams = z.infer< @@ -29428,7 +41910,27 @@ export namespace github { .describe( 'Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)' ) - .optional() + .optional(), + order: z + .enum(['desc', 'asc']) + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchLabelsParams = z.infer @@ -29450,7 +41952,27 @@ export namespace github { .describe( 'Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)' ) - .optional() + .optional(), + order: z + .enum(['desc', 'asc']) + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchReposParams = z.infer @@ -29466,7 +41988,21 @@ export namespace github { .string() .describe( 'The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query).' + ), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchTopicsParams = z.infer @@ -29488,7 +42024,27 @@ export namespace github { .describe( 'Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)' ) - .optional() + .optional(), + order: z + .enum(['desc', 'asc']) + .describe( + 'Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.' + ) + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type SearchUsersParams = z.infer @@ -29499,7 +42055,9 @@ export namespace github { }) export type SearchUsersResponse = z.infer - export const TeamsGetLegacyParamsSchema = z.object({}) + export const TeamsGetLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.') + }) export type TeamsGetLegacyParams = z.infer export const TeamsGetLegacyResponseSchema = TeamFullSchema @@ -29507,7 +42065,9 @@ export namespace github { typeof TeamsGetLegacyResponseSchema > - export const TeamsDeleteLegacyParamsSchema = z.object({}) + export const TeamsDeleteLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.') + }) export type TeamsDeleteLegacyParams = z.infer< typeof TeamsDeleteLegacyParamsSchema > @@ -29538,9 +42098,9 @@ export namespace github { parent_team_id: z .number() .int() - .nullable() .describe('The ID of a team to set as the parent team.') - .optional() + .optional(), + team_id: z.number().int().describe('The unique identifier of the team.') }) export type TeamsUpdateLegacyParams = z.infer< typeof TeamsUpdateLegacyParamsSchema @@ -29551,7 +42111,27 @@ export namespace github { typeof TeamsUpdateLegacyResponseSchema > - export const TeamsListDiscussionsLegacyParamsSchema = z.object({}) + export const TeamsListDiscussionsLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListDiscussionsLegacyParams = z.infer< typeof TeamsListDiscussionsLegacyParamsSchema > @@ -29570,7 +42150,8 @@ export namespace github { .describe( 'Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.' ) - .default(false) + .default(false), + team_id: z.number().int().describe('The unique identifier of the team.') }) export type TeamsCreateDiscussionLegacyParams = z.infer< typeof TeamsCreateDiscussionLegacyParamsSchema @@ -29578,7 +42159,13 @@ export namespace github { export type TeamsCreateDiscussionLegacyResponse = undefined - export const TeamsGetDiscussionLegacyParamsSchema = z.object({}) + export const TeamsGetDiscussionLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') + }) export type TeamsGetDiscussionLegacyParams = z.infer< typeof TeamsGetDiscussionLegacyParamsSchema > @@ -29588,7 +42175,13 @@ export namespace github { typeof TeamsGetDiscussionLegacyResponseSchema > - export const TeamsDeleteDiscussionLegacyParamsSchema = z.object({}) + export const TeamsDeleteDiscussionLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') + }) export type TeamsDeleteDiscussionLegacyParams = z.infer< typeof TeamsDeleteDiscussionLegacyParamsSchema > @@ -29597,7 +42190,12 @@ export namespace github { export const TeamsUpdateDiscussionLegacyParamsSchema = z.object({ title: z.string().describe("The discussion post's title.").optional(), - body: z.string().describe("The discussion post's body text.").optional() + body: z.string().describe("The discussion post's body text.").optional(), + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type TeamsUpdateDiscussionLegacyParams = z.infer< typeof TeamsUpdateDiscussionLegacyParamsSchema @@ -29608,7 +42206,31 @@ export namespace github { typeof TeamsUpdateDiscussionLegacyResponseSchema > - export const TeamsListDiscussionCommentsLegacyParamsSchema = z.object({}) + export const TeamsListDiscussionCommentsLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListDiscussionCommentsLegacyParams = z.infer< typeof TeamsListDiscussionCommentsLegacyParamsSchema > @@ -29621,7 +42243,12 @@ export namespace github { > export const TeamsCreateDiscussionCommentLegacyParamsSchema = z.object({ - body: z.string().describe("The discussion comment's body text.") + body: z.string().describe("The discussion comment's body text."), + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type TeamsCreateDiscussionCommentLegacyParams = z.infer< typeof TeamsCreateDiscussionCommentLegacyParamsSchema @@ -29629,7 +42256,17 @@ export namespace github { export type TeamsCreateDiscussionCommentLegacyResponse = undefined - export const TeamsGetDiscussionCommentLegacyParamsSchema = z.object({}) + export const TeamsGetDiscussionCommentLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') + }) export type TeamsGetDiscussionCommentLegacyParams = z.infer< typeof TeamsGetDiscussionCommentLegacyParamsSchema > @@ -29640,7 +42277,17 @@ export namespace github { typeof TeamsGetDiscussionCommentLegacyResponseSchema > - export const TeamsDeleteDiscussionCommentLegacyParamsSchema = z.object({}) + export const TeamsDeleteDiscussionCommentLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') + }) export type TeamsDeleteDiscussionCommentLegacyParams = z.infer< typeof TeamsDeleteDiscussionCommentLegacyParamsSchema > @@ -29648,7 +42295,16 @@ export namespace github { export type TeamsDeleteDiscussionCommentLegacyResponse = undefined export const TeamsUpdateDiscussionCommentLegacyParamsSchema = z.object({ - body: z.string().describe("The discussion comment's body text.") + body: z.string().describe("The discussion comment's body text."), + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') }) export type TeamsUpdateDiscussionCommentLegacyParams = z.infer< typeof TeamsUpdateDiscussionCommentLegacyParamsSchema @@ -29662,6 +42318,15 @@ export namespace github { export const ReactionsListForTeamDiscussionCommentLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.'), content: z .enum([ '+1', @@ -29676,7 +42341,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForTeamDiscussionCommentLegacyParams = z.infer< typeof ReactionsListForTeamDiscussionCommentLegacyParamsSchema @@ -29703,7 +42382,16 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment.' - ) + ), + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), + comment_number: z + .number() + .int() + .describe('The number that identifies the comment.') }) export type ReactionsCreateForTeamDiscussionCommentLegacyParams = z.infer< typeof ReactionsCreateForTeamDiscussionCommentLegacyParamsSchema @@ -29712,6 +42400,11 @@ export namespace github { export type ReactionsCreateForTeamDiscussionCommentLegacyResponse = undefined export const ReactionsListForTeamDiscussionLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.'), content: z .enum([ '+1', @@ -29726,7 +42419,21 @@ export namespace github { .describe( 'Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReactionsListForTeamDiscussionLegacyParams = z.infer< typeof ReactionsListForTeamDiscussionLegacyParamsSchema @@ -29752,7 +42459,12 @@ export namespace github { ]) .describe( 'The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion.' - ) + ), + team_id: z.number().int().describe('The unique identifier of the team.'), + discussion_number: z + .number() + .int() + .describe('The number that identifies the discussion.') }) export type ReactionsCreateForTeamDiscussionLegacyParams = z.infer< typeof ReactionsCreateForTeamDiscussionLegacyParamsSchema @@ -29760,7 +42472,23 @@ export namespace github { export type ReactionsCreateForTeamDiscussionLegacyResponse = undefined - export const TeamsListPendingInvitationsLegacyParamsSchema = z.object({}) + export const TeamsListPendingInvitationsLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListPendingInvitationsLegacyParams = z.infer< typeof TeamsListPendingInvitationsLegacyParamsSchema > @@ -29773,10 +42501,25 @@ export namespace github { > export const TeamsListMembersLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), role: z .enum(['member', 'maintainer', 'all']) .describe('Filters members returned by their role in the team.') - .default('all') + .default('all'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type TeamsListMembersLegacyParams = z.infer< typeof TeamsListMembersLegacyParamsSchema @@ -29787,28 +42530,40 @@ export namespace github { typeof TeamsListMembersLegacyResponseSchema > - export const TeamsGetMemberLegacyParamsSchema = z.object({}) + export const TeamsGetMemberLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsGetMemberLegacyParams = z.infer< typeof TeamsGetMemberLegacyParamsSchema > export type TeamsGetMemberLegacyResponse = undefined - export const TeamsAddMemberLegacyParamsSchema = z.object({}) + export const TeamsAddMemberLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsAddMemberLegacyParams = z.infer< typeof TeamsAddMemberLegacyParamsSchema > export type TeamsAddMemberLegacyResponse = undefined - export const TeamsRemoveMemberLegacyParamsSchema = z.object({}) + export const TeamsRemoveMemberLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsRemoveMemberLegacyParams = z.infer< typeof TeamsRemoveMemberLegacyParamsSchema > export type TeamsRemoveMemberLegacyResponse = undefined - export const TeamsGetMembershipForUserLegacyParamsSchema = z.object({}) + export const TeamsGetMembershipForUserLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsGetMembershipForUserLegacyParams = z.infer< typeof TeamsGetMembershipForUserLegacyParamsSchema > @@ -29823,7 +42578,9 @@ export namespace github { role: z .enum(['member', 'maintainer']) .describe('The role that this user should have in the team.') - .default('member') + .default('member'), + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') }) export type TeamsAddOrUpdateMembershipForUserLegacyParams = z.infer< typeof TeamsAddOrUpdateMembershipForUserLegacyParamsSchema @@ -29835,14 +42592,33 @@ export namespace github { typeof TeamsAddOrUpdateMembershipForUserLegacyResponseSchema > - export const TeamsRemoveMembershipForUserLegacyParamsSchema = z.object({}) + export const TeamsRemoveMembershipForUserLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type TeamsRemoveMembershipForUserLegacyParams = z.infer< typeof TeamsRemoveMembershipForUserLegacyParamsSchema > export type TeamsRemoveMembershipForUserLegacyResponse = undefined - export const TeamsListProjectsLegacyParamsSchema = z.object({}) + export const TeamsListProjectsLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListProjectsLegacyParams = z.infer< typeof TeamsListProjectsLegacyParamsSchema > @@ -29853,7 +42629,13 @@ export namespace github { typeof TeamsListProjectsLegacyResponseSchema > - export const TeamsCheckPermissionsForProjectLegacyParamsSchema = z.object({}) + export const TeamsCheckPermissionsForProjectLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type TeamsCheckPermissionsForProjectLegacyParams = z.infer< typeof TeamsCheckPermissionsForProjectLegacyParamsSchema > @@ -29870,7 +42652,12 @@ export namespace github { .describe( 'The permission to grant to the team for this project. Default: the team\'s `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you\'ll need to set `Content-Length` to zero when calling this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method)."' ) - .optional() + .optional(), + team_id: z.number().int().describe('The unique identifier of the team.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') }) export type TeamsAddOrUpdateProjectPermissionsLegacyParams = z.infer< typeof TeamsAddOrUpdateProjectPermissionsLegacyParamsSchema @@ -29878,14 +42665,36 @@ export namespace github { export type TeamsAddOrUpdateProjectPermissionsLegacyResponse = undefined - export const TeamsRemoveProjectLegacyParamsSchema = z.object({}) + export const TeamsRemoveProjectLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + project_id: z + .number() + .int() + .describe('The unique identifier of the project.') + }) export type TeamsRemoveProjectLegacyParams = z.infer< typeof TeamsRemoveProjectLegacyParamsSchema > export type TeamsRemoveProjectLegacyResponse = undefined - export const TeamsListReposLegacyParamsSchema = z.object({}) + export const TeamsListReposLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListReposLegacyParams = z.infer< typeof TeamsListReposLegacyParamsSchema > @@ -29897,7 +42706,19 @@ export namespace github { typeof TeamsListReposLegacyResponseSchema > - export const TeamsCheckPermissionsForRepoLegacyParamsSchema = z.object({}) + export const TeamsCheckPermissionsForRepoLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type TeamsCheckPermissionsForRepoLegacyParams = z.infer< typeof TeamsCheckPermissionsForRepoLegacyParamsSchema > @@ -29914,7 +42735,18 @@ export namespace github { .describe( "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository." ) - .optional() + .optional(), + team_id: z.number().int().describe('The unique identifier of the team.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) }) export type TeamsAddOrUpdateRepoPermissionsLegacyParams = z.infer< typeof TeamsAddOrUpdateRepoPermissionsLegacyParamsSchema @@ -29922,14 +42754,42 @@ export namespace github { export type TeamsAddOrUpdateRepoPermissionsLegacyResponse = undefined - export const TeamsRemoveRepoLegacyParamsSchema = z.object({}) + export const TeamsRemoveRepoLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type TeamsRemoveRepoLegacyParams = z.infer< typeof TeamsRemoveRepoLegacyParamsSchema > export type TeamsRemoveRepoLegacyResponse = undefined - export const TeamsListChildLegacyParamsSchema = z.object({}) + export const TeamsListChildLegacyParamsSchema = z.object({ + team_id: z.number().int().describe('The unique identifier of the team.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListChildLegacyParams = z.infer< typeof TeamsListChildLegacyParamsSchema > @@ -29961,7 +42821,6 @@ export namespace github { blog: z.string().describe('The new blog URL of the user.').optional(), twitter_username: z .string() - .nullable() .describe('The new Twitter username of the user.') .optional(), company: z.string().describe('The new company of the user.').optional(), @@ -29981,7 +42840,22 @@ export namespace github { typeof UsersUpdateAuthenticatedResponseSchema > - export const UsersListBlockedByAuthenticatedUserParamsSchema = z.object({}) + export const UsersListBlockedByAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListBlockedByAuthenticatedUserParams = z.infer< typeof UsersListBlockedByAuthenticatedUserParamsSchema > @@ -29992,24 +42866,50 @@ export namespace github { typeof UsersListBlockedByAuthenticatedUserResponseSchema > - export const UsersCheckBlockedParamsSchema = z.object({}) + export const UsersCheckBlockedParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersCheckBlockedParams = z.infer< typeof UsersCheckBlockedParamsSchema > export type UsersCheckBlockedResponse = undefined - export const UsersBlockParamsSchema = z.object({}) + export const UsersBlockParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersBlockParams = z.infer export type UsersBlockResponse = undefined - export const UsersUnblockParamsSchema = z.object({}) + export const UsersUnblockParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersUnblockParams = z.infer export type UsersUnblockResponse = undefined - export const CodespacesListForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesListForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + repository_id: z + .number() + .int() + .describe('ID of the Repository to filter on') + .optional() + }) export type CodespacesListForAuthenticatedUserParams = z.infer< typeof CodespacesListForAuthenticatedUserParamsSchema > @@ -30142,7 +43042,22 @@ export namespace github { export type CodespacesCreateForAuthenticatedUserResponse = undefined export const CodespacesListSecretsForAuthenticatedUserParamsSchema = z.object( - {} + { + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type CodespacesListSecretsForAuthenticatedUserParams = z.infer< typeof CodespacesListSecretsForAuthenticatedUserParamsSchema @@ -30169,9 +43084,9 @@ export namespace github { typeof CodespacesGetPublicKeyForAuthenticatedUserResponseSchema > - export const CodespacesGetSecretForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const CodespacesGetSecretForAuthenticatedUserParamsSchema = z.object({ + secret_name: z.string().describe('The name of the secret.') + }) export type CodespacesGetSecretForAuthenticatedUserParams = z.infer< typeof CodespacesGetSecretForAuthenticatedUserParamsSchema > @@ -30203,7 +43118,8 @@ export namespace github { .describe( 'An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.' ) - .optional() + .optional(), + secret_name: z.string().describe('The name of the secret.') }) export type CodespacesCreateOrUpdateSecretForAuthenticatedUserParams = z.infer< @@ -30214,7 +43130,7 @@ export namespace github { undefined export const CodespacesDeleteSecretForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ secret_name: z.string().describe('The name of the secret.') }) export type CodespacesDeleteSecretForAuthenticatedUserParams = z.infer< typeof CodespacesDeleteSecretForAuthenticatedUserParamsSchema > @@ -30222,7 +43138,7 @@ export namespace github { export type CodespacesDeleteSecretForAuthenticatedUserResponse = undefined export const CodespacesListRepositoriesForSecretForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ secret_name: z.string().describe('The name of the secret.') }) export type CodespacesListRepositoriesForSecretForAuthenticatedUserParams = z.infer< typeof CodespacesListRepositoriesForSecretForAuthenticatedUserParamsSchema @@ -30244,7 +43160,8 @@ export namespace github { .array(z.number().int()) .describe( 'An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.' - ) + ), + secret_name: z.string().describe('The name of the secret.') }) export type CodespacesSetRepositoriesForSecretForAuthenticatedUserParams = z.infer< @@ -30255,7 +43172,10 @@ export namespace github { undefined export const CodespacesAddRepositoryForSecretForAuthenticatedUserParamsSchema = - z.object({ repository_id: z.number().int() }) + z.object({ + secret_name: z.string().describe('The name of the secret.'), + repository_id: z.number().int() + }) export type CodespacesAddRepositoryForSecretForAuthenticatedUserParams = z.infer< typeof CodespacesAddRepositoryForSecretForAuthenticatedUserParamsSchema @@ -30265,7 +43185,10 @@ export namespace github { undefined export const CodespacesRemoveRepositoryForSecretForAuthenticatedUserParamsSchema = - z.object({ repository_id: z.number().int() }) + z.object({ + secret_name: z.string().describe('The name of the secret.'), + repository_id: z.number().int() + }) export type CodespacesRemoveRepositoryForSecretForAuthenticatedUserParams = z.infer< typeof CodespacesRemoveRepositoryForSecretForAuthenticatedUserParamsSchema @@ -30274,7 +43197,9 @@ export namespace github { export type CodespacesRemoveRepositoryForSecretForAuthenticatedUserResponse = undefined - export const CodespacesGetForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesGetForAuthenticatedUserParamsSchema = z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesGetForAuthenticatedUserParams = z.infer< typeof CodespacesGetForAuthenticatedUserParamsSchema > @@ -30284,7 +43209,9 @@ export namespace github { typeof CodespacesGetForAuthenticatedUserResponseSchema > - export const CodespacesDeleteForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesDeleteForAuthenticatedUserParamsSchema = z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesDeleteForAuthenticatedUserParams = z.infer< typeof CodespacesDeleteForAuthenticatedUserParamsSchema > @@ -30305,7 +43232,8 @@ export namespace github { .describe( 'Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.' ) - .optional() + .optional(), + codespace_name: z.string().describe('The name of the codespace.') }) export type CodespacesUpdateForAuthenticatedUserParams = z.infer< typeof CodespacesUpdateForAuthenticatedUserParamsSchema @@ -30317,7 +43245,9 @@ export namespace github { typeof CodespacesUpdateForAuthenticatedUserResponseSchema > - export const CodespacesExportForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesExportForAuthenticatedUserParamsSchema = z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesExportForAuthenticatedUserParams = z.infer< typeof CodespacesExportForAuthenticatedUserParamsSchema > @@ -30325,7 +43255,14 @@ export namespace github { export type CodespacesExportForAuthenticatedUserResponse = undefined export const CodespacesGetExportDetailsForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + codespace_name: z.string().describe('The name of the codespace.'), + export_id: z + .string() + .describe( + 'The ID of the export operation, or `latest`. Currently only `latest` is currently supported.' + ) + }) export type CodespacesGetExportDetailsForAuthenticatedUserParams = z.infer< typeof CodespacesGetExportDetailsForAuthenticatedUserParamsSchema > @@ -30337,7 +43274,9 @@ export namespace github { > export const CodespacesCodespaceMachinesForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesCodespaceMachinesForAuthenticatedUserParams = z.infer< typeof CodespacesCodespaceMachinesForAuthenticatedUserParamsSchema > @@ -30356,7 +43295,8 @@ export namespace github { private: z .boolean() .describe('Whether the new repository should be private.') - .default(false) + .default(false), + codespace_name: z.string().describe('The name of the codespace.') }) export type CodespacesPublishForAuthenticatedUserParams = z.infer< typeof CodespacesPublishForAuthenticatedUserParamsSchema @@ -30364,7 +43304,9 @@ export namespace github { export type CodespacesPublishForAuthenticatedUserResponse = undefined - export const CodespacesStartForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesStartForAuthenticatedUserParamsSchema = z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesStartForAuthenticatedUserParams = z.infer< typeof CodespacesStartForAuthenticatedUserParamsSchema > @@ -30375,7 +43317,9 @@ export namespace github { typeof CodespacesStartForAuthenticatedUserResponseSchema > - export const CodespacesStopForAuthenticatedUserParamsSchema = z.object({}) + export const CodespacesStopForAuthenticatedUserParamsSchema = z.object({ + codespace_name: z.string().describe('The name of the codespace.') + }) export type CodespacesStopForAuthenticatedUserParams = z.infer< typeof CodespacesStopForAuthenticatedUserParamsSchema > @@ -30418,7 +43362,22 @@ export namespace github { typeof UsersSetPrimaryEmailVisibilityForAuthenticatedUserResponseSchema > - export const UsersListEmailsForAuthenticatedUserParamsSchema = z.object({}) + export const UsersListEmailsForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListEmailsForAuthenticatedUserParams = z.infer< typeof UsersListEmailsForAuthenticatedUserParamsSchema > @@ -30477,7 +43436,22 @@ export namespace github { export type UsersDeleteEmailForAuthenticatedUserResponse = undefined - export const UsersListFollowersForAuthenticatedUserParamsSchema = z.object({}) + export const UsersListFollowersForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListFollowersForAuthenticatedUserParams = z.infer< typeof UsersListFollowersForAuthenticatedUserParamsSchema > @@ -30488,7 +43462,22 @@ export namespace github { typeof UsersListFollowersForAuthenticatedUserResponseSchema > - export const UsersListFollowedByAuthenticatedUserParamsSchema = z.object({}) + export const UsersListFollowedByAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListFollowedByAuthenticatedUserParams = z.infer< typeof UsersListFollowedByAuthenticatedUserParamsSchema > @@ -30500,7 +43489,7 @@ export namespace github { > export const UsersCheckPersonIsFollowedByAuthenticatedParamsSchema = z.object( - {} + { username: z.string().describe('The handle for the GitHub user account.') } ) export type UsersCheckPersonIsFollowedByAuthenticatedParams = z.infer< typeof UsersCheckPersonIsFollowedByAuthenticatedParamsSchema @@ -30508,17 +43497,36 @@ export namespace github { export type UsersCheckPersonIsFollowedByAuthenticatedResponse = undefined - export const UsersFollowParamsSchema = z.object({}) + export const UsersFollowParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersFollowParams = z.infer export type UsersFollowResponse = undefined - export const UsersUnfollowParamsSchema = z.object({}) + export const UsersUnfollowParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersUnfollowParams = z.infer export type UsersUnfollowResponse = undefined - export const UsersListGpgKeysForAuthenticatedUserParamsSchema = z.object({}) + export const UsersListGpgKeysForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListGpgKeysForAuthenticatedUserParams = z.infer< typeof UsersListGpgKeysForAuthenticatedUserParamsSchema > @@ -30541,7 +43549,12 @@ export namespace github { export type UsersCreateGpgKeyForAuthenticatedUserResponse = undefined - export const UsersGetGpgKeyForAuthenticatedUserParamsSchema = z.object({}) + export const UsersGetGpgKeyForAuthenticatedUserParamsSchema = z.object({ + gpg_key_id: z + .number() + .int() + .describe('The unique identifier of the GPG key.') + }) export type UsersGetGpgKeyForAuthenticatedUserParams = z.infer< typeof UsersGetGpgKeyForAuthenticatedUserParamsSchema > @@ -30551,7 +43564,12 @@ export namespace github { typeof UsersGetGpgKeyForAuthenticatedUserResponseSchema > - export const UsersDeleteGpgKeyForAuthenticatedUserParamsSchema = z.object({}) + export const UsersDeleteGpgKeyForAuthenticatedUserParamsSchema = z.object({ + gpg_key_id: z + .number() + .int() + .describe('The unique identifier of the GPG key.') + }) export type UsersDeleteGpgKeyForAuthenticatedUserParams = z.infer< typeof UsersDeleteGpgKeyForAuthenticatedUserParamsSchema > @@ -30559,7 +43577,22 @@ export namespace github { export type UsersDeleteGpgKeyForAuthenticatedUserResponse = undefined export const AppsListInstallationsForAuthenticatedUserParamsSchema = z.object( - {} + { + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type AppsListInstallationsForAuthenticatedUserParams = z.infer< typeof AppsListInstallationsForAuthenticatedUserParamsSchema @@ -30575,7 +43608,26 @@ export namespace github { > export const AppsListInstallationReposForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListInstallationReposForAuthenticatedUserParams = z.infer< typeof AppsListInstallationReposForAuthenticatedUserParamsSchema > @@ -30591,7 +43643,16 @@ export namespace github { > export const AppsAddRepoToInstallationForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type AppsAddRepoToInstallationForAuthenticatedUserParams = z.infer< typeof AppsAddRepoToInstallationForAuthenticatedUserParamsSchema > @@ -30599,7 +43660,16 @@ export namespace github { export type AppsAddRepoToInstallationForAuthenticatedUserResponse = undefined export const AppsRemoveRepoFromInstallationForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + installation_id: z + .number() + .int() + .describe('The unique identifier of the installation.'), + repository_id: z + .number() + .int() + .describe('The unique identifier of the repository.') + }) export type AppsRemoveRepoFromInstallationForAuthenticatedUserParams = z.infer< typeof AppsRemoveRepoFromInstallationForAuthenticatedUserParamsSchema @@ -30652,10 +43722,41 @@ export namespace github { .enum(['open', 'closed', 'all']) .describe('Indicates the state of the issues to return.') .default('open'), + labels: z + .string() + .describe( + 'A list of comma separated label names. Example: `bug,ui,@high`' + ) + .optional(), sort: z .enum(['created', 'updated', 'comments']) .describe('What to sort results by.') - .default('created') + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type IssuesListForAuthenticatedUserParams = z.infer< typeof IssuesListForAuthenticatedUserParamsSchema @@ -30668,7 +43769,22 @@ export namespace github { > export const UsersListPublicSshKeysForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListPublicSshKeysForAuthenticatedUserParams = z.infer< typeof UsersListPublicSshKeysForAuthenticatedUserParamsSchema > @@ -30698,9 +43814,9 @@ export namespace github { export type UsersCreatePublicSshKeyForAuthenticatedUserResponse = undefined - export const UsersGetPublicSshKeyForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const UsersGetPublicSshKeyForAuthenticatedUserParamsSchema = z.object({ + key_id: z.number().int().describe('The unique identifier of the key.') + }) export type UsersGetPublicSshKeyForAuthenticatedUserParams = z.infer< typeof UsersGetPublicSshKeyForAuthenticatedUserParamsSchema > @@ -30712,7 +43828,9 @@ export namespace github { > export const UsersDeletePublicSshKeyForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + key_id: z.number().int().describe('The unique identifier of the key.') + }) export type UsersDeletePublicSshKeyForAuthenticatedUserParams = z.infer< typeof UsersDeletePublicSshKeyForAuthenticatedUserParamsSchema > @@ -30720,7 +43838,22 @@ export namespace github { export type UsersDeletePublicSshKeyForAuthenticatedUserResponse = undefined export const AppsListSubscriptionsForAuthenticatedUserParamsSchema = z.object( - {} + { + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type AppsListSubscriptionsForAuthenticatedUserParams = z.infer< typeof AppsListSubscriptionsForAuthenticatedUserParamsSchema @@ -30733,7 +43866,22 @@ export namespace github { > export const AppsListSubscriptionsForAuthenticatedUserStubbedParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type AppsListSubscriptionsForAuthenticatedUserStubbedParams = z.infer< typeof AppsListSubscriptionsForAuthenticatedUserStubbedParamsSchema > @@ -30751,7 +43899,21 @@ export namespace github { .describe( 'Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type OrgsListMembershipsForAuthenticatedUserParams = z.infer< typeof OrgsListMembershipsForAuthenticatedUserParamsSchema @@ -30763,7 +43925,11 @@ export namespace github { typeof OrgsListMembershipsForAuthenticatedUserResponseSchema > - export const OrgsGetMembershipForAuthenticatedUserParamsSchema = z.object({}) + export const OrgsGetMembershipForAuthenticatedUserParamsSchema = z.object({ + org: z + .string() + .describe('The organization name. The name is not case sensitive.') + }) export type OrgsGetMembershipForAuthenticatedUserParams = z.infer< typeof OrgsGetMembershipForAuthenticatedUserParamsSchema > @@ -30779,7 +43945,10 @@ export namespace github { .literal('active') .describe( 'The state that the membership should be in. Only `"active"` will be accepted.' - ) + ), + org: z + .string() + .describe('The organization name. The name is not case sensitive.') }) export type OrgsUpdateMembershipForAuthenticatedUserParams = z.infer< typeof OrgsUpdateMembershipForAuthenticatedUserParamsSchema @@ -30791,7 +43960,22 @@ export namespace github { typeof OrgsUpdateMembershipForAuthenticatedUserResponseSchema > - export const MigrationsListForAuthenticatedUserParamsSchema = z.object({}) + export const MigrationsListForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type MigrationsListForAuthenticatedUserParams = z.infer< typeof MigrationsListForAuthenticatedUserParamsSchema > @@ -30862,6 +44046,10 @@ export namespace github { export type MigrationsStartForAuthenticatedUserResponse = undefined export const MigrationsGetStatusForAuthenticatedUserParamsSchema = z.object({ + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), exclude: z.array(z.string()).optional() }) export type MigrationsGetStatusForAuthenticatedUserParams = z.infer< @@ -30874,9 +44062,12 @@ export namespace github { typeof MigrationsGetStatusForAuthenticatedUserResponseSchema > - export const MigrationsGetArchiveForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const MigrationsGetArchiveForAuthenticatedUserParamsSchema = z.object({ + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.') + }) export type MigrationsGetArchiveForAuthenticatedUserParams = z.infer< typeof MigrationsGetArchiveForAuthenticatedUserParamsSchema > @@ -30884,25 +44075,51 @@ export namespace github { export type MigrationsGetArchiveForAuthenticatedUserResponse = undefined export const MigrationsDeleteArchiveForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.') + }) export type MigrationsDeleteArchiveForAuthenticatedUserParams = z.infer< typeof MigrationsDeleteArchiveForAuthenticatedUserParamsSchema > export type MigrationsDeleteArchiveForAuthenticatedUserResponse = undefined - export const MigrationsUnlockRepoForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const MigrationsUnlockRepoForAuthenticatedUserParamsSchema = z.object({ + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), + repo_name: z.string().describe('repo_name parameter') + }) export type MigrationsUnlockRepoForAuthenticatedUserParams = z.infer< typeof MigrationsUnlockRepoForAuthenticatedUserParamsSchema > export type MigrationsUnlockRepoForAuthenticatedUserResponse = undefined - export const MigrationsListReposForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const MigrationsListReposForAuthenticatedUserParamsSchema = z.object({ + migration_id: z + .number() + .int() + .describe('The unique identifier of the migration.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type MigrationsListReposForAuthenticatedUserParams = z.infer< typeof MigrationsListReposForAuthenticatedUserParamsSchema > @@ -30914,7 +44131,22 @@ export namespace github { typeof MigrationsListReposForAuthenticatedUserResponseSchema > - export const OrgsListForAuthenticatedUserParamsSchema = z.object({}) + export const OrgsListForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListForAuthenticatedUserParams = z.infer< typeof OrgsListForAuthenticatedUserParamsSchema > @@ -30931,7 +44163,27 @@ export namespace github { .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) .describe( "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + visibility: z + .enum(['public', 'private', 'internal']) + .describe( + 'The selected visibility of the packages. This parameter is optional and only filters an existing result set.\n\nThe `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.\nFor the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."' ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) }) export type PackagesListPackagesForAuthenticatedUserParams = z.infer< typeof PackagesListPackagesForAuthenticatedUserParamsSchema @@ -30943,7 +44195,14 @@ export namespace github { typeof PackagesListPackagesForAuthenticatedUserResponseSchema > - export const PackagesGetPackageForAuthenticatedUserParamsSchema = z.object({}) + export const PackagesGetPackageForAuthenticatedUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.') + }) export type PackagesGetPackageForAuthenticatedUserParams = z.infer< typeof PackagesGetPackageForAuthenticatedUserParamsSchema > @@ -30955,7 +44214,14 @@ export namespace github { > export const PackagesDeletePackageForAuthenticatedUserParamsSchema = z.object( - {} + { + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.') + } ) export type PackagesDeletePackageForAuthenticatedUserParams = z.infer< typeof PackagesDeletePackageForAuthenticatedUserParamsSchema @@ -30964,7 +44230,15 @@ export namespace github { export type PackagesDeletePackageForAuthenticatedUserResponse = undefined export const PackagesRestorePackageForAuthenticatedUserParamsSchema = - z.object({ token: z.string().describe('package token').optional() }) + z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + token: z.string().describe('package token').optional() + }) export type PackagesRestorePackageForAuthenticatedUserParams = z.infer< typeof PackagesRestorePackageForAuthenticatedUserParamsSchema > @@ -30973,6 +44247,26 @@ export namespace github { export const PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), state: z .enum(['active', 'deleted']) .describe('The state of the package, either active or deleted.') @@ -30991,7 +44285,18 @@ export namespace github { > export const PackagesGetPackageVersionForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesGetPackageVersionForAuthenticatedUserParams = z.infer< typeof PackagesGetPackageVersionForAuthenticatedUserParamsSchema > @@ -31003,7 +44308,18 @@ export namespace github { > export const PackagesDeletePackageVersionForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesDeletePackageVersionForAuthenticatedUserParams = z.infer< typeof PackagesDeletePackageVersionForAuthenticatedUserParamsSchema > @@ -31012,7 +44328,18 @@ export namespace github { undefined export const PackagesRestorePackageVersionForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesRestorePackageVersionForAuthenticatedUserParams = z.infer< typeof PackagesRestorePackageVersionForAuthenticatedUserParamsSchema > @@ -31022,7 +44349,7 @@ export namespace github { export const ProjectsCreateForAuthenticatedUserParamsSchema = z.object({ name: z.string().describe('Name of the project'), - body: z.string().nullable().describe('Body of the project').optional() + body: z.string().describe('Body of the project').optional() }) export type ProjectsCreateForAuthenticatedUserParams = z.infer< typeof ProjectsCreateForAuthenticatedUserParamsSchema @@ -31031,7 +44358,22 @@ export namespace github { export type ProjectsCreateForAuthenticatedUserResponse = undefined export const UsersListPublicEmailsForAuthenticatedUserParamsSchema = z.object( - {} + { + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type UsersListPublicEmailsForAuthenticatedUserParams = z.infer< typeof UsersListPublicEmailsForAuthenticatedUserParamsSchema @@ -31069,6 +44411,34 @@ export namespace github { .describe( 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.' ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + before: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) .optional() }) export type ReposListForAuthenticatedUserParams = z.infer< @@ -31193,9 +44563,22 @@ export namespace github { export type ReposCreateForAuthenticatedUserResponse = undefined - export const ReposListInvitationsForAuthenticatedUserParamsSchema = z.object( - {} - ) + export const ReposListInvitationsForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ReposListInvitationsForAuthenticatedUserParams = z.infer< typeof ReposListInvitationsForAuthenticatedUserParamsSchema > @@ -31208,7 +44591,12 @@ export namespace github { > export const ReposDeclineInvitationForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.') + }) export type ReposDeclineInvitationForAuthenticatedUserParams = z.infer< typeof ReposDeclineInvitationForAuthenticatedUserParamsSchema > @@ -31216,7 +44604,12 @@ export namespace github { export type ReposDeclineInvitationForAuthenticatedUserResponse = undefined export const ReposAcceptInvitationForAuthenticatedUserParamsSchema = z.object( - {} + { + invitation_id: z + .number() + .int() + .describe('The unique identifier of the invitation.') + } ) export type ReposAcceptInvitationForAuthenticatedUserParams = z.infer< typeof ReposAcceptInvitationForAuthenticatedUserParamsSchema @@ -31225,7 +44618,22 @@ export namespace github { export type ReposAcceptInvitationForAuthenticatedUserResponse = undefined export const UsersListSocialAccountsForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListSocialAccountsForAuthenticatedUserParams = z.infer< typeof UsersListSocialAccountsForAuthenticatedUserParamsSchema > @@ -31262,7 +44670,22 @@ export namespace github { export type UsersDeleteSocialAccountForAuthenticatedUserResponse = undefined export const UsersListSshSigningKeysForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListSshSigningKeysForAuthenticatedUserParams = z.infer< typeof UsersListSshSigningKeysForAuthenticatedUserParamsSchema > @@ -31297,7 +44720,12 @@ export namespace github { export type UsersCreateSshSigningKeyForAuthenticatedUserResponse = undefined export const UsersGetSshSigningKeyForAuthenticatedUserParamsSchema = z.object( - {} + { + ssh_signing_key_id: z + .number() + .int() + .describe('The unique identifier of the SSH signing key.') + } ) export type UsersGetSshSigningKeyForAuthenticatedUserParams = z.infer< typeof UsersGetSshSigningKeyForAuthenticatedUserParamsSchema @@ -31310,7 +44738,12 @@ export namespace github { > export const UsersDeleteSshSigningKeyForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + ssh_signing_key_id: z + .number() + .int() + .describe('The unique identifier of the SSH signing key.') + }) export type UsersDeleteSshSigningKeyForAuthenticatedUserParams = z.infer< typeof UsersDeleteSshSigningKeyForAuthenticatedUserParamsSchema > @@ -31318,7 +44751,32 @@ export namespace github { export type UsersDeleteSshSigningKeyForAuthenticatedUserResponse = undefined export const ActivityListReposStarredByAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + sort: z + .enum(['created', 'updated']) + .describe( + 'The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.' + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListReposStarredByAuthenticatedUserParams = z.infer< typeof ActivityListReposStarredByAuthenticatedUserParamsSchema > @@ -31330,21 +44788,54 @@ export namespace github { > export const ActivityCheckRepoIsStarredByAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActivityCheckRepoIsStarredByAuthenticatedUserParams = z.infer< typeof ActivityCheckRepoIsStarredByAuthenticatedUserParamsSchema > export type ActivityCheckRepoIsStarredByAuthenticatedUserResponse = undefined - export const ActivityStarRepoForAuthenticatedUserParamsSchema = z.object({}) + export const ActivityStarRepoForAuthenticatedUserParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActivityStarRepoForAuthenticatedUserParams = z.infer< typeof ActivityStarRepoForAuthenticatedUserParamsSchema > export type ActivityStarRepoForAuthenticatedUserResponse = undefined - export const ActivityUnstarRepoForAuthenticatedUserParamsSchema = z.object({}) + export const ActivityUnstarRepoForAuthenticatedUserParamsSchema = z.object({ + owner: z + .string() + .describe( + 'The account owner of the repository. The name is not case sensitive.' + ), + repo: z + .string() + .describe( + 'The name of the repository without the `.git` extension. The name is not case sensitive.' + ) + }) export type ActivityUnstarRepoForAuthenticatedUserParams = z.infer< typeof ActivityUnstarRepoForAuthenticatedUserParamsSchema > @@ -31352,7 +44843,22 @@ export namespace github { export type ActivityUnstarRepoForAuthenticatedUserResponse = undefined export const ActivityListWatchedReposForAuthenticatedUserParamsSchema = - z.object({}) + z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListWatchedReposForAuthenticatedUserParams = z.infer< typeof ActivityListWatchedReposForAuthenticatedUserParamsSchema > @@ -31363,7 +44869,22 @@ export namespace github { typeof ActivityListWatchedReposForAuthenticatedUserResponseSchema > - export const TeamsListForAuthenticatedUserParamsSchema = z.object({}) + export const TeamsListForAuthenticatedUserParamsSchema = z.object({ + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type TeamsListForAuthenticatedUserParams = z.infer< typeof TeamsListForAuthenticatedUserParamsSchema > @@ -31374,7 +44895,9 @@ export namespace github { typeof TeamsListForAuthenticatedUserResponseSchema > - export const UsersGetByIdParamsSchema = z.object({}) + export const UsersGetByIdParamsSchema = z.object({ + account_id: z.number().int().describe('account_id parameter') + }) export type UsersGetByIdParams = z.infer export const UsersGetByIdResponseSchema = z.union([ @@ -31383,13 +44906,28 @@ export namespace github { ]) export type UsersGetByIdResponse = z.infer - export const UsersListParamsSchema = z.object({}) + export const UsersListParamsSchema = z.object({ + since: z + .number() + .int() + .describe('A user ID. Only return users with an ID greater than this ID.') + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) + }) export type UsersListParams = z.infer export const UsersListResponseSchema = z.array(SimpleUserSchema) export type UsersListResponse = z.infer - export const UsersGetByUsernameParamsSchema = z.object({}) + export const UsersGetByUsernameParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type UsersGetByUsernameParams = z.infer< typeof UsersGetByUsernameParamsSchema > @@ -31403,7 +44941,27 @@ export namespace github { > export const UsersListAttestationsParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), subject_digest: z.string().describe('Subject Digest'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + before: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), + after: z + .string() + .describe( + 'A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .optional(), predicate_type: z .string() .describe( @@ -31440,7 +44998,9 @@ export namespace github { > export const PackagesListDockerMigrationConflictingPackagesForUserParamsSchema = - z.object({}) + z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type PackagesListDockerMigrationConflictingPackagesForUserParams = z.infer< typeof PackagesListDockerMigrationConflictingPackagesForUserParamsSchema @@ -31453,7 +45013,23 @@ export namespace github { typeof PackagesListDockerMigrationConflictingPackagesForUserResponseSchema > - export const ActivityListEventsForAuthenticatedUserParamsSchema = z.object({}) + export const ActivityListEventsForAuthenticatedUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListEventsForAuthenticatedUserParams = z.infer< typeof ActivityListEventsForAuthenticatedUserParamsSchema > @@ -31465,7 +45041,26 @@ export namespace github { > export const ActivityListOrgEventsForAuthenticatedUserParamsSchema = z.object( - {} + { + username: z.string().describe('The handle for the GitHub user account.'), + org: z + .string() + .describe('The organization name. The name is not case sensitive.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + } ) export type ActivityListOrgEventsForAuthenticatedUserParams = z.infer< typeof ActivityListOrgEventsForAuthenticatedUserParamsSchema @@ -31477,7 +45072,23 @@ export namespace github { typeof ActivityListOrgEventsForAuthenticatedUserResponseSchema > - export const ActivityListPublicEventsForUserParamsSchema = z.object({}) + export const ActivityListPublicEventsForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListPublicEventsForUserParams = z.infer< typeof ActivityListPublicEventsForUserParamsSchema > @@ -31488,7 +45099,23 @@ export namespace github { typeof ActivityListPublicEventsForUserResponseSchema > - export const UsersListFollowersForUserParamsSchema = z.object({}) + export const UsersListFollowersForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListFollowersForUserParams = z.infer< typeof UsersListFollowersForUserParamsSchema > @@ -31499,7 +45126,23 @@ export namespace github { typeof UsersListFollowersForUserResponseSchema > - export const UsersListFollowingForUserParamsSchema = z.object({}) + export const UsersListFollowingForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListFollowingForUserParams = z.infer< typeof UsersListFollowingForUserParamsSchema > @@ -31511,6 +45154,7 @@ export namespace github { > export const UsersCheckFollowingForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), target_user: z.string() }) export type UsersCheckFollowingForUserParams = z.infer< @@ -31519,7 +45163,30 @@ export namespace github { export type UsersCheckFollowingForUserResponse = undefined - export const GistsListForUserParamsSchema = z.object({}) + export const GistsListForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + since: z + .string() + .datetime({ offset: true }) + .describe( + 'Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.' + ) + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type GistsListForUserParams = z.infer< typeof GistsListForUserParamsSchema > @@ -31529,7 +45196,23 @@ export namespace github { typeof GistsListForUserResponseSchema > - export const UsersListGpgKeysForUserParamsSchema = z.object({}) + export const UsersListGpgKeysForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListGpgKeysForUserParams = z.infer< typeof UsersListGpgKeysForUserParamsSchema > @@ -31540,6 +45223,7 @@ export namespace github { > export const UsersGetContextForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), subject_type: z .enum(['organization', 'repository', 'issue', 'pull_request']) .describe( @@ -31562,7 +45246,9 @@ export namespace github { typeof UsersGetContextForUserResponseSchema > - export const AppsGetUserInstallationParamsSchema = z.object({}) + export const AppsGetUserInstallationParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type AppsGetUserInstallationParams = z.infer< typeof AppsGetUserInstallationParamsSchema > @@ -31572,7 +45258,23 @@ export namespace github { typeof AppsGetUserInstallationResponseSchema > - export const UsersListPublicKeysForUserParamsSchema = z.object({}) + export const UsersListPublicKeysForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListPublicKeysForUserParams = z.infer< typeof UsersListPublicKeysForUserParamsSchema > @@ -31583,7 +45285,23 @@ export namespace github { typeof UsersListPublicKeysForUserResponseSchema > - export const OrgsListForUserParamsSchema = z.object({}) + export const OrgsListForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type OrgsListForUserParams = z.infer< typeof OrgsListForUserParamsSchema > @@ -31594,11 +45312,32 @@ export namespace github { > export const PackagesListPackagesForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), package_type: z .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) .describe( "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + visibility: z + .enum(['public', 'private', 'internal']) + .describe( + 'The selected visibility of the packages. This parameter is optional and only filters an existing result set.\n\nThe `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`.\nFor the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)."' ) + .optional(), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30) }) export type PackagesListPackagesForUserParams = z.infer< typeof PackagesListPackagesForUserParamsSchema @@ -31610,7 +45349,15 @@ export namespace github { typeof PackagesListPackagesForUserResponseSchema > - export const PackagesGetPackageForUserParamsSchema = z.object({}) + export const PackagesGetPackageForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type PackagesGetPackageForUserParams = z.infer< typeof PackagesGetPackageForUserParamsSchema > @@ -31620,7 +45367,15 @@ export namespace github { typeof PackagesGetPackageForUserResponseSchema > - export const PackagesDeletePackageForUserParamsSchema = z.object({}) + export const PackagesDeletePackageForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type PackagesDeletePackageForUserParams = z.infer< typeof PackagesDeletePackageForUserParamsSchema > @@ -31628,6 +45383,13 @@ export namespace github { export type PackagesDeletePackageForUserResponse = undefined export const PackagesRestorePackageForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.'), token: z.string().describe('package token').optional() }) export type PackagesRestorePackageForUserParams = z.infer< @@ -31637,7 +45399,15 @@ export namespace github { export type PackagesRestorePackageForUserResponse = undefined export const PackagesGetAllPackageVersionsForPackageOwnedByUserParamsSchema = - z.object({}) + z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type PackagesGetAllPackageVersionsForPackageOwnedByUserParams = z.infer< typeof PackagesGetAllPackageVersionsForPackageOwnedByUserParamsSchema @@ -31650,7 +45420,19 @@ export namespace github { typeof PackagesGetAllPackageVersionsForPackageOwnedByUserResponseSchema > - export const PackagesGetPackageVersionForUserParamsSchema = z.object({}) + export const PackagesGetPackageVersionForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.'), + username: z.string().describe('The handle for the GitHub user account.') + }) export type PackagesGetPackageVersionForUserParams = z.infer< typeof PackagesGetPackageVersionForUserParamsSchema > @@ -31661,14 +45443,38 @@ export namespace github { typeof PackagesGetPackageVersionForUserResponseSchema > - export const PackagesDeletePackageVersionForUserParamsSchema = z.object({}) + export const PackagesDeletePackageVersionForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesDeletePackageVersionForUserParams = z.infer< typeof PackagesDeletePackageVersionForUserParamsSchema > export type PackagesDeletePackageVersionForUserResponse = undefined - export const PackagesRestorePackageVersionForUserParamsSchema = z.object({}) + export const PackagesRestorePackageVersionForUserParamsSchema = z.object({ + package_type: z + .enum(['npm', 'maven', 'rubygems', 'docker', 'nuget', 'container']) + .describe( + "The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry." + ), + package_name: z.string().describe('The name of the package.'), + username: z.string().describe('The handle for the GitHub user account.'), + package_version_id: z + .number() + .int() + .describe('Unique identifier of the package version.') + }) export type PackagesRestorePackageVersionForUserParams = z.infer< typeof PackagesRestorePackageVersionForUserParamsSchema > @@ -31676,10 +45482,25 @@ export namespace github { export type PackagesRestorePackageVersionForUserResponse = undefined export const ProjectsListForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), state: z .enum(['open', 'closed', 'all']) .describe('Indicates the state of the projects to return.') - .default('open') + .default('open'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ProjectsListForUserParams = z.infer< typeof ProjectsListForUserParamsSchema @@ -31690,7 +45511,23 @@ export namespace github { typeof ProjectsListForUserResponseSchema > - export const ActivityListReceivedEventsForUserParamsSchema = z.object({}) + export const ActivityListReceivedEventsForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListReceivedEventsForUserParams = z.infer< typeof ActivityListReceivedEventsForUserParamsSchema > @@ -31701,9 +45538,23 @@ export namespace github { typeof ActivityListReceivedEventsForUserResponseSchema > - export const ActivityListReceivedPublicEventsForUserParamsSchema = z.object( - {} - ) + export const ActivityListReceivedPublicEventsForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListReceivedPublicEventsForUserParams = z.infer< typeof ActivityListReceivedPublicEventsForUserParamsSchema > @@ -31715,6 +45566,7 @@ export namespace github { > export const ReposListForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), type: z .enum(['all', 'owner', 'member']) .describe('Limit results to repositories of the specified type.') @@ -31728,7 +45580,21 @@ export namespace github { .describe( 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.' ) - .optional() + .optional(), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) }) export type ReposListForUserParams = z.infer< typeof ReposListForUserParamsSchema @@ -31739,7 +45605,9 @@ export namespace github { typeof ReposListForUserResponseSchema > - export const BillingGetGithubActionsBillingUserParamsSchema = z.object({}) + export const BillingGetGithubActionsBillingUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type BillingGetGithubActionsBillingUserParams = z.infer< typeof BillingGetGithubActionsBillingUserParamsSchema > @@ -31750,7 +45618,9 @@ export namespace github { typeof BillingGetGithubActionsBillingUserResponseSchema > - export const BillingGetGithubPackagesBillingUserParamsSchema = z.object({}) + export const BillingGetGithubPackagesBillingUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type BillingGetGithubPackagesBillingUserParams = z.infer< typeof BillingGetGithubPackagesBillingUserParamsSchema > @@ -31761,7 +45631,9 @@ export namespace github { typeof BillingGetGithubPackagesBillingUserResponseSchema > - export const BillingGetSharedStorageBillingUserParamsSchema = z.object({}) + export const BillingGetSharedStorageBillingUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.') + }) export type BillingGetSharedStorageBillingUserParams = z.infer< typeof BillingGetSharedStorageBillingUserParamsSchema > @@ -31772,7 +45644,23 @@ export namespace github { typeof BillingGetSharedStorageBillingUserResponseSchema > - export const UsersListSocialAccountsForUserParamsSchema = z.object({}) + export const UsersListSocialAccountsForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListSocialAccountsForUserParams = z.infer< typeof UsersListSocialAccountsForUserParamsSchema > @@ -31783,7 +45671,23 @@ export namespace github { typeof UsersListSocialAccountsForUserResponseSchema > - export const UsersListSshSigningKeysForUserParamsSchema = z.object({}) + export const UsersListSshSigningKeysForUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type UsersListSshSigningKeysForUserParams = z.infer< typeof UsersListSshSigningKeysForUserParamsSchema > @@ -31794,7 +45698,33 @@ export namespace github { typeof UsersListSshSigningKeysForUserResponseSchema > - export const ActivityListReposStarredByUserParamsSchema = z.object({}) + export const ActivityListReposStarredByUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + sort: z + .enum(['created', 'updated']) + .describe( + 'The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.' + ) + .default('created'), + direction: z + .enum(['asc', 'desc']) + .describe('The direction to sort the results by.') + .default('desc'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListReposStarredByUserParams = z.infer< typeof ActivityListReposStarredByUserParamsSchema > @@ -31807,7 +45737,23 @@ export namespace github { typeof ActivityListReposStarredByUserResponseSchema > - export const ActivityListReposWatchedByUserParamsSchema = z.object({}) + export const ActivityListReposWatchedByUserParamsSchema = z.object({ + username: z.string().describe('The handle for the GitHub user account.'), + per_page: z + .number() + .int() + .describe( + 'The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(30), + page: z + .number() + .int() + .describe( + 'The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."' + ) + .default(1) + }) export type ActivityListReposWatchedByUserParams = z.infer< typeof ActivityListReposWatchedByUserParamsSchema > @@ -31893,7 +45839,29 @@ By default, all responses will exclude advisories for malware, because malware a ): Promise { return this.ky .get('/advisories', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'ghsa_id', + 'type', + 'cve_id', + 'ecosystem', + 'severity', + 'cwes', + 'is_withdrawn', + 'affects', + 'published', + 'updated', + 'modified', + 'epss_percentage', + 'epss_percentile', + 'before', + 'after', + 'direction', + 'per_page', + 'sort' + ) + ) }) .json() } @@ -31907,10 +45875,10 @@ By default, all responses will exclude advisories for malware, because malware a inputSchema: github.SecurityAdvisoriesGetGlobalAdvisoryParamsSchema }) async securityAdvisoriesGetGlobalAdvisory( - _params: github.SecurityAdvisoriesGetGlobalAdvisoryParams + params: github.SecurityAdvisoriesGetGlobalAdvisoryParams ): Promise { return this.ky - .get('/advisories/{ghsa_id}') + .get(`/advisories/${params.ghsa_id}`) .json() } @@ -31985,7 +45953,7 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic ): Promise { return this.ky .patch('/app/hook/config', { - json: params + json: pick(params, 'url', 'content_type', 'secret', 'insecure_ssl') }) .json() } @@ -32003,10 +45971,12 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsListWebhookDeliveriesParamsSchema }) async appsListWebhookDeliveries( - _params: github.AppsListWebhookDeliveriesParams + params: github.AppsListWebhookDeliveriesParams ): Promise { return this.ky - .get('/app/hook/deliveries') + .get('/app/hook/deliveries', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'cursor')) + }) .json() } @@ -32023,10 +45993,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsGetWebhookDeliveryParamsSchema }) async appsGetWebhookDelivery( - _params: github.AppsGetWebhookDeliveryParams + params: github.AppsGetWebhookDeliveryParams ): Promise { return this.ky - .get('/app/hook/deliveries/{delivery_id}') + .get(`/app/hook/deliveries/${params.delivery_id}`) .json() } @@ -32043,10 +46013,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsRedeliverWebhookDeliveryParamsSchema }) async appsRedeliverWebhookDelivery( - _params: github.AppsRedeliverWebhookDeliveryParams + params: github.AppsRedeliverWebhookDeliveryParams ): Promise { return this.ky - .post('/app/hook/deliveries/{delivery_id}/attempts') + .post(`/app/hook/deliveries/${params.delivery_id}/attempts`) .json() } @@ -32060,10 +46030,12 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic github.AppsListInstallationRequestsForAuthenticatedAppParamsSchema }) async appsListInstallationRequestsForAuthenticatedApp( - _params: github.AppsListInstallationRequestsForAuthenticatedAppParams + params: github.AppsListInstallationRequestsForAuthenticatedAppParams ): Promise { return this.ky - .get('/app/installation-requests') + .get('/app/installation-requests', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -32084,7 +46056,9 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic ): Promise { return this.ky .get('/app/installations', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'since', 'outdated') + ) }) .json() } @@ -32102,10 +46076,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsGetInstallationParamsSchema }) async appsGetInstallation( - _params: github.AppsGetInstallationParams + params: github.AppsGetInstallationParams ): Promise { return this.ky - .get('/app/installations/{installation_id}') + .get(`/app/installations/${params.installation_id}`) .json() } @@ -32122,10 +46096,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsDeleteInstallationParamsSchema }) async appsDeleteInstallation( - _params: github.AppsDeleteInstallationParams + params: github.AppsDeleteInstallationParams ): Promise { return this.ky - .delete('/app/installations/{installation_id}') + .delete(`/app/installations/${params.installation_id}`) .json() } @@ -32153,8 +46127,8 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic params: github.AppsCreateInstallationAccessTokenParams ): Promise { return this.ky - .post('/app/installations/{installation_id}/access_tokens', { - json: params + .post(`/app/installations/${params.installation_id}/access_tokens`, { + json: pick(params, 'repositories', 'repository_ids', 'permissions') }) .json() } @@ -32172,10 +46146,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsSuspendInstallationParamsSchema }) async appsSuspendInstallation( - _params: github.AppsSuspendInstallationParams + params: github.AppsSuspendInstallationParams ): Promise { return this.ky - .put('/app/installations/{installation_id}/suspended') + .put(`/app/installations/${params.installation_id}/suspended`) .json() } @@ -32192,10 +46166,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsUnsuspendInstallationParamsSchema }) async appsUnsuspendInstallation( - _params: github.AppsUnsuspendInstallationParams + params: github.AppsUnsuspendInstallationParams ): Promise { return this.ky - .delete('/app/installations/{installation_id}/suspended') + .delete(`/app/installations/${params.installation_id}/suspended`) .json() } @@ -32213,8 +46187,8 @@ Deleting an application's grant will also delete all OAuth tokens associated wit params: github.AppsDeleteAuthorizationParams ): Promise { return this.ky - .delete('/applications/{client_id}/grant', { - json: params + .delete(`/applications/${params.client_id}/grant`, { + json: pick(params, 'access_token') }) .json() } @@ -32231,8 +46205,8 @@ Deleting an application's grant will also delete all OAuth tokens associated wit params: github.AppsCheckTokenParams ): Promise { return this.ky - .post('/applications/{client_id}/token', { - json: params + .post(`/applications/${params.client_id}/token`, { + json: pick(params, 'access_token') }) .json() } @@ -32249,8 +46223,8 @@ Deleting an application's grant will also delete all OAuth tokens associated wit params: github.AppsDeleteTokenParams ): Promise { return this.ky - .delete('/applications/{client_id}/token', { - json: params + .delete(`/applications/${params.client_id}/token`, { + json: pick(params, 'access_token') }) .json() } @@ -32267,8 +46241,8 @@ Deleting an application's grant will also delete all OAuth tokens associated wit params: github.AppsResetTokenParams ): Promise { return this.ky - .patch('/applications/{client_id}/token', { - json: params + .patch(`/applications/${params.client_id}/token`, { + json: pick(params, 'access_token') }) .json() } @@ -32293,8 +46267,16 @@ Invalid tokens will return \`404 NOT FOUND\`.`, params: github.AppsScopeTokenParams ): Promise { return this.ky - .post('/applications/{client_id}/token/scoped', { - json: params + .post(`/applications/${params.client_id}/token/scoped`, { + json: pick( + params, + 'access_token', + 'target', + 'target_id', + 'repositories', + 'repository_ids', + 'permissions' + ) }) .json() } @@ -32310,9 +46292,11 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.AppsGetBySlugParamsSchema }) async appsGetBySlug( - _params: github.AppsGetBySlugParams + params: github.AppsGetBySlugParams ): Promise { - return this.ky.get('/apps/{app_slug}').json() + return this.ky + .get(`/apps/${params.app_slug}`) + .json() } /** @@ -32324,10 +46308,10 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.ClassroomGetAnAssignmentParamsSchema }) async classroomGetAnAssignment( - _params: github.ClassroomGetAnAssignmentParams + params: github.ClassroomGetAnAssignmentParams ): Promise { return this.ky - .get('/assignments/{assignment_id}') + .get(`/assignments/${params.assignment_id}`) .json() } @@ -32341,10 +46325,12 @@ Invalid tokens will return \`404 NOT FOUND\`.`, github.ClassroomListAcceptedAssignmentsForAnAssignmentParamsSchema }) async classroomListAcceptedAssignmentsForAnAssignment( - _params: github.ClassroomListAcceptedAssignmentsForAnAssignmentParams + params: github.ClassroomListAcceptedAssignmentsForAnAssignmentParams ): Promise { return this.ky - .get('/assignments/{assignment_id}/accepted_assignments') + .get(`/assignments/${params.assignment_id}/accepted_assignments`, { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + }) .json() } @@ -32357,10 +46343,10 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.ClassroomGetAssignmentGradesParamsSchema }) async classroomGetAssignmentGrades( - _params: github.ClassroomGetAssignmentGradesParams + params: github.ClassroomGetAssignmentGradesParams ): Promise { return this.ky - .get('/assignments/{assignment_id}/grades') + .get(`/assignments/${params.assignment_id}/grades`) .json() } @@ -32373,10 +46359,12 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.ClassroomListClassroomsParamsSchema }) async classroomListClassrooms( - _params: github.ClassroomListClassroomsParams + params: github.ClassroomListClassroomsParams ): Promise { return this.ky - .get('/classrooms') + .get('/classrooms', { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + }) .json() } @@ -32389,10 +46377,10 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.ClassroomGetAclassroomParamsSchema }) async classroomGetAClassroom( - _params: github.ClassroomGetAclassroomParams + params: github.ClassroomGetAclassroomParams ): Promise { return this.ky - .get('/classrooms/{classroom_id}') + .get(`/classrooms/${params.classroom_id}`) .json() } @@ -32405,10 +46393,12 @@ Invalid tokens will return \`404 NOT FOUND\`.`, inputSchema: github.ClassroomListAssignmentsForAclassroomParamsSchema }) async classroomListAssignmentsForAClassroom( - _params: github.ClassroomListAssignmentsForAclassroomParams + params: github.ClassroomListAssignmentsForAclassroomParams ): Promise { return this.ky - .get('/classrooms/{classroom_id}/assignments') + .get(`/classrooms/${params.classroom_id}/assignments`, { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + }) .json() } @@ -32478,9 +46468,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:enterprise params: github.CodeSecurityGetConfigurationsForEnterpriseParams ): Promise { return this.ky - .get('/enterprises/{enterprise}/code-security/configurations', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/enterprises/${params.enterprise}/code-security/configurations`, + { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after') + ) + } + ) .json() } @@ -32504,9 +46499,33 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:enterpris params: github.CodeSecurityCreateConfigurationForEnterpriseParams ): Promise { return this.ky - .post('/enterprises/{enterprise}/code-security/configurations', { - json: params - }) + .post( + `/enterprises/${params.enterprise}/code-security/configurations`, + { + json: pick( + params, + 'name', + 'description', + 'advanced_security', + 'dependency_graph', + 'dependency_graph_autosubmit_action', + 'dependency_graph_autosubmit_action_options', + 'dependabot_alerts', + 'dependabot_security_updates', + 'code_scanning_default_setup', + 'code_scanning_default_setup_options', + 'code_scanning_delegated_alert_dismissal', + 'secret_scanning', + 'secret_scanning_push_protection', + 'secret_scanning_validity_checks', + 'secret_scanning_non_provider_patterns', + 'secret_scanning_generic_secrets', + 'secret_scanning_delegated_alert_dismissal', + 'private_vulnerability_reporting', + 'enforcement' + ) + } + ) .json() } @@ -32528,10 +46547,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:enterprise github.CodeSecurityGetDefaultConfigurationsForEnterpriseParamsSchema }) async codeSecurityGetDefaultConfigurationsForEnterprise( - _params: github.CodeSecurityGetDefaultConfigurationsForEnterpriseParams + params: github.CodeSecurityGetDefaultConfigurationsForEnterpriseParams ): Promise { return this.ky - .get('/enterprises/{enterprise}/code-security/configurations/defaults') + .get( + `/enterprises/${params.enterprise}/code-security/configurations/defaults` + ) .json() } @@ -32553,11 +46574,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:enterprise github.CodeSecurityGetSingleConfigurationForEnterpriseParamsSchema }) async codeSecurityGetSingleConfigurationForEnterprise( - _params: github.CodeSecurityGetSingleConfigurationForEnterpriseParams + params: github.CodeSecurityGetSingleConfigurationForEnterpriseParams ): Promise { return this.ky .get( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}' + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}`, + {} ) .json() } @@ -32583,11 +46605,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:enterpris inputSchema: github.CodeSecurityDeleteConfigurationForEnterpriseParamsSchema }) async codeSecurityDeleteConfigurationForEnterprise( - _params: github.CodeSecurityDeleteConfigurationForEnterpriseParams + params: github.CodeSecurityDeleteConfigurationForEnterpriseParams ): Promise { return this.ky .delete( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}' + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}`, + {} ) .json() } @@ -32613,9 +46636,30 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:enterpris ): Promise { return this.ky .patch( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}', + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}`, { - json: params + json: pick( + params, + 'name', + 'description', + 'advanced_security', + 'dependency_graph', + 'dependency_graph_autosubmit_action', + 'dependency_graph_autosubmit_action_options', + 'dependabot_alerts', + 'dependabot_security_updates', + 'code_scanning_default_setup', + 'code_scanning_default_setup_options', + 'code_scanning_delegated_alert_dismissal', + 'secret_scanning', + 'secret_scanning_push_protection', + 'secret_scanning_validity_checks', + 'secret_scanning_non_provider_patterns', + 'secret_scanning_generic_secrets', + 'secret_scanning_delegated_alert_dismissal', + 'private_vulnerability_reporting', + 'enforcement' + ) } ) .json() @@ -32646,9 +46690,9 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:enterpris ): Promise { return this.ky .post( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach', + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}/attach`, { - json: params + json: pick(params, 'scope') } ) .json() @@ -32680,9 +46724,9 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:enterpris ): Promise { return this.ky .put( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults', + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}/defaults`, { - json: params + json: pick(params, 'default_for_new_repos') } ) .json() @@ -32710,9 +46754,11 @@ OAuth app tokens and personal access tokens (classic) need the \`read:enterprise ): Promise { return this.ky .get( - '/enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories', + `/enterprises/${params.enterprise}/code-security/configurations/${params.configuration_id}/repositories`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after', 'status') + ) } ) .json() @@ -32739,10 +46785,29 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.DependabotListAlertsForEnterpriseParamsSchema }) async dependabotListAlertsForEnterprise( - _params: github.DependabotListAlertsForEnterpriseParams + params: github.DependabotListAlertsForEnterpriseParams ): Promise { return this.ky - .get('/enterprises/{enterprise}/dependabot/alerts') + .get(`/enterprises/${params.enterprise}/dependabot/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'severity', + 'ecosystem', + 'package', + 'epss_percentage', + 'scope', + 'sort', + 'direction', + 'before', + 'after', + 'first', + 'last', + 'per_page' + ) + ) + }) .json() } @@ -32767,10 +46832,27 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope or inputSchema: github.SecretScanningListAlertsForEnterpriseParamsSchema }) async secretScanningListAlertsForEnterprise( - _params: github.SecretScanningListAlertsForEnterpriseParams + params: github.SecretScanningListAlertsForEnterpriseParams ): Promise { return this.ky - .get('/enterprises/{enterprise}/secret-scanning/alerts') + .get(`/enterprises/${params.enterprise}/secret-scanning/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'secret_type', + 'resolution', + 'sort', + 'direction', + 'per_page', + 'before', + 'after', + 'validity', + 'is_publicly_leaked', + 'is_multi_repo' + ) + ) + }) .json() } @@ -32785,10 +46867,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope or inputSchema: github.ActivityListPublicEventsParamsSchema }) async activityListPublicEvents( - _params: github.ActivityListPublicEventsParams + params: github.ActivityListPublicEventsParams ): Promise { return this.ky - .get('/events') + .get('/events', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -32841,9 +46925,15 @@ By default, timeline resources are returned in JSON. You can specify the \`appli inputSchema: github.GistsListParamsSchema }) async gistsList( - _params: github.GistsListParams + params: github.GistsListParams ): Promise { - return this.ky.get('/gists').json() + return this.ky + .get('/gists', { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'per_page', 'page') + ) + }) + .json() } /** @@ -32865,7 +46955,7 @@ By default, timeline resources are returned in JSON. You can specify the \`appli ): Promise { return this.ky .post('/gists', { - json: params + json: pick(params, 'description', 'files', 'public') }) .json() } @@ -32883,9 +46973,15 @@ Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in- inputSchema: github.GistsListPublicParamsSchema }) async gistsListPublic( - _params: github.GistsListPublicParams + params: github.GistsListPublicParams ): Promise { - return this.ky.get('/gists/public').json() + return this.ky + .get('/gists/public', { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'per_page', 'page') + ) + }) + .json() } /** @@ -32897,9 +46993,15 @@ Note: With [pagination](https://docs.github.com/rest/guides/using-pagination-in- inputSchema: github.GistsListStarredParamsSchema }) async gistsListStarred( - _params: github.GistsListStarredParams + params: github.GistsListStarredParams ): Promise { - return this.ky.get('/gists/starred').json() + return this.ky + .get('/gists/starred', { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'per_page', 'page') + ) + }) + .json() } /** @@ -32921,9 +47023,11 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsGetParamsSchema }) async gistsGet( - _params: github.GistsGetParams + params: github.GistsGetParams ): Promise { - return this.ky.get('/gists/{gist_id}').json() + return this.ky + .get(`/gists/${params.gist_id}`) + .json() } /** @@ -32935,9 +47039,11 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsDeleteParamsSchema }) async gistsDelete( - _params: github.GistsDeleteParams + params: github.GistsDeleteParams ): Promise { - return this.ky.delete('/gists/{gist_id}').json() + return this.ky + .delete(`/gists/${params.gist_id}`) + .json() } /** @@ -32970,8 +47076,8 @@ This endpoint supports the following custom media types. For more information, s params: github.GistsUpdateParams ): Promise { return this.ky - .patch('/gists/{gist_id}', { - json: params + .patch(`/gists/${params.gist_id}`, { + json: pick(params, 'description', 'files') }) .json() } @@ -32995,10 +47101,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsListCommentsParamsSchema }) async gistsListComments( - _params: github.GistsListCommentsParams + params: github.GistsListCommentsParams ): Promise { return this.ky - .get('/gists/{gist_id}/comments') + .get(`/gists/${params.gist_id}/comments`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33024,8 +47132,8 @@ This endpoint supports the following custom media types. For more information, s params: github.GistsCreateCommentParams ): Promise { return this.ky - .post('/gists/{gist_id}/comments', { - json: params + .post(`/gists/${params.gist_id}/comments`, { + json: pick(params, 'body') }) .json() } @@ -33049,10 +47157,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsGetCommentParamsSchema }) async gistsGetComment( - _params: github.GistsGetCommentParams + params: github.GistsGetCommentParams ): Promise { return this.ky - .get('/gists/{gist_id}/comments/{comment_id}') + .get(`/gists/${params.gist_id}/comments/${params.comment_id}`, {}) .json() } @@ -33065,10 +47173,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsDeleteCommentParamsSchema }) async gistsDeleteComment( - _params: github.GistsDeleteCommentParams + params: github.GistsDeleteCommentParams ): Promise { return this.ky - .delete('/gists/{gist_id}/comments/{comment_id}') + .delete( + `/gists/${params.gist_id}/comments/${params.comment_id}`, + {} + ) .json() } @@ -33094,8 +47205,8 @@ This endpoint supports the following custom media types. For more information, s params: github.GistsUpdateCommentParams ): Promise { return this.ky - .patch('/gists/{gist_id}/comments/{comment_id}', { - json: params + .patch(`/gists/${params.gist_id}/comments/${params.comment_id}`, { + json: pick(params, 'body') }) .json() } @@ -33109,10 +47220,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsListCommitsParamsSchema }) async gistsListCommits( - _params: github.GistsListCommitsParams + params: github.GistsListCommitsParams ): Promise { return this.ky - .get('/gists/{gist_id}/commits') + .get(`/gists/${params.gist_id}/commits`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33125,10 +47238,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsListForksParamsSchema }) async gistsListForks( - _params: github.GistsListForksParams + params: github.GistsListForksParams ): Promise { return this.ky - .get('/gists/{gist_id}/forks') + .get(`/gists/${params.gist_id}/forks`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33141,10 +47256,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsForkParamsSchema }) async gistsFork( - _params: github.GistsForkParams + params: github.GistsForkParams ): Promise { return this.ky - .post('/gists/{gist_id}/forks') + .post(`/gists/${params.gist_id}/forks`) .json() } @@ -33157,10 +47272,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsCheckIsStarredParamsSchema }) async gistsCheckIsStarred( - _params: github.GistsCheckIsStarredParams + params: github.GistsCheckIsStarredParams ): Promise { return this.ky - .get('/gists/{gist_id}/star') + .get(`/gists/${params.gist_id}/star`) .json() } @@ -33173,9 +47288,11 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsStarParamsSchema }) async gistsStar( - _params: github.GistsStarParams + params: github.GistsStarParams ): Promise { - return this.ky.put('/gists/{gist_id}/star').json() + return this.ky + .put(`/gists/${params.gist_id}/star`) + .json() } /** @@ -33187,10 +47304,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.GistsUnstarParamsSchema }) async gistsUnstar( - _params: github.GistsUnstarParams + params: github.GistsUnstarParams ): Promise { return this.ky - .delete('/gists/{gist_id}/star') + .delete(`/gists/${params.gist_id}/star`) .json() } @@ -33216,7 +47333,7 @@ This endpoint supports the following custom media types. For more information, s params: github.GistsGetRevisionParams ): Promise { return this.ky - .get(`/gists/${params.gist_id}/${params.sha}`) + .get(`/gists/${params.gist_id}/${params.sha}`, {}) .json() } @@ -33269,10 +47386,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.AppsListReposAccessibleToInstallationParamsSchema }) async appsListReposAccessibleToInstallation( - _params: github.AppsListReposAccessibleToInstallationParams + params: github.AppsListReposAccessibleToInstallationParams ): Promise { return this.ky - .get('/installation/repositories') + .get('/installation/repositories', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33333,7 +47452,23 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .get('/issues', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'filter', + 'state', + 'labels', + 'sort', + 'direction', + 'since', + 'collab', + 'orgs', + 'owned', + 'pulls', + 'per_page', + 'page' + ) + ) }) .json() } @@ -33351,7 +47486,9 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .get('/licenses', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'featured', 'per_page', 'page') + ) }) .json() } @@ -33385,7 +47522,7 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .post('/markdown', { - json: params + json: pick(params, 'text', 'mode', 'context') }) .json() } @@ -33419,10 +47556,10 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a inputSchema: github.AppsGetSubscriptionPlanForAccountParamsSchema }) async appsGetSubscriptionPlanForAccount( - _params: github.AppsGetSubscriptionPlanForAccountParams + params: github.AppsGetSubscriptionPlanForAccountParams ): Promise { return this.ky - .get('/marketplace_listing/accounts/{account_id}') + .get(`/marketplace_listing/accounts/${params.account_id}`) .json() } @@ -33439,10 +47576,12 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a inputSchema: github.AppsListPlansParamsSchema }) async appsListPlans( - _params: github.AppsListPlansParams + params: github.AppsListPlansParams ): Promise { return this.ky - .get('/marketplace_listing/plans') + .get('/marketplace_listing/plans', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33462,8 +47601,10 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a params: github.AppsListAccountsForPlanParams ): Promise { return this.ky - .get('/marketplace_listing/plans/{plan_id}/accounts', { - searchParams: sanitizeSearchParams(params) + .get(`/marketplace_listing/plans/${params.plan_id}/accounts`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'per_page', 'page') + ) }) .json() } @@ -33481,10 +47622,10 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a inputSchema: github.AppsGetSubscriptionPlanForAccountStubbedParamsSchema }) async appsGetSubscriptionPlanForAccountStubbed( - _params: github.AppsGetSubscriptionPlanForAccountStubbedParams + params: github.AppsGetSubscriptionPlanForAccountStubbedParams ): Promise { return this.ky - .get('/marketplace_listing/stubbed/accounts/{account_id}') + .get(`/marketplace_listing/stubbed/accounts/${params.account_id}`) .json() } @@ -33501,10 +47642,12 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a inputSchema: github.AppsListPlansStubbedParamsSchema }) async appsListPlansStubbed( - _params: github.AppsListPlansStubbedParams + params: github.AppsListPlansStubbedParams ): Promise { return this.ky - .get('/marketplace_listing/stubbed/plans') + .get('/marketplace_listing/stubbed/plans', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33524,8 +47667,10 @@ GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/a params: github.AppsListAccountsForPlanStubbedParams ): Promise { return this.ky - .get('/marketplace_listing/stubbed/plans/{plan_id}/accounts', { - searchParams: sanitizeSearchParams(params) + .get(`/marketplace_listing/stubbed/plans/${params.plan_id}/accounts`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'per_page', 'page') + ) }) .json() } @@ -33569,10 +47714,12 @@ The values shown in the documentation's response are example values. You must al inputSchema: github.ActivityListPublicEventsForRepoNetworkParamsSchema }) async activityListPublicEventsForRepoNetwork( - _params: github.ActivityListPublicEventsForRepoNetworkParams + params: github.ActivityListPublicEventsForRepoNetworkParams ): Promise { return this.ky - .get('/networks/{owner}/{repo}/events') + .get(`/networks/${params.owner}/${params.repo}/events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33590,7 +47737,17 @@ The values shown in the documentation's response are example values. You must al ): Promise { return this.ky .get('/notifications', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'all', + 'participating', + 'since', + 'before', + 'page', + 'per_page' + ) + ) }) .json() } @@ -33608,7 +47765,7 @@ The values shown in the documentation's response are example values. You must al ): Promise { return this.ky .put('/notifications', { - json: params + json: pick(params, 'last_read_at', 'read') }) .json() } @@ -33622,10 +47779,10 @@ The values shown in the documentation's response are example values. You must al inputSchema: github.ActivityGetThreadParamsSchema }) async activityGetThread( - _params: github.ActivityGetThreadParams + params: github.ActivityGetThreadParams ): Promise { return this.ky - .get('/notifications/threads/{thread_id}') + .get(`/notifications/threads/${params.thread_id}`) .json() } @@ -33638,10 +47795,10 @@ The values shown in the documentation's response are example values. You must al inputSchema: github.ActivityMarkThreadAsDoneParamsSchema }) async activityMarkThreadAsDone( - _params: github.ActivityMarkThreadAsDoneParams + params: github.ActivityMarkThreadAsDoneParams ): Promise { return this.ky - .delete('/notifications/threads/{thread_id}') + .delete(`/notifications/threads/${params.thread_id}`) .json() } @@ -33654,10 +47811,10 @@ The values shown in the documentation's response are example values. You must al inputSchema: github.ActivityMarkThreadAsReadParamsSchema }) async activityMarkThreadAsRead( - _params: github.ActivityMarkThreadAsReadParams + params: github.ActivityMarkThreadAsReadParams ): Promise { return this.ky - .patch('/notifications/threads/{thread_id}') + .patch(`/notifications/threads/${params.thread_id}`) .json() } @@ -33675,10 +47832,10 @@ Note that subscriptions are only generated if a user is participating in a conve github.ActivityGetThreadSubscriptionForAuthenticatedUserParamsSchema }) async activityGetThreadSubscriptionForAuthenticatedUser( - _params: github.ActivityGetThreadSubscriptionForAuthenticatedUserParams + params: github.ActivityGetThreadSubscriptionForAuthenticatedUserParams ): Promise { return this.ky - .get('/notifications/threads/{thread_id}/subscription') + .get(`/notifications/threads/${params.thread_id}/subscription`) .json() } @@ -33702,8 +47859,8 @@ Unsubscribing from a conversation in a repository that you are not watching is f params: github.ActivitySetThreadSubscriptionParams ): Promise { return this.ky - .put('/notifications/threads/{thread_id}/subscription', { - json: params + .put(`/notifications/threads/${params.thread_id}/subscription`, { + json: pick(params, 'ignored') }) .json() } @@ -33717,10 +47874,10 @@ Unsubscribing from a conversation in a repository that you are not watching is f inputSchema: github.ActivityDeleteThreadSubscriptionParamsSchema }) async activityDeleteThreadSubscription( - _params: github.ActivityDeleteThreadSubscriptionParams + params: github.ActivityDeleteThreadSubscriptionParams ): Promise { return this.ky - .delete('/notifications/threads/{thread_id}/subscription') + .delete(`/notifications/threads/${params.thread_id}/subscription`) .json() } @@ -33757,9 +47914,13 @@ Unsubscribing from a conversation in a repository that you are not watching is f inputSchema: github.OrgsListParamsSchema }) async orgsList( - _params: github.OrgsListParams + params: github.OrgsListParams ): Promise { - return this.ky.get('/organizations').json() + return this.ky + .get('/organizations', { + searchParams: sanitizeSearchParams(pick(params, 'since', 'per_page')) + }) + .json() } /** @@ -33775,10 +47936,14 @@ Unsubscribing from a conversation in a repository that you are not watching is f inputSchema: github.BillingGetGithubBillingUsageReportOrgParamsSchema }) async billingGetGithubBillingUsageReportOrg( - _params: github.BillingGetGithubBillingUsageReportOrgParams + params: github.BillingGetGithubBillingUsageReportOrgParams ): Promise { return this.ky - .get('/organizations/{org}/settings/billing/usage') + .get(`/organizations/${params.org}/settings/billing/usage`, { + searchParams: sanitizeSearchParams( + pick(params, 'year', 'month', 'day', 'hour') + ) + }) .json() } @@ -33806,10 +47971,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco To see information about an organization's GitHub plan, GitHub Apps need the \`Organization plan\` permission.`, inputSchema: github.OrgsGetParamsSchema }) - async orgsGet( - _params: github.OrgsGetParams - ): Promise { - return this.ky.get('/orgs/{org}').json() + async orgsGet(params: github.OrgsGetParams): Promise { + return this.ky.get(`/orgs/${params.org}`).json() } /** @@ -33833,9 +47996,11 @@ https://docs.github.com/site-policy/github-terms/github-terms-of-service.`, inputSchema: github.OrgsDeleteParamsSchema }) async orgsDelete( - _params: github.OrgsDeleteParams + params: github.OrgsDeleteParams ): Promise { - return this.ky.delete('/orgs/{org}').json() + return this.ky + .delete(`/orgs/${params.org}`) + .json() } /** @@ -33870,8 +48035,40 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` or params: github.OrgsUpdateParams ): Promise { return this.ky - .patch('/orgs/{org}', { - json: params + .patch(`/orgs/${params.org}`, { + json: pick( + params, + 'billing_email', + 'company', + 'email', + 'twitter_username', + 'location', + 'name', + 'description', + 'has_organization_projects', + 'has_repository_projects', + 'default_repository_permission', + 'members_can_create_repositories', + 'members_can_create_internal_repositories', + 'members_can_create_private_repositories', + 'members_can_create_public_repositories', + 'members_allowed_repository_creation_type', + 'members_can_create_pages', + 'members_can_create_public_pages', + 'members_can_create_private_pages', + 'members_can_fork_private_repositories', + 'web_commit_signoff_required', + 'blog', + 'advanced_security_enabled_for_new_repositories', + 'dependabot_alerts_enabled_for_new_repositories', + 'dependabot_security_updates_enabled_for_new_repositories', + 'dependency_graph_enabled_for_new_repositories', + 'secret_scanning_enabled_for_new_repositories', + 'secret_scanning_push_protection_enabled_for_new_repositories', + 'secret_scanning_push_protection_custom_link_enabled', + 'secret_scanning_push_protection_custom_link', + 'deploy_keys_enabled_for_repositories' + ) }) .json() } @@ -33891,10 +48088,10 @@ OAuth tokens and personal access tokens (classic) need the \`read:org\` scope to inputSchema: github.ActionsGetActionsCacheUsageForOrgParamsSchema }) async actionsGetActionsCacheUsageForOrg( - _params: github.ActionsGetActionsCacheUsageForOrgParams + params: github.ActionsGetActionsCacheUsageForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/cache/usage') + .get(`/orgs/${params.org}/actions/cache/usage`) .json() } @@ -33913,10 +48110,12 @@ OAuth tokens and personal access tokens (classic) need the \`read:org\` scope to inputSchema: github.ActionsGetActionsCacheUsageByRepoForOrgParamsSchema }) async actionsGetActionsCacheUsageByRepoForOrg( - _params: github.ActionsGetActionsCacheUsageByRepoForOrgParams + params: github.ActionsGetActionsCacheUsageByRepoForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/cache/usage-by-repository') + .get(`/orgs/${params.org}/actions/cache/usage-by-repository`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33933,10 +48132,12 @@ OAuth app tokens and personal access tokens (classic) need the \`manage_runner:o inputSchema: github.ActionsListHostedRunnersForOrgParamsSchema }) async actionsListHostedRunnersForOrg( - _params: github.ActionsListHostedRunnersForOrgParams + params: github.ActionsListHostedRunnersForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners') + .get(`/orgs/${params.org}/actions/hosted-runners`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -33954,8 +48155,16 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ params: github.ActionsCreateHostedRunnerForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/hosted-runners', { - json: params + .post(`/orgs/${params.org}/actions/hosted-runners`, { + json: pick( + params, + 'name', + 'image', + 'size', + 'runner_group_id', + 'maximum_runners', + 'enable_static_ip' + ) }) .json() } @@ -33970,10 +48179,10 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ github.ActionsGetHostedRunnersGithubOwnedImagesForOrgParamsSchema }) async actionsGetHostedRunnersGithubOwnedImagesForOrg( - _params: github.ActionsGetHostedRunnersGithubOwnedImagesForOrgParams + params: github.ActionsGetHostedRunnersGithubOwnedImagesForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/images/github-owned') + .get(`/orgs/${params.org}/actions/hosted-runners/images/github-owned`) .json() } @@ -33986,10 +48195,10 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ inputSchema: github.ActionsGetHostedRunnersPartnerImagesForOrgParamsSchema }) async actionsGetHostedRunnersPartnerImagesForOrg( - _params: github.ActionsGetHostedRunnersPartnerImagesForOrgParams + params: github.ActionsGetHostedRunnersPartnerImagesForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/images/partner') + .get(`/orgs/${params.org}/actions/hosted-runners/images/partner`) .json() } @@ -34002,10 +48211,10 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ inputSchema: github.ActionsGetHostedRunnersLimitsForOrgParamsSchema }) async actionsGetHostedRunnersLimitsForOrg( - _params: github.ActionsGetHostedRunnersLimitsForOrgParams + params: github.ActionsGetHostedRunnersLimitsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/limits') + .get(`/orgs/${params.org}/actions/hosted-runners/limits`) .json() } @@ -34018,10 +48227,10 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ inputSchema: github.ActionsGetHostedRunnersMachineSpecsForOrgParamsSchema }) async actionsGetHostedRunnersMachineSpecsForOrg( - _params: github.ActionsGetHostedRunnersMachineSpecsForOrgParams + params: github.ActionsGetHostedRunnersMachineSpecsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/machine-sizes') + .get(`/orgs/${params.org}/actions/hosted-runners/machine-sizes`) .json() } @@ -34034,10 +48243,10 @@ OAuth tokens and personal access tokens (classic) need the \`manage_runners:org\ inputSchema: github.ActionsGetHostedRunnersPlatformsForOrgParamsSchema }) async actionsGetHostedRunnersPlatformsForOrg( - _params: github.ActionsGetHostedRunnersPlatformsForOrgParams + params: github.ActionsGetHostedRunnersPlatformsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/platforms') + .get(`/orgs/${params.org}/actions/hosted-runners/platforms`) .json() } @@ -34054,10 +48263,13 @@ OAuth app tokens and personal access tokens (classic) need the \`manage_runners: inputSchema: github.ActionsGetHostedRunnerForOrgParamsSchema }) async actionsGetHostedRunnerForOrg( - _params: github.ActionsGetHostedRunnerForOrgParams + params: github.ActionsGetHostedRunnerForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}') + .get( + `/orgs/${params.org}/actions/hosted-runners/${params.hosted_runner_id}`, + {} + ) .json() } @@ -34070,10 +48282,13 @@ OAuth app tokens and personal access tokens (classic) need the \`manage_runners: inputSchema: github.ActionsDeleteHostedRunnerForOrgParamsSchema }) async actionsDeleteHostedRunnerForOrg( - _params: github.ActionsDeleteHostedRunnerForOrgParams + params: github.ActionsDeleteHostedRunnerForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}') + .delete( + `/orgs/${params.org}/actions/hosted-runners/${params.hosted_runner_id}`, + {} + ) .json() } @@ -34091,9 +48306,18 @@ OAuth app tokens and personal access tokens (classic) need the \`manage_runners: params: github.ActionsUpdateHostedRunnerForOrgParams ): Promise { return this.ky - .patch('/orgs/{org}/actions/hosted-runners/{hosted_runner_id}', { - json: params - }) + .patch( + `/orgs/${params.org}/actions/hosted-runners/${params.hosted_runner_id}`, + { + json: pick( + params, + 'name', + 'runner_group_id', + 'maximum_runners', + 'enable_static_ip' + ) + } + ) .json() } @@ -34110,10 +48334,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:org\` scop inputSchema: github.OidcGetOidcCustomSubTemplateForOrgParamsSchema }) async oidcGetOidcCustomSubTemplateForOrg( - _params: github.OidcGetOidcCustomSubTemplateForOrgParams + params: github.OidcGetOidcCustomSubTemplateForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/oidc/customization/sub') + .get(`/orgs/${params.org}/actions/oidc/customization/sub`) .json() } @@ -34133,8 +48357,8 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco params: github.OidcUpdateOidcCustomSubTemplateForOrgParams ): Promise { return this.ky - .put('/orgs/{org}/actions/oidc/customization/sub', { - json: params + .put(`/orgs/${params.org}/actions/oidc/customization/sub`, { + json: pick(params, 'include_claim_keys') }) .json() } @@ -34153,10 +48377,10 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t github.ActionsGetGithubActionsPermissionsOrganizationParamsSchema }) async actionsGetGithubActionsPermissionsOrganization( - _params: github.ActionsGetGithubActionsPermissionsOrganizationParams + params: github.ActionsGetGithubActionsPermissionsOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/actions/permissions') + .get(`/orgs/${params.org}/actions/permissions`) .json() } @@ -34177,8 +48401,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetGithubActionsPermissionsOrganizationParams ): Promise { return this.ky - .put('/orgs/{org}/actions/permissions', { - json: params + .put(`/orgs/${params.org}/actions/permissions`, { + json: pick(params, 'enabled_repositories', 'allowed_actions') }) .json() } @@ -34197,10 +48421,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco github.ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParamsSchema }) async actionsListSelectedRepositoriesEnabledGithubActionsOrganization( - _params: github.ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams + params: github.ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/actions/permissions/repositories') + .get(`/orgs/${params.org}/actions/permissions/repositories`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -34223,8 +48449,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams ): Promise { return this.ky - .put('/orgs/{org}/actions/permissions/repositories', { - json: params + .put(`/orgs/${params.org}/actions/permissions/repositories`, { + json: pick(params, 'selected_repository_ids') }) .json() } @@ -34243,10 +48469,13 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t github.ActionsEnableSelectedRepositoryGithubActionsOrganizationParamsSchema }) async actionsEnableSelectedRepositoryGithubActionsOrganization( - _params: github.ActionsEnableSelectedRepositoryGithubActionsOrganizationParams + params: github.ActionsEnableSelectedRepositoryGithubActionsOrganizationParams ): Promise { return this.ky - .put('/orgs/{org}/actions/permissions/repositories/{repository_id}') + .put( + `/orgs/${params.org}/actions/permissions/repositories/${params.repository_id}`, + {} + ) .json() } @@ -34264,10 +48493,13 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t github.ActionsDisableSelectedRepositoryGithubActionsOrganizationParamsSchema }) async actionsDisableSelectedRepositoryGithubActionsOrganization( - _params: github.ActionsDisableSelectedRepositoryGithubActionsOrganizationParams + params: github.ActionsDisableSelectedRepositoryGithubActionsOrganizationParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/permissions/repositories/{repository_id}') + .delete( + `/orgs/${params.org}/actions/permissions/repositories/${params.repository_id}`, + {} + ) .json() } @@ -34284,10 +48516,10 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t inputSchema: github.ActionsGetAllowedActionsOrganizationParamsSchema }) async actionsGetAllowedActionsOrganization( - _params: github.ActionsGetAllowedActionsOrganizationParams + params: github.ActionsGetAllowedActionsOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/actions/permissions/selected-actions') + .get(`/orgs/${params.org}/actions/permissions/selected-actions`) .json() } @@ -34307,8 +48539,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetAllowedActionsOrganizationParams ): Promise { return this.ky - .put('/orgs/{org}/actions/permissions/selected-actions', { - json: params + .put(`/orgs/${params.org}/actions/permissions/selected-actions`, { + json: pick( + params, + 'github_owned_allowed', + 'verified_allowed', + 'patterns_allowed' + ) }) .json() } @@ -34331,10 +48568,10 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t github.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParamsSchema }) async actionsGetGithubActionsDefaultWorkflowPermissionsOrganization( - _params: github.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParams + params: github.ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/actions/permissions/workflow') + .get(`/orgs/${params.org}/actions/permissions/workflow`) .json() } @@ -34359,8 +48596,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationParams ): Promise { return this.ky - .put('/orgs/{org}/actions/permissions/workflow', { - json: params + .put(`/orgs/${params.org}/actions/permissions/workflow`, { + json: pick( + params, + 'default_workflow_permissions', + 'can_approve_pull_request_reviews' + ) }) .json() } @@ -34378,10 +48619,14 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListSelfHostedRunnerGroupsForOrgParamsSchema }) async actionsListSelfHostedRunnerGroupsForOrg( - _params: github.ActionsListSelfHostedRunnerGroupsForOrgParams + params: github.ActionsListSelfHostedRunnerGroupsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runner-groups') + .get(`/orgs/${params.org}/actions/runner-groups`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'visible_to_repository') + ) + }) .json() } @@ -34401,8 +48646,18 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t params: github.ActionsCreateSelfHostedRunnerGroupForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/runner-groups', { - json: params + .post(`/orgs/${params.org}/actions/runner-groups`, { + json: pick( + params, + 'name', + 'visibility', + 'selected_repository_ids', + 'runners', + 'allows_public_repositories', + 'restricted_to_workflows', + 'selected_workflows', + 'network_configuration_id' + ) }) .json() } @@ -34420,10 +48675,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsGetSelfHostedRunnerGroupForOrgParamsSchema }) async actionsGetSelfHostedRunnerGroupForOrg( - _params: github.ActionsGetSelfHostedRunnerGroupForOrgParams + params: github.ActionsGetSelfHostedRunnerGroupForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runner-groups/{runner_group_id}') + .get( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}`, + {} + ) .json() } @@ -34440,10 +48698,13 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t inputSchema: github.ActionsDeleteSelfHostedRunnerGroupFromOrgParamsSchema }) async actionsDeleteSelfHostedRunnerGroupFromOrg( - _params: github.ActionsDeleteSelfHostedRunnerGroupFromOrgParams + params: github.ActionsDeleteSelfHostedRunnerGroupFromOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/runner-groups/{runner_group_id}') + .delete( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}`, + {} + ) .json() } @@ -34463,9 +48724,20 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsUpdateSelfHostedRunnerGroupForOrgParams ): Promise { return this.ky - .patch('/orgs/{org}/actions/runner-groups/{runner_group_id}', { - json: params - }) + .patch( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}`, + { + json: pick( + params, + 'name', + 'visibility', + 'allows_public_repositories', + 'restricted_to_workflows', + 'selected_workflows', + 'network_configuration_id' + ) + } + ) .json() } @@ -34482,10 +48754,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListGithubHostedRunnersInGroupForOrgParamsSchema }) async actionsListGithubHostedRunnersInGroupForOrg( - _params: github.ActionsListGithubHostedRunnersInGroupForOrgParams + params: github.ActionsListGithubHostedRunnersInGroupForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners') + .get( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/hosted-runners`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -34503,10 +48780,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco github.ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema }) async actionsListRepoAccessToSelfHostedRunnerGroupInOrg( - _params: github.ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams + params: github.ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') + .get( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -34527,9 +48809,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams ): Promise { return this.ky - .put('/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories', { - json: params - }) + .put( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/repositories`, + { + json: pick(params, 'selected_repository_ids') + } + ) .json() } @@ -34547,11 +48832,12 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t github.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema }) async actionsAddRepoAccessToSelfHostedRunnerGroupInOrg( - _params: github.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams + params: github.ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams ): Promise { return this.ky .put( - '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}' + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/repositories/${params.repository_id}`, + {} ) .json() } @@ -34570,11 +48856,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco github.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParamsSchema }) async actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg( - _params: github.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams + params: github.ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams ): Promise { return this.ky .delete( - '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}' + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/repositories/${params.repository_id}`, + {} ) .json() } @@ -34592,10 +48879,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListSelfHostedRunnersInGroupForOrgParamsSchema }) async actionsListSelfHostedRunnersInGroupForOrg( - _params: github.ActionsListSelfHostedRunnersInGroupForOrgParams + params: github.ActionsListSelfHostedRunnersInGroupForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners') + .get( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/runners`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -34615,9 +48907,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetSelfHostedRunnersInGroupForOrgParams ): Promise { return this.ky - .put('/orgs/{org}/actions/runner-groups/{runner_group_id}/runners', { - json: params - }) + .put( + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/runners`, + { + json: pick(params, 'runners') + } + ) .json() } @@ -34634,11 +48929,12 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t inputSchema: github.ActionsAddSelfHostedRunnerToGroupForOrgParamsSchema }) async actionsAddSelfHostedRunnerToGroupForOrg( - _params: github.ActionsAddSelfHostedRunnerToGroupForOrgParams + params: github.ActionsAddSelfHostedRunnerToGroupForOrgParams ): Promise { return this.ky .put( - '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}' + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/runners/${params.runner_id}`, + {} ) .json() } @@ -34656,11 +48952,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsRemoveSelfHostedRunnerFromGroupForOrgParamsSchema }) async actionsRemoveSelfHostedRunnerFromGroupForOrg( - _params: github.ActionsRemoveSelfHostedRunnerFromGroupForOrgParams + params: github.ActionsRemoveSelfHostedRunnerFromGroupForOrgParams ): Promise { return this.ky .delete( - '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}' + `/orgs/${params.org}/actions/runner-groups/${params.runner_group_id}/runners/${params.runner_id}`, + {} ) .json() } @@ -34685,8 +48982,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsListSelfHostedRunnersForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runners', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/actions/runners`, { + searchParams: sanitizeSearchParams( + pick(params, 'name', 'per_page', 'page') + ) }) .json() } @@ -34708,10 +49007,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListRunnerApplicationsForOrgParamsSchema }) async actionsListRunnerApplicationsForOrg( - _params: github.ActionsListRunnerApplicationsForOrgParams + params: github.ActionsListRunnerApplicationsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runners/downloads') + .get(`/orgs/${params.org}/actions/runners/downloads`) .json() } @@ -34735,8 +49034,8 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to params: github.ActionsGenerateRunnerJitconfigForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/runners/generate-jitconfig', { - json: params + .post(`/orgs/${params.org}/actions/runners/generate-jitconfig`, { + json: pick(params, 'name', 'runner_group_id', 'labels', 'work_folder') }) .json() } @@ -34770,10 +49069,10 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsCreateRegistrationTokenForOrgParamsSchema }) async actionsCreateRegistrationTokenForOrg( - _params: github.ActionsCreateRegistrationTokenForOrgParams + params: github.ActionsCreateRegistrationTokenForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/runners/registration-token') + .post(`/orgs/${params.org}/actions/runners/registration-token`) .json() } @@ -34806,10 +49105,10 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsCreateRemoveTokenForOrgParamsSchema }) async actionsCreateRemoveTokenForOrg( - _params: github.ActionsCreateRemoveTokenForOrgParams + params: github.ActionsCreateRemoveTokenForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/runners/remove-token') + .post(`/orgs/${params.org}/actions/runners/remove-token`) .json() } @@ -34830,10 +49129,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsGetSelfHostedRunnerForOrgParamsSchema }) async actionsGetSelfHostedRunnerForOrg( - _params: github.ActionsGetSelfHostedRunnerForOrgParams + params: github.ActionsGetSelfHostedRunnerForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runners/{runner_id}') + .get(`/orgs/${params.org}/actions/runners/${params.runner_id}`, {}) .json() } @@ -34854,10 +49153,13 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsDeleteSelfHostedRunnerFromOrgParamsSchema }) async actionsDeleteSelfHostedRunnerFromOrg( - _params: github.ActionsDeleteSelfHostedRunnerFromOrgParams + params: github.ActionsDeleteSelfHostedRunnerFromOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/runners/{runner_id}') + .delete( + `/orgs/${params.org}/actions/runners/${params.runner_id}`, + {} + ) .json() } @@ -34878,10 +49180,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListLabelsForSelfHostedRunnerForOrgParamsSchema }) async actionsListLabelsForSelfHostedRunnerForOrg( - _params: github.ActionsListLabelsForSelfHostedRunnerForOrgParams + params: github.ActionsListLabelsForSelfHostedRunnerForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/actions/runners/{runner_id}/labels') + .get( + `/orgs/${params.org}/actions/runners/${params.runner_id}/labels`, + {} + ) .json() } @@ -34906,9 +49211,12 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t params: github.ActionsAddCustomLabelsToSelfHostedRunnerForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/actions/runners/{runner_id}/labels', { - json: params - }) + .post( + `/orgs/${params.org}/actions/runners/${params.runner_id}/labels`, + { + json: pick(params, 'labels') + } + ) .json() } @@ -34935,9 +49243,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetCustomLabelsForSelfHostedRunnerForOrgParams ): Promise { return this.ky - .put('/orgs/{org}/actions/runners/{runner_id}/labels', { - json: params - }) + .put( + `/orgs/${params.org}/actions/runners/${params.runner_id}/labels`, + { + json: pick(params, 'labels') + } + ) .json() } @@ -34961,10 +49272,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParamsSchema }) async actionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg( - _params: github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParams + params: github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/runners/{runner_id}/labels') + .delete( + `/orgs/${params.org}/actions/runners/${params.runner_id}/labels`, + {} + ) .json() } @@ -34994,10 +49308,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco github.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParamsSchema }) async actionsRemoveCustomLabelFromSelfHostedRunnerForOrg( - _params: github.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParams + params: github.ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/runners/{runner_id}/labels/{name}') + .delete( + `/orgs/${params.org}/actions/runners/${params.runner_id}/labels/${params.name}`, + {} + ) .json() } @@ -35020,10 +49337,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListOrgSecretsParamsSchema }) async actionsListOrgSecrets( - _params: github.ActionsListOrgSecretsParams + params: github.ActionsListOrgSecretsParams ): Promise { return this.ky - .get('/orgs/{org}/actions/secrets') + .get(`/orgs/${params.org}/actions/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -35046,10 +49365,10 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsGetOrgPublicKeyParamsSchema }) async actionsGetOrgPublicKey( - _params: github.ActionsGetOrgPublicKeyParams + params: github.ActionsGetOrgPublicKeyParams ): Promise { return this.ky - .get('/orgs/{org}/actions/secrets/public-key') + .get(`/orgs/${params.org}/actions/secrets/public-key`) .json() } @@ -35070,10 +49389,13 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsGetOrgSecretParamsSchema }) async actionsGetOrgSecret( - _params: github.ActionsGetOrgSecretParams + params: github.ActionsGetOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/actions/secrets/{secret_name}') + .get( + `/orgs/${params.org}/actions/secrets/${params.secret_name}`, + {} + ) .json() } @@ -35099,8 +49421,14 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to params: github.ActionsCreateOrUpdateOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/actions/secrets/{secret_name}', { - json: params + .put(`/orgs/${params.org}/actions/secrets/${params.secret_name}`, { + json: pick( + params, + 'encrypted_value', + 'key_id', + 'visibility', + 'selected_repository_ids' + ) }) .json() } @@ -35122,10 +49450,13 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsDeleteOrgSecretParamsSchema }) async actionsDeleteOrgSecret( - _params: github.ActionsDeleteOrgSecretParams + params: github.ActionsDeleteOrgSecretParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/secrets/{secret_name}') + .delete( + `/orgs/${params.org}/actions/secrets/${params.secret_name}`, + {} + ) .json() } @@ -35148,10 +49479,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListSelectedReposForOrgSecretParamsSchema }) async actionsListSelectedReposForOrgSecret( - _params: github.ActionsListSelectedReposForOrgSecretParams + params: github.ActionsListSelectedReposForOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/actions/secrets/{secret_name}/repositories') + .get( + `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -35179,9 +49515,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetSelectedReposForOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/actions/secrets/{secret_name}/repositories', { - json: params - }) + .put( + `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories`, + { + json: pick(params, 'selected_repository_ids') + } + ) .json() } @@ -35210,7 +49549,8 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t ): Promise { return this.ky .put( - `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -35240,7 +49580,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .delete( - `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/actions/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -35262,10 +49603,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListOrgVariablesParamsSchema }) async actionsListOrgVariables( - _params: github.ActionsListOrgVariablesParams + params: github.ActionsListOrgVariablesParams ): Promise { return this.ky - .get('/orgs/{org}/actions/variables') + .get(`/orgs/${params.org}/actions/variables`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -35289,8 +49632,14 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to params: github.ActionsCreateOrgVariableParams ): Promise { return this.ky - .post('/orgs/{org}/actions/variables', { - json: params + .post(`/orgs/${params.org}/actions/variables`, { + json: pick( + params, + 'name', + 'value', + 'visibility', + 'selected_repository_ids' + ) }) .json() } @@ -35312,10 +49661,10 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsGetOrgVariableParamsSchema }) async actionsGetOrgVariable( - _params: github.ActionsGetOrgVariableParams + params: github.ActionsGetOrgVariableParams ): Promise { return this.ky - .get('/orgs/{org}/actions/variables/{name}') + .get(`/orgs/${params.org}/actions/variables/${params.name}`, {}) .json() } @@ -35336,10 +49685,10 @@ OAuth tokens and personal access tokens (classic) need the\`admin:org\` scope to inputSchema: github.ActionsDeleteOrgVariableParamsSchema }) async actionsDeleteOrgVariable( - _params: github.ActionsDeleteOrgVariableParams + params: github.ActionsDeleteOrgVariableParams ): Promise { return this.ky - .delete('/orgs/{org}/actions/variables/{name}') + .delete(`/orgs/${params.org}/actions/variables/${params.name}`, {}) .json() } @@ -35363,8 +49712,14 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsUpdateOrgVariableParams ): Promise { return this.ky - .patch('/orgs/{org}/actions/variables/{name}', { - json: params + .patch(`/orgs/${params.org}/actions/variables/${params.name}`, { + json: pick( + params, + 'name', + 'value', + 'visibility', + 'selected_repository_ids' + ) }) .json() } @@ -35388,10 +49743,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.ActionsListSelectedReposForOrgVariableParamsSchema }) async actionsListSelectedReposForOrgVariable( - _params: github.ActionsListSelectedReposForOrgVariableParams + params: github.ActionsListSelectedReposForOrgVariableParams ): Promise { return this.ky - .get('/orgs/{org}/actions/variables/{name}/repositories') + .get( + `/orgs/${params.org}/actions/variables/${params.name}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -35419,9 +49779,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ActionsSetSelectedReposForOrgVariableParams ): Promise { return this.ky - .put('/orgs/{org}/actions/variables/{name}/repositories', { - json: params - }) + .put( + `/orgs/${params.org}/actions/variables/${params.name}/repositories`, + { + json: pick(params, 'selected_repository_ids') + } + ) .json() } @@ -35448,7 +49811,8 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t ): Promise { return this.ky .put( - `/orgs/${params.org}/actions/variables/${params.name}/repositories/${params.repository_id}` + `/orgs/${params.org}/actions/variables/${params.name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -35478,7 +49842,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .delete( - `/orgs/${params.org}/actions/variables/${params.name}/repositories/${params.repository_id}` + `/orgs/${params.org}/actions/variables/${params.name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -35504,7 +49869,9 @@ The collection of attestations returned by this endpoint is filtered according t ): Promise { return this.ky .get(`/orgs/${params.org}/attestations/${params.subject_digest}`, { - searchParams: sanitizeSearchParams(pick(params, 'predicate_type')) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after', 'predicate_type') + ) }) .json() } @@ -35518,10 +49885,12 @@ The collection of attestations returned by this endpoint is filtered according t inputSchema: github.OrgsListBlockedUsersParamsSchema }) async orgsListBlockedUsers( - _params: github.OrgsListBlockedUsersParams + params: github.OrgsListBlockedUsersParams ): Promise { return this.ky - .get('/orgs/{org}/blocks') + .get(`/orgs/${params.org}/blocks`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -35534,10 +49903,10 @@ The collection of attestations returned by this endpoint is filtered according t inputSchema: github.OrgsCheckBlockedUserParamsSchema }) async orgsCheckBlockedUser( - _params: github.OrgsCheckBlockedUserParams + params: github.OrgsCheckBlockedUserParams ): Promise { return this.ky - .get('/orgs/{org}/blocks/{username}') + .get(`/orgs/${params.org}/blocks/${params.username}`, {}) .json() } @@ -35550,10 +49919,10 @@ The collection of attestations returned by this endpoint is filtered according t inputSchema: github.OrgsBlockUserParamsSchema }) async orgsBlockUser( - _params: github.OrgsBlockUserParams + params: github.OrgsBlockUserParams ): Promise { return this.ky - .put('/orgs/{org}/blocks/{username}') + .put(`/orgs/${params.org}/blocks/${params.username}`, {}) .json() } @@ -35566,10 +49935,10 @@ The collection of attestations returned by this endpoint is filtered according t inputSchema: github.OrgsUnblockUserParamsSchema }) async orgsUnblockUser( - _params: github.OrgsUnblockUserParams + params: github.OrgsUnblockUserParams ): Promise { return this.ky - .delete('/orgs/{org}/blocks/{username}') + .delete(`/orgs/${params.org}/blocks/${params.username}`, {}) .json() } @@ -35593,8 +49962,22 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events params: github.CodeScanningListAlertsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/code-scanning/alerts', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/code-scanning/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'tool_name', + 'tool_guid', + 'before', + 'after', + 'page', + 'per_page', + 'direction', + 'state', + 'sort', + 'severity' + ) + ) }) .json() } @@ -35619,8 +50002,10 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco params: github.CodeSecurityGetConfigurationsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/code-security/configurations', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/code-security/configurations`, { + searchParams: sanitizeSearchParams( + pick(params, 'target_type', 'per_page', 'before', 'after') + ) }) .json() } @@ -35645,8 +50030,31 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco params: github.CodeSecurityCreateConfigurationParams ): Promise { return this.ky - .post('/orgs/{org}/code-security/configurations', { - json: params + .post(`/orgs/${params.org}/code-security/configurations`, { + json: pick( + params, + 'name', + 'description', + 'advanced_security', + 'dependency_graph', + 'dependency_graph_autosubmit_action', + 'dependency_graph_autosubmit_action_options', + 'dependabot_alerts', + 'dependabot_security_updates', + 'code_scanning_default_setup', + 'code_scanning_default_setup_options', + 'code_scanning_delegated_alert_dismissal', + 'secret_scanning', + 'secret_scanning_push_protection', + 'secret_scanning_delegated_bypass', + 'secret_scanning_delegated_bypass_options', + 'secret_scanning_validity_checks', + 'secret_scanning_non_provider_patterns', + 'secret_scanning_generic_secrets', + 'secret_scanning_delegated_alert_dismissal', + 'private_vulnerability_reporting', + 'enforcement' + ) }) .json() } @@ -35668,10 +50076,10 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco inputSchema: github.CodeSecurityGetDefaultConfigurationsParamsSchema }) async codeSecurityGetDefaultConfigurations( - _params: github.CodeSecurityGetDefaultConfigurationsParams + params: github.CodeSecurityGetDefaultConfigurationsParams ): Promise { return this.ky - .get('/orgs/{org}/code-security/configurations/defaults') + .get(`/orgs/${params.org}/code-security/configurations/defaults`) .json() } @@ -35697,8 +50105,8 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco params: github.CodeSecurityDetachConfigurationParams ): Promise { return this.ky - .delete('/orgs/{org}/code-security/configurations/detach', { - json: params + .delete(`/orgs/${params.org}/code-security/configurations/detach`, { + json: pick(params, 'selected_repository_ids') }) .json() } @@ -35720,10 +50128,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco inputSchema: github.CodeSecurityGetConfigurationParamsSchema }) async codeSecurityGetConfiguration( - _params: github.CodeSecurityGetConfigurationParams + params: github.CodeSecurityGetConfigurationParams ): Promise { return this.ky - .get('/orgs/{org}/code-security/configurations/{configuration_id}') + .get( + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}`, + {} + ) .json() } @@ -35748,10 +50159,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco inputSchema: github.CodeSecurityDeleteConfigurationParamsSchema }) async codeSecurityDeleteConfiguration( - _params: github.CodeSecurityDeleteConfigurationParams + params: github.CodeSecurityDeleteConfigurationParams ): Promise { return this.ky - .delete('/orgs/{org}/code-security/configurations/{configuration_id}') + .delete( + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}`, + {} + ) .json() } @@ -35775,9 +50189,35 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco params: github.CodeSecurityUpdateConfigurationParams ): Promise { return this.ky - .patch('/orgs/{org}/code-security/configurations/{configuration_id}', { - json: params - }) + .patch( + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}`, + { + json: pick( + params, + 'name', + 'description', + 'advanced_security', + 'dependency_graph', + 'dependency_graph_autosubmit_action', + 'dependency_graph_autosubmit_action_options', + 'dependabot_alerts', + 'dependabot_security_updates', + 'code_scanning_default_setup', + 'code_scanning_default_setup_options', + 'code_scanning_delegated_alert_dismissal', + 'secret_scanning', + 'secret_scanning_push_protection', + 'secret_scanning_delegated_bypass', + 'secret_scanning_delegated_bypass_options', + 'secret_scanning_validity_checks', + 'secret_scanning_non_provider_patterns', + 'secret_scanning_generic_secrets', + 'secret_scanning_delegated_alert_dismissal', + 'private_vulnerability_reporting', + 'enforcement' + ) + } + ) .json() } @@ -35806,9 +50246,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco ): Promise { return this.ky .post( - '/orgs/{org}/code-security/configurations/{configuration_id}/attach', + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}/attach`, { - json: params + json: pick(params, 'scope', 'selected_repository_ids') } ) .json() @@ -35839,9 +50279,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco ): Promise { return this.ky .put( - '/orgs/{org}/code-security/configurations/{configuration_id}/defaults', + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}/defaults`, { - json: params + json: pick(params, 'default_for_new_repos') } ) .json() @@ -35868,9 +50308,11 @@ OAuth app tokens and personal access tokens (classic) need the \`write:org\` sco ): Promise { return this.ky .get( - '/orgs/{org}/code-security/configurations/{configuration_id}/repositories', + `/orgs/${params.org}/code-security/configurations/${params.configuration_id}/repositories`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after', 'status') + ) } ) .json() @@ -35889,10 +50331,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesListInOrganizationParamsSchema }) async codespacesListInOrganization( - _params: github.CodespacesListInOrganizationParams + params: github.CodespacesListInOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/codespaces') + .get(`/orgs/${params.org}/codespaces`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -35910,8 +50354,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.CodespacesSetCodespacesAccessParams ): Promise { return this.ky - .put('/orgs/{org}/codespaces/access', { - json: params + .put(`/orgs/${params.org}/codespaces/access`, { + json: pick(params, 'visibility', 'selected_usernames') }) .json() } @@ -35938,8 +50382,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.CodespacesSetCodespacesAccessUsersParams ): Promise { return this.ky - .post('/orgs/{org}/codespaces/access/selected_users', { - json: params + .post(`/orgs/${params.org}/codespaces/access/selected_users`, { + json: pick(params, 'selected_usernames') }) .json() } @@ -35966,8 +50410,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.CodespacesDeleteCodespacesAccessUsersParams ): Promise { return this.ky - .delete('/orgs/{org}/codespaces/access/selected_users', { - json: params + .delete(`/orgs/${params.org}/codespaces/access/selected_users`, { + json: pick(params, 'selected_usernames') }) .json() } @@ -35987,10 +50431,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesListOrgSecretsParamsSchema }) async codespacesListOrgSecrets( - _params: github.CodespacesListOrgSecretsParams + params: github.CodespacesListOrgSecretsParams ): Promise { return this.ky - .get('/orgs/{org}/codespaces/secrets') + .get(`/orgs/${params.org}/codespaces/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -36005,10 +50451,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesGetOrgPublicKeyParamsSchema }) async codespacesGetOrgPublicKey( - _params: github.CodespacesGetOrgPublicKeyParams + params: github.CodespacesGetOrgPublicKeyParams ): Promise { return this.ky - .get('/orgs/{org}/codespaces/secrets/public-key') + .get(`/orgs/${params.org}/codespaces/secrets/public-key`) .json() } @@ -36025,10 +50471,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesGetOrgSecretParamsSchema }) async codespacesGetOrgSecret( - _params: github.CodespacesGetOrgSecretParams + params: github.CodespacesGetOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/codespaces/secrets/{secret_name}') + .get( + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}`, + {} + ) .json() } @@ -36050,9 +50499,18 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.CodespacesCreateOrUpdateOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/codespaces/secrets/{secret_name}', { - json: params - }) + .put( + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}`, + { + json: pick( + params, + 'encrypted_value', + 'key_id', + 'visibility', + 'selected_repository_ids' + ) + } + ) .json() } @@ -36069,10 +50527,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesDeleteOrgSecretParamsSchema }) async codespacesDeleteOrgSecret( - _params: github.CodespacesDeleteOrgSecretParams + params: github.CodespacesDeleteOrgSecretParams ): Promise { return this.ky - .delete('/orgs/{org}/codespaces/secrets/{secret_name}') + .delete( + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}`, + {} + ) .json() } @@ -36091,10 +50552,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesListSelectedReposForOrgSecretParamsSchema }) async codespacesListSelectedReposForOrgSecret( - _params: github.CodespacesListSelectedReposForOrgSecretParams + params: github.CodespacesListSelectedReposForOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/codespaces/secrets/{secret_name}/repositories') + .get( + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -36118,9 +50584,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.CodespacesSetSelectedReposForOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/codespaces/secrets/{secret_name}/repositories', { - json: params - }) + .put( + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories`, + { + json: pick(params, 'selected_repository_ids') + } + ) .json() } @@ -36139,7 +50608,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .put( - `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -36165,7 +50635,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .delete( - `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -36197,10 +50668,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b inputSchema: github.CopilotGetCopilotOrganizationDetailsParamsSchema }) async copilotGetCopilotOrganizationDetails( - _params: github.CopilotGetCopilotOrganizationDetailsParams + params: github.CopilotGetCopilotOrganizationDetailsParams ): Promise { return this.ky - .get('/orgs/{org}/copilot/billing') + .get(`/orgs/${params.org}/copilot/billing`) .json() } @@ -36234,8 +50705,8 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotListCopilotSeatsParams ): Promise { return this.ky - .get('/orgs/{org}/copilot/billing/seats', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/copilot/billing/seats`, { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) }) .json() } @@ -36276,8 +50747,8 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotAddCopilotSeatsForTeamsParams ): Promise { return this.ky - .post('/orgs/{org}/copilot/billing/selected_teams', { - json: params + .post(`/orgs/${params.org}/copilot/billing/selected_teams`, { + json: pick(params, 'selected_teams') }) .json() } @@ -36315,9 +50786,9 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b async copilotCancelCopilotSeatAssignmentForTeams( params: github.CopilotCancelCopilotSeatAssignmentForTeamsParams ): Promise { - return this.k46045y - .delete('/orgs/{org}/copilot/billing/selected_teams', { - json: params + return this.ky + .delete(`/orgs/${params.org}/copilot/billing/selected_teams`, { + json: pick(params, 'selected_teams') }) .json() } @@ -36358,8 +50829,8 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotAddCopilotSeatsForUsersParams ): Promise { return this.ky - .post('/orgs/{org}/copilot/billing/selected_users', { - json: params + .post(`/orgs/${params.org}/copilot/billing/selected_users`, { + json: pick(params, 'selected_usernames') }) .json() } @@ -36398,8 +50869,8 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotCancelCopilotSeatAssignmentForUsersParams ): Promise { return this.ky - .delete('/orgs/{org}/copilot/billing/selected_users', { - json: params + .delete(`/orgs/${params.org}/copilot/billing/selected_users`, { + json: pick(params, 'selected_usernames') }) .json() } @@ -36440,8 +50911,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotCopilotMetricsForOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/copilot/metrics', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/copilot/metrics`, { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'until', 'page', 'per_page') + ) }) .json() } @@ -36484,8 +50957,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotUsageMetricsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/copilot/usage', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/copilot/usage`, { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'until', 'page', 'per_page') + ) }) .json() } @@ -36507,10 +50982,29 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events inputSchema: github.DependabotListAlertsForOrgParamsSchema }) async dependabotListAlertsForOrg( - _params: github.DependabotListAlertsForOrgParams + params: github.DependabotListAlertsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/dependabot/alerts') + .get(`/orgs/${params.org}/dependabot/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'severity', + 'ecosystem', + 'package', + 'epss_percentage', + 'scope', + 'sort', + 'direction', + 'before', + 'after', + 'first', + 'last', + 'per_page' + ) + ) + }) .json() } @@ -36529,10 +51023,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.DependabotListOrgSecretsParamsSchema }) async dependabotListOrgSecrets( - _params: github.DependabotListOrgSecretsParams + params: github.DependabotListOrgSecretsParams ): Promise { return this.ky - .get('/orgs/{org}/dependabot/secrets') + .get(`/orgs/${params.org}/dependabot/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -36551,10 +51047,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.DependabotGetOrgPublicKeyParamsSchema }) async dependabotGetOrgPublicKey( - _params: github.DependabotGetOrgPublicKeyParams + params: github.DependabotGetOrgPublicKeyParams ): Promise { return this.ky - .get('/orgs/{org}/dependabot/secrets/public-key') + .get(`/orgs/${params.org}/dependabot/secrets/public-key`) .json() } @@ -36571,10 +51067,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.DependabotGetOrgSecretParamsSchema }) async dependabotGetOrgSecret( - _params: github.DependabotGetOrgSecretParams + params: github.DependabotGetOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/dependabot/secrets/{secret_name}') + .get( + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}`, + {} + ) .json() } @@ -36596,9 +51095,18 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.DependabotCreateOrUpdateOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/dependabot/secrets/{secret_name}', { - json: params - }) + .put( + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}`, + { + json: pick( + params, + 'encrypted_value', + 'key_id', + 'visibility', + 'selected_repository_ids' + ) + } + ) .json() } @@ -36615,10 +51123,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.DependabotDeleteOrgSecretParamsSchema }) async dependabotDeleteOrgSecret( - _params: github.DependabotDeleteOrgSecretParams + params: github.DependabotDeleteOrgSecretParams ): Promise { return this.ky - .delete('/orgs/{org}/dependabot/secrets/{secret_name}') + .delete( + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}`, + {} + ) .json() } @@ -36637,10 +51148,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.DependabotListSelectedReposForOrgSecretParamsSchema }) async dependabotListSelectedReposForOrgSecret( - _params: github.DependabotListSelectedReposForOrgSecretParams + params: github.DependabotListSelectedReposForOrgSecretParams ): Promise { return this.ky - .get('/orgs/{org}/dependabot/secrets/{secret_name}/repositories') + .get( + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -36664,9 +51180,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.DependabotSetSelectedReposForOrgSecretParams ): Promise { return this.ky - .put('/orgs/{org}/dependabot/secrets/{secret_name}/repositories', { - json: params - }) + .put( + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories`, + { + json: pick(params, 'selected_repository_ids') + } + ) .json() } @@ -36691,7 +51210,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .put( - `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -36717,7 +51237,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco ): Promise { return this.ky .delete( - `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/orgs/${params.org}/dependabot/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -36736,10 +51257,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesListDockerMigrationConflictingPackagesForOrganizationParamsSchema }) async packagesListDockerMigrationConflictingPackagesForOrganization( - _params: github.PackagesListDockerMigrationConflictingPackagesForOrganizationParams + params: github.PackagesListDockerMigrationConflictingPackagesForOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/docker/conflicts') + .get(`/orgs/${params.org}/docker/conflicts`) .json() } @@ -36754,10 +51275,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.ActivityListPublicOrgEventsParamsSchema }) async activityListPublicOrgEvents( - _params: github.ActivityListPublicOrgEventsParams + params: github.ActivityListPublicOrgEventsParams ): Promise { return this.ky - .get('/orgs/{org}/events') + .get(`/orgs/${params.org}/events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -36770,10 +51293,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.OrgsListFailedInvitationsParamsSchema }) async orgsListFailedInvitations( - _params: github.OrgsListFailedInvitationsParams + params: github.OrgsListFailedInvitationsParams ): Promise { return this.ky - .get('/orgs/{org}/failed_invitations') + .get(`/orgs/${params.org}/failed_invitations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -36796,10 +51321,12 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsListWebhooksParamsSchema }) async orgsListWebhooks( - _params: github.OrgsListWebhooksParams + params: github.OrgsListWebhooksParams ): Promise { return this.ky - .get('/orgs/{org}/hooks') + .get(`/orgs/${params.org}/hooks`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -36825,8 +51352,8 @@ edit webhooks that they did not create and users cannot list, view, or edit webh params: github.OrgsCreateWebhookParams ): Promise { return this.ky - .post('/orgs/{org}/hooks', { - json: params + .post(`/orgs/${params.org}/hooks`, { + json: pick(params, 'name', 'config', 'events', 'active') }) .json() } @@ -36852,10 +51379,10 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsGetWebhookParamsSchema }) async orgsGetWebhook( - _params: github.OrgsGetWebhookParams + params: github.OrgsGetWebhookParams ): Promise { return this.ky - .get('/orgs/{org}/hooks/{hook_id}') + .get(`/orgs/${params.org}/hooks/${params.hook_id}`, {}) .json() } @@ -36878,10 +51405,10 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsDeleteWebhookParamsSchema }) async orgsDeleteWebhook( - _params: github.OrgsDeleteWebhookParams + params: github.OrgsDeleteWebhookParams ): Promise { return this.ky - .delete('/orgs/{org}/hooks/{hook_id}') + .delete(`/orgs/${params.org}/hooks/${params.hook_id}`, {}) .json() } @@ -36915,8 +51442,8 @@ webhooks that they did not create and users cannot list, view, or edit webhooks params: github.OrgsUpdateWebhookParams ): Promise { return this.ky - .patch('/orgs/{org}/hooks/{hook_id}', { - json: params + .patch(`/orgs/${params.org}/hooks/${params.hook_id}`, { + json: pick(params, 'config', 'events', 'active', 'name') }) .json() } @@ -36940,10 +51467,10 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsGetWebhookConfigForOrgParamsSchema }) async orgsGetWebhookConfigForOrg( - _params: github.OrgsGetWebhookConfigForOrgParams + params: github.OrgsGetWebhookConfigForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/hooks/{hook_id}/config') + .get(`/orgs/${params.org}/hooks/${params.hook_id}/config`, {}) .json() } @@ -36969,8 +51496,8 @@ webhooks that they did not create and users cannot list, view, or edit webhooks params: github.OrgsUpdateWebhookConfigForOrgParams ): Promise { return this.ky - .patch('/orgs/{org}/hooks/{hook_id}/config', { - json: params + .patch(`/orgs/${params.org}/hooks/${params.hook_id}/config`, { + json: pick(params, 'url', 'content_type', 'secret', 'insecure_ssl') }) .json() } @@ -36994,10 +51521,12 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsListWebhookDeliveriesParamsSchema }) async orgsListWebhookDeliveries( - _params: github.OrgsListWebhookDeliveriesParams + params: github.OrgsListWebhookDeliveriesParams ): Promise { return this.ky - .get('/orgs/{org}/hooks/{hook_id}/deliveries') + .get(`/orgs/${params.org}/hooks/${params.hook_id}/deliveries`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'cursor')) + }) .json() } @@ -37020,10 +51549,13 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsGetWebhookDeliveryParamsSchema }) async orgsGetWebhookDelivery( - _params: github.OrgsGetWebhookDeliveryParams + params: github.OrgsGetWebhookDeliveryParams ): Promise { return this.ky - .get('/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}') + .get( + `/orgs/${params.org}/hooks/${params.hook_id}/deliveries/${params.delivery_id}`, + {} + ) .json() } @@ -37046,10 +51578,13 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsRedeliverWebhookDeliveryParamsSchema }) async orgsRedeliverWebhookDelivery( - _params: github.OrgsRedeliverWebhookDeliveryParams + params: github.OrgsRedeliverWebhookDeliveryParams ): Promise { return this.ky - .post('/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts') + .post( + `/orgs/${params.org}/hooks/${params.hook_id}/deliveries/${params.delivery_id}/attempts`, + {} + ) .json() } @@ -37074,10 +51609,10 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.OrgsPingWebhookParamsSchema }) async orgsPingWebhook( - _params: github.OrgsPingWebhookParams + params: github.OrgsPingWebhookParams ): Promise { return this.ky - .post('/orgs/{org}/hooks/{hook_id}/pings') + .post(`/orgs/${params.org}/hooks/${params.hook_id}/pings`, {}) .json() } @@ -37090,10 +51625,26 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetRouteStatsByActorParamsSchema }) async apiInsightsGetRouteStatsByActor( - _params: github.ApiInsightsGetRouteStatsByActorParams + params: github.ApiInsightsGetRouteStatsByActorParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}') + .get( + `/orgs/${params.org}/insights/api/route-stats/${params.actor_type}/${params.actor_id}`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'min_timestamp', + 'max_timestamp', + 'page', + 'per_page', + 'direction', + 'sort', + 'api_route_substring' + ) + ) + } + ) .json() } @@ -37106,10 +51657,23 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetSubjectStatsParamsSchema }) async apiInsightsGetSubjectStats( - _params: github.ApiInsightsGetSubjectStatsParams + params: github.ApiInsightsGetSubjectStatsParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/subject-stats') + .get(`/orgs/${params.org}/insights/api/subject-stats`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'min_timestamp', + 'max_timestamp', + 'page', + 'per_page', + 'direction', + 'sort', + 'subject_name_substring' + ) + ) + }) .json() } @@ -37122,10 +51686,14 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetSummaryStatsParamsSchema }) async apiInsightsGetSummaryStats( - _params: github.ApiInsightsGetSummaryStatsParams + params: github.ApiInsightsGetSummaryStatsParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/summary-stats') + .get(`/orgs/${params.org}/insights/api/summary-stats`, { + searchParams: sanitizeSearchParams( + pick(params, 'min_timestamp', 'max_timestamp') + ) + }) .json() } @@ -37138,10 +51706,17 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetSummaryStatsByUserParamsSchema }) async apiInsightsGetSummaryStatsByUser( - _params: github.ApiInsightsGetSummaryStatsByUserParams + params: github.ApiInsightsGetSummaryStatsByUserParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/summary-stats/users/{user_id}') + .get( + `/orgs/${params.org}/insights/api/summary-stats/users/${params.user_id}`, + { + searchParams: sanitizeSearchParams( + pick(params, 'min_timestamp', 'max_timestamp') + ) + } + ) .json() } @@ -37154,10 +51729,17 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetSummaryStatsByActorParamsSchema }) async apiInsightsGetSummaryStatsByActor( - _params: github.ApiInsightsGetSummaryStatsByActorParams + params: github.ApiInsightsGetSummaryStatsByActorParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}') + .get( + `/orgs/${params.org}/insights/api/summary-stats/${params.actor_type}/${params.actor_id}`, + { + searchParams: sanitizeSearchParams( + pick(params, 'min_timestamp', 'max_timestamp') + ) + } + ) .json() } @@ -37170,10 +51752,14 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetTimeStatsParamsSchema }) async apiInsightsGetTimeStats( - _params: github.ApiInsightsGetTimeStatsParams + params: github.ApiInsightsGetTimeStatsParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/time-stats') + .get(`/orgs/${params.org}/insights/api/time-stats`, { + searchParams: sanitizeSearchParams( + pick(params, 'min_timestamp', 'max_timestamp', 'timestamp_increment') + ) + }) .json() } @@ -37186,10 +51772,22 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetTimeStatsByUserParamsSchema }) async apiInsightsGetTimeStatsByUser( - _params: github.ApiInsightsGetTimeStatsByUserParams + params: github.ApiInsightsGetTimeStatsByUserParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/time-stats/users/{user_id}') + .get( + `/orgs/${params.org}/insights/api/time-stats/users/${params.user_id}`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'min_timestamp', + 'max_timestamp', + 'timestamp_increment' + ) + ) + } + ) .json() } @@ -37202,10 +51800,22 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetTimeStatsByActorParamsSchema }) async apiInsightsGetTimeStatsByActor( - _params: github.ApiInsightsGetTimeStatsByActorParams + params: github.ApiInsightsGetTimeStatsByActorParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}') + .get( + `/orgs/${params.org}/insights/api/time-stats/${params.actor_type}/${params.actor_id}`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'min_timestamp', + 'max_timestamp', + 'timestamp_increment' + ) + ) + } + ) .json() } @@ -37218,10 +51828,26 @@ webhooks that they did not create and users cannot list, view, or edit webhooks inputSchema: github.ApiInsightsGetUserStatsParamsSchema }) async apiInsightsGetUserStats( - _params: github.ApiInsightsGetUserStatsParams + params: github.ApiInsightsGetUserStatsParams ): Promise { return this.ky - .get('/orgs/{org}/insights/api/user-stats/{user_id}') + .get( + `/orgs/${params.org}/insights/api/user-stats/${params.user_id}`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'min_timestamp', + 'max_timestamp', + 'page', + 'per_page', + 'direction', + 'sort', + 'actor_name_substring' + ) + ) + } + ) .json() } @@ -37238,10 +51864,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsGetOrgInstallationParamsSchema }) async appsGetOrgInstallation( - _params: github.AppsGetOrgInstallationParams + params: github.AppsGetOrgInstallationParams ): Promise { return this.ky - .get('/orgs/{org}/installation') + .get(`/orgs/${params.org}/installation`) .json() } @@ -37264,10 +51890,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:read\` sc inputSchema: github.OrgsListAppInstallationsParamsSchema }) async orgsListAppInstallations( - _params: github.OrgsListAppInstallationsParams + params: github.OrgsListAppInstallationsParams ): Promise { return this.ky - .get('/orgs/{org}/installations') + .get(`/orgs/${params.org}/installations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -37280,10 +51908,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:read\` sc inputSchema: github.InteractionsGetRestrictionsForOrgParamsSchema }) async interactionsGetRestrictionsForOrg( - _params: github.InteractionsGetRestrictionsForOrgParams + params: github.InteractionsGetRestrictionsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/interaction-limits') + .get(`/orgs/${params.org}/interaction-limits`) .json() } @@ -37299,8 +51927,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:read\` sc params: github.InteractionsSetRestrictionsForOrgParams ): Promise { return this.ky - .put('/orgs/{org}/interaction-limits', { - json: params + .put(`/orgs/${params.org}/interaction-limits`, { + json: pick(params, 'limit', 'expiry') }) .json() } @@ -37314,10 +51942,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:read\` sc inputSchema: github.InteractionsRemoveRestrictionsForOrgParamsSchema }) async interactionsRemoveRestrictionsForOrg( - _params: github.InteractionsRemoveRestrictionsForOrgParams + params: github.InteractionsRemoveRestrictionsForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/interaction-limits') + .delete(`/orgs/${params.org}/interaction-limits`) .json() } @@ -37339,8 +51967,10 @@ member, the \`login\` field in the return hash will be \`null\`.`, params: github.OrgsListPendingInvitationsParams ): Promise { return this.ky - .get('/orgs/{org}/invitations', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/invitations`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'role', 'invitation_source') + ) }) .json() } @@ -37363,8 +51993,8 @@ and "[Best practices for using the REST API](https://docs.github.com/rest/guides params: github.OrgsCreateInvitationParams ): Promise { return this.ky - .post('/orgs/{org}/invitations', { - json: params + .post(`/orgs/${params.org}/invitations`, { + json: pick(params, 'invitee_id', 'email', 'role', 'team_ids') }) .json() } @@ -37382,10 +52012,13 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s inputSchema: github.OrgsCancelInvitationParamsSchema }) async orgsCancelInvitation( - _params: github.OrgsCancelInvitationParams + params: github.OrgsCancelInvitationParams ): Promise { return this.ky - .delete('/orgs/{org}/invitations/{invitation_id}') + .delete( + `/orgs/${params.org}/invitations/${params.invitation_id}`, + {} + ) .json() } @@ -37398,10 +52031,15 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s inputSchema: github.OrgsListInvitationTeamsParamsSchema }) async orgsListInvitationTeams( - _params: github.OrgsListInvitationTeamsParams + params: github.OrgsListInvitationTeamsParams ): Promise { return this.ky - .get('/orgs/{org}/invitations/{invitation_id}/teams') + .get( + `/orgs/${params.org}/invitations/${params.invitation_id}/teams`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -37414,10 +52052,10 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s inputSchema: github.OrgsListIssueTypesParamsSchema }) async orgsListIssueTypes( - _params: github.OrgsListIssueTypesParams + params: github.OrgsListIssueTypesParams ): Promise { return this.ky - .get('/orgs/{org}/issue-types') + .get(`/orgs/${params.org}/issue-types`) .json() } @@ -37443,8 +52081,15 @@ personal access tokens (classic) need the \`admin:org\` scope to use this endpoi params: github.OrgsCreateIssueTypeParams ): Promise { return this.ky - .post('/orgs/{org}/issue-types', { - json: params + .post(`/orgs/${params.org}/issue-types`, { + json: pick( + params, + 'name', + 'is_enabled', + 'is_private', + 'description', + 'color' + ) }) .json() } @@ -37471,8 +52116,15 @@ personal access tokens (classic) need the \`admin:org\` scope to use this endpoi params: github.OrgsUpdateIssueTypeParams ): Promise { return this.ky - .put('/orgs/{org}/issue-types/{issue_type_id}', { - json: params + .put(`/orgs/${params.org}/issue-types/${params.issue_type_id}`, { + json: pick( + params, + 'name', + 'is_enabled', + 'is_private', + 'description', + 'color' + ) }) .json() } @@ -37496,10 +52148,13 @@ personal access tokens (classic) need the \`admin:org\` scope to use this endpoi inputSchema: github.OrgsDeleteIssueTypeParamsSchema }) async orgsDeleteIssueType( - _params: github.OrgsDeleteIssueTypeParams + params: github.OrgsDeleteIssueTypeParams ): Promise { return this.ky - .delete('/orgs/{org}/issue-types/{issue_type_id}') + .delete( + `/orgs/${params.org}/issue-types/${params.issue_type_id}`, + {} + ) .json() } @@ -37535,8 +52190,21 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesListForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/issues', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/issues`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'filter', + 'state', + 'labels', + 'type', + 'sort', + 'direction', + 'since', + 'per_page', + 'page' + ) + ) }) .json() } @@ -37553,8 +52221,10 @@ This endpoint supports the following custom media types. For more information, s params: github.OrgsListMembersParams ): Promise { return this.ky - .get('/orgs/{org}/members', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/members`, { + searchParams: sanitizeSearchParams( + pick(params, 'filter', 'role', 'per_page', 'page') + ) }) .json() } @@ -37568,10 +52238,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.OrgsCheckMembershipForUserParamsSchema }) async orgsCheckMembershipForUser( - _params: github.OrgsCheckMembershipForUserParams + params: github.OrgsCheckMembershipForUserParams ): Promise { return this.ky - .get('/orgs/{org}/members/{username}') + .get(`/orgs/${params.org}/members/${params.username}`, {}) .json() } @@ -37584,10 +52254,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.OrgsRemoveMemberParamsSchema }) async orgsRemoveMember( - _params: github.OrgsRemoveMemberParams + params: github.OrgsRemoveMemberParams ): Promise { return this.ky - .delete('/orgs/{org}/members/{username}') + .delete(`/orgs/${params.org}/members/${params.username}`, {}) .json() } @@ -37604,10 +52274,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesGetCodespacesForUserInOrgParamsSchema }) async codespacesGetCodespacesForUserInOrg( - _params: github.CodespacesGetCodespacesForUserInOrgParams + params: github.CodespacesGetCodespacesForUserInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/members/{username}/codespaces') + .get(`/orgs/${params.org}/members/${params.username}/codespaces`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -37624,10 +52296,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesDeleteFromOrganizationParamsSchema }) async codespacesDeleteFromOrganization( - _params: github.CodespacesDeleteFromOrganizationParams + params: github.CodespacesDeleteFromOrganizationParams ): Promise { return this.ky - .delete('/orgs/{org}/members/{username}/codespaces/{codespace_name}') + .delete( + `/orgs/${params.org}/members/${params.username}/codespaces/${params.codespace_name}`, + {} + ) .json() } @@ -37644,10 +52319,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.CodespacesStopInOrganizationParamsSchema }) async codespacesStopInOrganization( - _params: github.CodespacesStopInOrganizationParams + params: github.CodespacesStopInOrganizationParams ): Promise { return this.ky - .post('/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop') + .post( + `/orgs/${params.org}/members/${params.username}/codespaces/${params.codespace_name}/stop`, + {} + ) .json() } @@ -37680,10 +52358,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b inputSchema: github.CopilotGetCopilotSeatDetailsForUserParamsSchema }) async copilotGetCopilotSeatDetailsForUser( - _params: github.CopilotGetCopilotSeatDetailsForUserParams + params: github.CopilotGetCopilotSeatDetailsForUserParams ): Promise { return this.ky - .get('/orgs/{org}/members/{username}/copilot') + .get(`/orgs/${params.org}/members/${params.username}/copilot`, {}) .json() } @@ -37696,10 +52374,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b inputSchema: github.OrgsGetMembershipForUserParamsSchema }) async orgsGetMembershipForUser( - _params: github.OrgsGetMembershipForUserParams + params: github.OrgsGetMembershipForUserParams ): Promise { return this.ky - .get('/orgs/{org}/memberships/{username}') + .get(`/orgs/${params.org}/memberships/${params.username}`, {}) .json() } @@ -37707,7 +52385,7 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b * Only authenticated organization owners can add a member to the organization or update the member's role. * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. - + * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. **Rate limits** @@ -37719,7 +52397,7 @@ To prevent abuse, organization owners are limited to creating 50 organization in description: `Only authenticated organization owners can add a member to the organization or update the member's role. * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/orgs/members#get-organization-membership-for-a-user) will be \`pending\` until they accept the invitation. - + * Authenticated users can _update_ a user's membership by passing the \`role\` parameter. If the authenticated user changes a member's role to \`admin\`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to \`member\`, no email will be sent. **Rate limits** @@ -37731,8 +52409,8 @@ To prevent abuse, organization owners are limited to creating 50 organization in params: github.OrgsSetMembershipForUserParams ): Promise { return this.ky - .put('/orgs/{org}/memberships/{username}', { - json: params + .put(`/orgs/${params.org}/memberships/${params.username}`, { + json: pick(params, 'role') }) .json() } @@ -37750,10 +52428,10 @@ If the specified user is an active member of the organization, this will remove inputSchema: github.OrgsRemoveMembershipForUserParamsSchema }) async orgsRemoveMembershipForUser( - _params: github.OrgsRemoveMembershipForUserParams + params: github.OrgsRemoveMembershipForUserParams ): Promise { return this.ky - .delete('/orgs/{org}/memberships/{username}') + .delete(`/orgs/${params.org}/memberships/${params.username}`, {}) .json() } @@ -37773,8 +52451,10 @@ A list of \`repositories\` is only returned for export migrations.`, params: github.MigrationsListForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/migrations', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/migrations`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'exclude') + ) }) .json() } @@ -37791,8 +52471,19 @@ A list of \`repositories\` is only returned for export migrations.`, params: github.MigrationsStartForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/migrations', { - json: params + .post(`/orgs/${params.org}/migrations`, { + json: pick( + params, + 'repositories', + 'lock_repositories', + 'exclude_metadata', + 'exclude_git_data', + 'exclude_attachments', + 'exclude_releases', + 'exclude_owner_projects', + 'org_metadata_only', + 'exclude' + ) }) .json() } @@ -37823,8 +52514,8 @@ The \`state\` of a migration can be one of the following values: params: github.MigrationsGetStatusForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/migrations/{migration_id}', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/migrations/${params.migration_id}`, { + searchParams: sanitizeSearchParams(pick(params, 'exclude')) }) .json() } @@ -37838,10 +52529,13 @@ The \`state\` of a migration can be one of the following values: inputSchema: github.MigrationsDownloadArchiveForOrgParamsSchema }) async migrationsDownloadArchiveForOrg( - _params: github.MigrationsDownloadArchiveForOrgParams + params: github.MigrationsDownloadArchiveForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/migrations/{migration_id}/archive') + .get( + `/orgs/${params.org}/migrations/${params.migration_id}/archive`, + {} + ) .json() } @@ -37854,10 +52548,13 @@ The \`state\` of a migration can be one of the following values: inputSchema: github.MigrationsDeleteArchiveForOrgParamsSchema }) async migrationsDeleteArchiveForOrg( - _params: github.MigrationsDeleteArchiveForOrgParams + params: github.MigrationsDeleteArchiveForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/migrations/{migration_id}/archive') + .delete( + `/orgs/${params.org}/migrations/${params.migration_id}/archive`, + {} + ) .json() } @@ -37870,10 +52567,13 @@ The \`state\` of a migration can be one of the following values: inputSchema: github.MigrationsUnlockRepoForOrgParamsSchema }) async migrationsUnlockRepoForOrg( - _params: github.MigrationsUnlockRepoForOrgParams + params: github.MigrationsUnlockRepoForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock') + .delete( + `/orgs/${params.org}/migrations/${params.migration_id}/repos/${params.repo_name}/lock`, + {} + ) .json() } @@ -37886,10 +52586,15 @@ The \`state\` of a migration can be one of the following values: inputSchema: github.MigrationsListReposForOrgParamsSchema }) async migrationsListReposForOrg( - _params: github.MigrationsListReposForOrgParams + params: github.MigrationsListReposForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/migrations/{migration_id}/repositories') + .get( + `/orgs/${params.org}/migrations/${params.migration_id}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -37916,10 +52621,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsListOrgRolesParamsSchema }) async orgsListOrgRoles( - _params: github.OrgsListOrgRolesParams + params: github.OrgsListOrgRolesParams ): Promise { return this.ky - .get('/orgs/{org}/organization-roles') + .get(`/orgs/${params.org}/organization-roles`) .json() } @@ -37940,10 +52645,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsRevokeAllOrgRolesTeamParamsSchema }) async orgsRevokeAllOrgRolesTeam( - _params: github.OrgsRevokeAllOrgRolesTeamParams + params: github.OrgsRevokeAllOrgRolesTeamParams ): Promise { return this.ky - .delete('/orgs/{org}/organization-roles/teams/{team_slug}') + .delete( + `/orgs/${params.org}/organization-roles/teams/${params.team_slug}`, + {} + ) .json() } @@ -37964,10 +52672,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsAssignTeamToOrgRoleParamsSchema }) async orgsAssignTeamToOrgRole( - _params: github.OrgsAssignTeamToOrgRoleParams + params: github.OrgsAssignTeamToOrgRoleParams ): Promise { return this.ky - .put('/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}') + .put( + `/orgs/${params.org}/organization-roles/teams/${params.team_slug}/${params.role_id}`, + {} + ) .json() } @@ -37988,10 +52699,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsRevokeOrgRoleTeamParamsSchema }) async orgsRevokeOrgRoleTeam( - _params: github.OrgsRevokeOrgRoleTeamParams + params: github.OrgsRevokeOrgRoleTeamParams ): Promise { return this.ky - .delete('/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}') + .delete( + `/orgs/${params.org}/organization-roles/teams/${params.team_slug}/${params.role_id}`, + {} + ) .json() } @@ -38012,10 +52726,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsRevokeAllOrgRolesUserParamsSchema }) async orgsRevokeAllOrgRolesUser( - _params: github.OrgsRevokeAllOrgRolesUserParams + params: github.OrgsRevokeAllOrgRolesUserParams ): Promise { return this.ky - .delete('/orgs/{org}/organization-roles/users/{username}') + .delete( + `/orgs/${params.org}/organization-roles/users/${params.username}`, + {} + ) .json() } @@ -38036,10 +52753,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsAssignUserToOrgRoleParamsSchema }) async orgsAssignUserToOrgRole( - _params: github.OrgsAssignUserToOrgRoleParams + params: github.OrgsAssignUserToOrgRoleParams ): Promise { return this.ky - .put('/orgs/{org}/organization-roles/users/{username}/{role_id}') + .put( + `/orgs/${params.org}/organization-roles/users/${params.username}/${params.role_id}`, + {} + ) .json() } @@ -38060,10 +52780,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsRevokeOrgRoleUserParamsSchema }) async orgsRevokeOrgRoleUser( - _params: github.OrgsRevokeOrgRoleUserParams + params: github.OrgsRevokeOrgRoleUserParams ): Promise { return this.ky - .delete('/orgs/{org}/organization-roles/users/{username}/{role_id}') + .delete( + `/orgs/${params.org}/organization-roles/users/${params.username}/${params.role_id}`, + {} + ) .json() } @@ -38090,10 +52813,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsGetOrgRoleParamsSchema }) async orgsGetOrgRole( - _params: github.OrgsGetOrgRoleParams + params: github.OrgsGetOrgRoleParams ): Promise { return this.ky - .get('/orgs/{org}/organization-roles/{role_id}') + .get(`/orgs/${params.org}/organization-roles/${params.role_id}`, {}) .json() } @@ -38114,10 +52837,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsListOrgRoleTeamsParamsSchema }) async orgsListOrgRoleTeams( - _params: github.OrgsListOrgRoleTeamsParams + params: github.OrgsListOrgRoleTeamsParams ): Promise { return this.ky - .get('/orgs/{org}/organization-roles/{role_id}/teams') + .get( + `/orgs/${params.org}/organization-roles/${params.role_id}/teams`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -38138,10 +52866,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsListOrgRoleUsersParamsSchema }) async orgsListOrgRoleUsers( - _params: github.OrgsListOrgRoleUsersParams + params: github.OrgsListOrgRoleUsersParams ): Promise { return this.ky - .get('/orgs/{org}/organization-roles/{role_id}/users') + .get( + `/orgs/${params.org}/organization-roles/${params.role_id}/users`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -38157,8 +52890,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.OrgsListOutsideCollaboratorsParams ): Promise { return this.ky - .get('/orgs/{org}/outside_collaborators', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/outside_collaborators`, { + searchParams: sanitizeSearchParams( + pick(params, 'filter', 'per_page', 'page') + ) }) .json() } @@ -38175,9 +52910,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.OrgsConvertMemberToOutsideCollaboratorParams ): Promise { return this.ky - .put('/orgs/{org}/outside_collaborators/{username}', { - json: params - }) + .put( + `/orgs/${params.org}/outside_collaborators/${params.username}`, + { + json: pick(params, 'async') + } + ) .json() } @@ -38190,10 +52928,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.OrgsRemoveOutsideCollaboratorParamsSchema }) async orgsRemoveOutsideCollaborator( - _params: github.OrgsRemoveOutsideCollaboratorParams + params: github.OrgsRemoveOutsideCollaboratorParams ): Promise { return this.ky - .delete('/orgs/{org}/outside_collaborators/{username}') + .delete( + `/orgs/${params.org}/outside_collaborators/${params.username}`, + {} + ) .json() } @@ -38213,8 +52954,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesListPackagesForOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/packages', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/packages`, { + searchParams: sanitizeSearchParams( + pick(params, 'package_type', 'visibility', 'page', 'per_page') + ) }) .json() } @@ -38232,10 +52975,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesGetPackageForOrganizationParamsSchema }) async packagesGetPackageForOrganization( - _params: github.PackagesGetPackageForOrganizationParams + params: github.PackagesGetPackageForOrganizationParams ): Promise { return this.ky - .get('/orgs/{org}/packages/{package_type}/{package_name}') + .get( + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -38256,10 +53002,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesDeletePackageForOrgParamsSchema }) async packagesDeletePackageForOrg( - _params: github.PackagesDeletePackageForOrgParams + params: github.PackagesDeletePackageForOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/packages/{package_type}/{package_name}') + .delete( + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -38291,9 +53040,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesRestorePackageForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/packages/{package_type}/{package_name}/restore', { - searchParams: sanitizeSearchParams(params) - }) + .post( + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}/restore`, + { + searchParams: sanitizeSearchParams(pick(params, 'token')) + } + ) .json() } @@ -38314,9 +53066,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesGetAllPackageVersionsForPackageOwnedByOrgParams ): Promise { return this.ky - .get('/orgs/{org}/packages/{package_type}/{package_name}/versions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}/versions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'page', 'per_page', 'state') + ) + } + ) .json() } @@ -38333,11 +53090,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesGetPackageVersionForOrganizationParamsSchema }) async packagesGetPackageVersionForOrganization( - _params: github.PackagesGetPackageVersionForOrganizationParams + params: github.PackagesGetPackageVersionForOrganizationParams ): Promise { return this.ky .get( - '/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -38359,11 +53117,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesDeletePackageVersionForOrgParamsSchema }) async packagesDeletePackageVersionForOrg( - _params: github.PackagesDeletePackageVersionForOrgParams + params: github.PackagesDeletePackageVersionForOrgParams ): Promise { return this.ky .delete( - '/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -38393,11 +53152,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesRestorePackageVersionForOrgParamsSchema }) async packagesRestorePackageVersionForOrg( - _params: github.PackagesRestorePackageVersionForOrgParams + params: github.PackagesRestorePackageVersionForOrgParams ): Promise { return this.ky .post( - '/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore' + `/orgs/${params.org}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}/restore`, + {} ) .json() } @@ -38415,10 +53175,26 @@ Only GitHub Apps can use this endpoint.`, inputSchema: github.OrgsListPatGrantRequestsParamsSchema }) async orgsListPatGrantRequests( - _params: github.OrgsListPatGrantRequestsParams + params: github.OrgsListPatGrantRequestsParams ): Promise { return this.ky - .get('/orgs/{org}/personal-access-token-requests') + .get(`/orgs/${params.org}/personal-access-token-requests`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'per_page', + 'page', + 'sort', + 'direction', + 'owner', + 'repository', + 'permission', + 'last_used_before', + 'last_used_after', + 'token_id' + ) + ) + }) .json() } @@ -38438,8 +53214,8 @@ Only GitHub Apps can use this endpoint.`, params: github.OrgsReviewPatGrantRequestsInBulkParams ): Promise { return this.ky - .post('/orgs/{org}/personal-access-token-requests', { - json: params + .post(`/orgs/${params.org}/personal-access-token-requests`, { + json: pick(params, 'pat_request_ids', 'action', 'reason') }) .json() } @@ -38486,7 +53262,10 @@ Only GitHub Apps can use this endpoint.`, ): Promise { return this.ky .get( - `/orgs/${params.org}/personal-access-token-requests/${params.pat_request_id}/repositories` + `/orgs/${params.org}/personal-access-token-requests/${params.pat_request_id}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -38504,10 +53283,26 @@ Only GitHub Apps can use this endpoint.`, inputSchema: github.OrgsListPatGrantsParamsSchema }) async orgsListPatGrants( - _params: github.OrgsListPatGrantsParams + params: github.OrgsListPatGrantsParams ): Promise { return this.ky - .get('/orgs/{org}/personal-access-tokens') + .get(`/orgs/${params.org}/personal-access-tokens`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'per_page', + 'page', + 'sort', + 'direction', + 'owner', + 'repository', + 'permission', + 'last_used_before', + 'last_used_after', + 'token_id' + ) + ) + }) .json() } @@ -38527,8 +53322,8 @@ Only GitHub Apps can use this endpoint.`, params: github.OrgsUpdatePatAccessesParams ): Promise { return this.ky - .post('/orgs/{org}/personal-access-tokens', { - json: params + .post(`/orgs/${params.org}/personal-access-tokens`, { + json: pick(params, 'action', 'pat_ids') }) .json() } @@ -38549,9 +53344,12 @@ Only GitHub Apps can use this endpoint.`, params: github.OrgsUpdatePatAccessParams ): Promise { return this.ky - .post('/orgs/{org}/personal-access-tokens/{pat_id}', { - json: params - }) + .post( + `/orgs/${params.org}/personal-access-tokens/${params.pat_id}`, + { + json: pick(params, 'action') + } + ) .json() } @@ -38572,7 +53370,10 @@ Only GitHub Apps can use this endpoint.`, ): Promise { return this.ky .get( - `/orgs/${params.org}/personal-access-tokens/${params.pat_id}/repositories` + `/orgs/${params.org}/personal-access-tokens/${params.pat_id}/repositories`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -38598,10 +53399,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.PrivateRegistriesListOrgPrivateRegistriesParamsSchema }) async privateRegistriesListOrgPrivateRegistries( - _params: github.PrivateRegistriesListOrgPrivateRegistriesParams + params: github.PrivateRegistriesListOrgPrivateRegistriesParams ): Promise { return this.ky - .get('/orgs/{org}/private-registries') + .get(`/orgs/${params.org}/private-registries`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -38627,8 +53430,16 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.PrivateRegistriesCreateOrgPrivateRegistryParams ): Promise { return this.ky - .post('/orgs/{org}/private-registries', { - json: params + .post(`/orgs/${params.org}/private-registries`, { + json: pick( + params, + 'registry_type', + 'username', + 'encrypted_value', + 'key_id', + 'visibility', + 'selected_repository_ids' + ) }) .json() } @@ -38652,10 +53463,10 @@ OAuth tokens and personal access tokens (classic) need the \`admin:org\` scope t inputSchema: github.PrivateRegistriesGetOrgPublicKeyParamsSchema }) async privateRegistriesGetOrgPublicKey( - _params: github.PrivateRegistriesGetOrgPublicKeyParams + params: github.PrivateRegistriesGetOrgPublicKeyParams ): Promise { return this.ky - .get('/orgs/{org}/private-registries/public-key') + .get(`/orgs/${params.org}/private-registries/public-key`) .json() } @@ -38678,10 +53489,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.PrivateRegistriesGetOrgPrivateRegistryParamsSchema }) async privateRegistriesGetOrgPrivateRegistry( - _params: github.PrivateRegistriesGetOrgPrivateRegistryParams + params: github.PrivateRegistriesGetOrgPrivateRegistryParams ): Promise { return this.ky - .get('/orgs/{org}/private-registries/{secret_name}') + .get( + `/orgs/${params.org}/private-registries/${params.secret_name}`, + {} + ) .json() } @@ -38704,10 +53518,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco inputSchema: github.PrivateRegistriesDeleteOrgPrivateRegistryParamsSchema }) async privateRegistriesDeleteOrgPrivateRegistry( - _params: github.PrivateRegistriesDeleteOrgPrivateRegistryParams + params: github.PrivateRegistriesDeleteOrgPrivateRegistryParams ): Promise { return this.ky - .delete('/orgs/{org}/private-registries/{secret_name}') + .delete( + `/orgs/${params.org}/private-registries/${params.secret_name}`, + {} + ) .json() } @@ -38733,9 +53550,20 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.PrivateRegistriesUpdateOrgPrivateRegistryParams ): Promise { return this.ky - .patch('/orgs/{org}/private-registries/{secret_name}', { - json: params - }) + .patch( + `/orgs/${params.org}/private-registries/${params.secret_name}`, + { + json: pick( + params, + 'registry_type', + 'username', + 'encrypted_value', + 'key_id', + 'visibility', + 'selected_repository_ids' + ) + } + ) .json() } @@ -38755,8 +53583,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ProjectsListForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/projects', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/projects`, { + searchParams: sanitizeSearchParams( + pick(params, 'state', 'per_page', 'page') + ) }) .json() } @@ -38777,8 +53607,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\` sco params: github.ProjectsCreateForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/projects', { - json: params + .post(`/orgs/${params.org}/projects`, { + json: pick(params, 'name', 'body') }) .json() } @@ -38794,10 +53624,10 @@ Organization members can read these properties.`, inputSchema: github.OrgsGetAllCustomPropertiesParamsSchema }) async orgsGetAllCustomProperties( - _params: github.OrgsGetAllCustomPropertiesParams + params: github.OrgsGetAllCustomPropertiesParams ): Promise { return this.ky - .get('/orgs/{org}/properties/schema') + .get(`/orgs/${params.org}/properties/schema`) .json() } @@ -38829,8 +53659,8 @@ To use this endpoint, the authenticated user must be one of: params: github.OrgsCreateOrUpdateCustomPropertiesParams ): Promise { return this.ky - .patch('/orgs/{org}/properties/schema', { - json: params + .patch(`/orgs/${params.org}/properties/schema`, { + json: pick(params, 'properties') }) .json() } @@ -38846,10 +53676,13 @@ Organization members can read these properties.`, inputSchema: github.OrgsGetCustomPropertyParamsSchema }) async orgsGetCustomProperty( - _params: github.OrgsGetCustomPropertyParams + params: github.OrgsGetCustomPropertyParams ): Promise { return this.ky - .get('/orgs/{org}/properties/schema/{custom_property_name}') + .get( + `/orgs/${params.org}/properties/schema/${params.custom_property_name}`, + {} + ) .json() } @@ -38873,9 +53706,20 @@ To use this endpoint, the authenticated user must be one of: params: github.OrgsCreateOrUpdateCustomPropertyParams ): Promise { return this.ky - .put('/orgs/{org}/properties/schema/{custom_property_name}', { - json: params - }) + .put( + `/orgs/${params.org}/properties/schema/${params.custom_property_name}`, + { + json: pick( + params, + 'value_type', + 'required', + 'default_value', + 'description', + 'allowed_values', + 'values_editable_by' + ) + } + ) .json() } @@ -38896,10 +53740,13 @@ To use this endpoint, the authenticated user must be one of: inputSchema: github.OrgsRemoveCustomPropertyParamsSchema }) async orgsRemoveCustomProperty( - _params: github.OrgsRemoveCustomPropertyParams + params: github.OrgsRemoveCustomPropertyParams ): Promise { return this.ky - .delete('/orgs/{org}/properties/schema/{custom_property_name}') + .delete( + `/orgs/${params.org}/properties/schema/${params.custom_property_name}`, + {} + ) .json() } @@ -38917,8 +53764,10 @@ Organization members can read these properties.`, params: github.OrgsListCustomPropertiesValuesForReposParams ): Promise { return this.ky - .get('/orgs/{org}/properties/values', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/properties/values`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'repository_query') + ) }) .json() } @@ -38954,8 +53803,8 @@ To use this endpoint, the authenticated user must be one of: params: github.OrgsCreateOrUpdateCustomPropertiesValuesForReposParams ): Promise { return this.ky - .patch('/orgs/{org}/properties/values', { - json: params + .patch(`/orgs/${params.org}/properties/values`, { + json: pick(params, 'repository_names', 'properties') }) .json() } @@ -38969,10 +53818,12 @@ To use this endpoint, the authenticated user must be one of: inputSchema: github.OrgsListPublicMembersParamsSchema }) async orgsListPublicMembers( - _params: github.OrgsListPublicMembersParams + params: github.OrgsListPublicMembersParams ): Promise { return this.ky - .get('/orgs/{org}/public_members') + .get(`/orgs/${params.org}/public_members`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -38985,10 +53836,10 @@ To use this endpoint, the authenticated user must be one of: inputSchema: github.OrgsCheckPublicMembershipForUserParamsSchema }) async orgsCheckPublicMembershipForUser( - _params: github.OrgsCheckPublicMembershipForUserParams + params: github.OrgsCheckPublicMembershipForUserParams ): Promise { return this.ky - .get('/orgs/{org}/public_members/{username}') + .get(`/orgs/${params.org}/public_members/${params.username}`, {}) .json() } @@ -39005,10 +53856,10 @@ Note that you'll need to set \`Content-Length\` to zero when calling out to this inputSchema: github.OrgsSetPublicMembershipForAuthenticatedUserParamsSchema }) async orgsSetPublicMembershipForAuthenticatedUser( - _params: github.OrgsSetPublicMembershipForAuthenticatedUserParams + params: github.OrgsSetPublicMembershipForAuthenticatedUserParams ): Promise { return this.ky - .put('/orgs/{org}/public_members/{username}') + .put(`/orgs/${params.org}/public_members/${params.username}`, {}) .json() } @@ -39022,10 +53873,10 @@ Note that you'll need to set \`Content-Length\` to zero when calling out to this github.OrgsRemovePublicMembershipForAuthenticatedUserParamsSchema }) async orgsRemovePublicMembershipForAuthenticatedUser( - _params: github.OrgsRemovePublicMembershipForAuthenticatedUserParams + params: github.OrgsRemovePublicMembershipForAuthenticatedUserParams ): Promise { return this.ky - .delete('/orgs/{org}/public_members/{username}') + .delete(`/orgs/${params.org}/public_members/${params.username}`, {}) .json() } @@ -39047,8 +53898,10 @@ Note that you'll need to set \`Content-Length\` to zero when calling out to this params: github.ReposListForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/repos', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/repos`, { + searchParams: sanitizeSearchParams( + pick(params, 'type', 'sort', 'direction', 'per_page', 'page') + ) }) .json() } @@ -39069,8 +53922,35 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o params: github.ReposCreateInOrgParams ): Promise { return this.ky - .post('/orgs/{org}/repos', { - json: params + .post(`/orgs/${params.org}/repos`, { + json: pick( + params, + 'name', + 'description', + 'homepage', + 'private', + 'visibility', + 'has_issues', + 'has_projects', + 'has_wiki', + 'has_downloads', + 'is_template', + 'team_id', + 'auto_init', + 'gitignore_template', + 'license_template', + 'allow_squash_merge', + 'allow_merge_commit', + 'allow_rebase_merge', + 'allow_auto_merge', + 'delete_branch_on_merge', + 'use_squash_pr_title_as_default', + 'squash_merge_commit_title', + 'squash_merge_commit_message', + 'merge_commit_title', + 'merge_commit_message', + 'custom_properties' + ) }) .json() } @@ -39084,10 +53964,14 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetOrgRulesetsParamsSchema }) async reposGetOrgRulesets( - _params: github.ReposGetOrgRulesetsParams + params: github.ReposGetOrgRulesetsParams ): Promise { return this.ky - .get('/orgs/{org}/rulesets') + .get(`/orgs/${params.org}/rulesets`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'targets') + ) + }) .json() } @@ -39103,8 +53987,16 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o params: github.ReposCreateOrgRulesetParams ): Promise { return this.ky - .post('/orgs/{org}/rulesets', { - json: params + .post(`/orgs/${params.org}/rulesets`, { + json: pick( + params, + 'name', + 'target', + 'enforcement', + 'bypass_actors', + 'conditions', + 'rules' + ) }) .json() } @@ -39120,10 +54012,23 @@ For more information, see "[Managing rulesets for repositories in your organizat inputSchema: github.ReposGetOrgRuleSuitesParamsSchema }) async reposGetOrgRuleSuites( - _params: github.ReposGetOrgRuleSuitesParams + params: github.ReposGetOrgRuleSuitesParams ): Promise { return this.ky - .get('/orgs/{org}/rulesets/rule-suites') + .get(`/orgs/${params.org}/rulesets/rule-suites`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'ref', + 'repository_name', + 'time_period', + 'actor_name', + 'rule_suite_result', + 'per_page', + 'page' + ) + ) + }) .json() } @@ -39138,10 +54043,13 @@ For more information, see "[Managing rulesets for repositories in your organizat inputSchema: github.ReposGetOrgRuleSuiteParamsSchema }) async reposGetOrgRuleSuite( - _params: github.ReposGetOrgRuleSuiteParams + params: github.ReposGetOrgRuleSuiteParams ): Promise { return this.ky - .get('/orgs/{org}/rulesets/rule-suites/{rule_suite_id}') + .get( + `/orgs/${params.org}/rulesets/rule-suites/${params.rule_suite_id}`, + {} + ) .json() } @@ -39163,7 +54071,7 @@ making the API request has write access to the ruleset.`, params: github.ReposGetOrgRulesetParams ): Promise { return this.ky - .get(`/orgs/${params.org}/rulesets/${params.ruleset_id}`) + .get(`/orgs/${params.org}/rulesets/${params.ruleset_id}`, {}) .json() } @@ -39205,7 +54113,7 @@ making the API request has write access to the ruleset.`, params: github.ReposDeleteOrgRulesetParams ): Promise { return this.ky - .delete(`/orgs/${params.org}/rulesets/${params.ruleset_id}`) + .delete(`/orgs/${params.org}/rulesets/${params.ruleset_id}`, {}) .json() } @@ -39221,7 +54129,9 @@ making the API request has write access to the ruleset.`, params: github.OrgsGetOrgRulesetHistoryParams ): Promise { return this.ky - .get(`/orgs/${params.org}/rulesets/${params.ruleset_id}/history`) + .get(`/orgs/${params.org}/rulesets/${params.ruleset_id}/history`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -39238,7 +54148,8 @@ making the API request has write access to the ruleset.`, ): Promise { return this.ky .get( - `/orgs/${params.org}/rulesets/${params.ruleset_id}/history/${params.version_id}` + `/orgs/${params.org}/rulesets/${params.ruleset_id}/history/${params.version_id}`, + {} ) .json() } @@ -39260,10 +54171,28 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.SecretScanningListAlertsForOrgParamsSchema }) async secretScanningListAlertsForOrg( - _params: github.SecretScanningListAlertsForOrgParams + params: github.SecretScanningListAlertsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/secret-scanning/alerts') + .get(`/orgs/${params.org}/secret-scanning/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'secret_type', + 'resolution', + 'sort', + 'direction', + 'page', + 'per_page', + 'before', + 'after', + 'validity', + 'is_publicly_leaked', + 'is_multi_repo' + ) + ) + }) .json() } @@ -39288,8 +54217,18 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep params: github.SecurityAdvisoriesListOrgRepositoryAdvisoriesParams ): Promise { return this.ky - .get('/orgs/{org}/security-advisories', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/security-advisories`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'direction', + 'sort', + 'before', + 'after', + 'per_page', + 'state' + ) + ) }) .json() } @@ -39305,10 +54244,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.OrgsListSecurityManagerTeamsParamsSchema }) async orgsListSecurityManagerTeams( - _params: github.OrgsListSecurityManagerTeamsParams + params: github.OrgsListSecurityManagerTeamsParams ): Promise { return this.ky - .get('/orgs/{org}/security-managers') + .get(`/orgs/${params.org}/security-managers`) .json() } @@ -39323,10 +54262,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.OrgsAddSecurityManagerTeamParamsSchema }) async orgsAddSecurityManagerTeam( - _params: github.OrgsAddSecurityManagerTeamParams + params: github.OrgsAddSecurityManagerTeamParams ): Promise { return this.ky - .put('/orgs/{org}/security-managers/teams/{team_slug}') + .put( + `/orgs/${params.org}/security-managers/teams/${params.team_slug}`, + {} + ) .json() } @@ -39341,10 +54283,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.OrgsRemoveSecurityManagerTeamParamsSchema }) async orgsRemoveSecurityManagerTeam( - _params: github.OrgsRemoveSecurityManagerTeamParams + params: github.OrgsRemoveSecurityManagerTeamParams ): Promise { return this.ky - .delete('/orgs/{org}/security-managers/teams/{team_slug}') + .delete( + `/orgs/${params.org}/security-managers/teams/${params.team_slug}`, + {} + ) .json() } @@ -39365,10 +54310,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`adm inputSchema: github.BillingGetGithubActionsBillingOrgParamsSchema }) async billingGetGithubActionsBillingOrg( - _params: github.BillingGetGithubActionsBillingOrgParams + params: github.BillingGetGithubActionsBillingOrgParams ): Promise { return this.ky - .get('/orgs/{org}/settings/billing/actions') + .get(`/orgs/${params.org}/settings/billing/actions`) .json() } @@ -39389,10 +54334,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`adm inputSchema: github.BillingGetGithubPackagesBillingOrgParamsSchema }) async billingGetGithubPackagesBillingOrg( - _params: github.BillingGetGithubPackagesBillingOrgParams + params: github.BillingGetGithubPackagesBillingOrgParams ): Promise { return this.ky - .get('/orgs/{org}/settings/billing/packages') + .get(`/orgs/${params.org}/settings/billing/packages`) .json() } @@ -39413,10 +54358,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`adm inputSchema: github.BillingGetSharedStorageBillingOrgParamsSchema }) async billingGetSharedStorageBillingOrg( - _params: github.BillingGetSharedStorageBillingOrgParams + params: github.BillingGetSharedStorageBillingOrgParams ): Promise { return this.ky - .get('/orgs/{org}/settings/billing/shared-storage') + .get(`/orgs/${params.org}/settings/billing/shared-storage`) .json() } @@ -39433,10 +54378,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:network_co inputSchema: github.HostedComputeListNetworkConfigurationsForOrgParamsSchema }) async hostedComputeListNetworkConfigurationsForOrg( - _params: github.HostedComputeListNetworkConfigurationsForOrgParams + params: github.HostedComputeListNetworkConfigurationsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/settings/network-configurations') + .get(`/orgs/${params.org}/settings/network-configurations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -39457,8 +54404,8 @@ OAuth app tokens and personal access tokens (classic) need the \`write:network_c params: github.HostedComputeCreateNetworkConfigurationForOrgParams ): Promise { return this.ky - .post('/orgs/{org}/settings/network-configurations', { - json: params + .post(`/orgs/${params.org}/settings/network-configurations`, { + json: pick(params, 'name', 'compute_service', 'network_settings_ids') }) .json() } @@ -39476,11 +54423,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:network_co inputSchema: github.HostedComputeGetNetworkConfigurationForOrgParamsSchema }) async hostedComputeGetNetworkConfigurationForOrg( - _params: github.HostedComputeGetNetworkConfigurationForOrgParams + params: github.HostedComputeGetNetworkConfigurationForOrgParams ): Promise { return this.ky .get( - '/orgs/{org}/settings/network-configurations/{network_configuration_id}' + `/orgs/${params.org}/settings/network-configurations/${params.network_configuration_id}`, + {} ) .json() } @@ -39499,11 +54447,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:network_c github.HostedComputeDeleteNetworkConfigurationFromOrgParamsSchema }) async hostedComputeDeleteNetworkConfigurationFromOrg( - _params: github.HostedComputeDeleteNetworkConfigurationFromOrgParams + params: github.HostedComputeDeleteNetworkConfigurationFromOrgParams ): Promise { return this.ky .delete( - '/orgs/{org}/settings/network-configurations/{network_configuration_id}' + `/orgs/${params.org}/settings/network-configurations/${params.network_configuration_id}`, + {} ) .json() } @@ -39526,9 +54475,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:network_c ): Promise { return this.ky .patch( - '/orgs/{org}/settings/network-configurations/{network_configuration_id}', + `/orgs/${params.org}/settings/network-configurations/${params.network_configuration_id}`, { - json: params + json: pick(params, 'name', 'compute_service', 'network_settings_ids') } ) .json() @@ -39547,10 +54496,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:network_co inputSchema: github.HostedComputeGetNetworkSettingsForOrgParamsSchema }) async hostedComputeGetNetworkSettingsForOrg( - _params: github.HostedComputeGetNetworkSettingsForOrgParams + params: github.HostedComputeGetNetworkSettingsForOrgParams ): Promise { return this.ky - .get('/orgs/{org}/settings/network-settings/{network_settings_id}') + .get( + `/orgs/${params.org}/settings/network-settings/${params.network_settings_id}`, + {} + ) .json() } @@ -39590,9 +54542,14 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotCopilotMetricsForTeamParams ): Promise { return this.ky - .get('/orgs/{org}/team/{team_slug}/copilot/metrics', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/orgs/${params.org}/team/${params.team_slug}/copilot/metrics`, + { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'until', 'page', 'per_page') + ) + } + ) .json() } @@ -39640,8 +54597,10 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b params: github.CopilotUsageMetricsForTeamParams ): Promise { return this.ky - .get('/orgs/{org}/team/{team_slug}/copilot/usage', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/team/${params.team_slug}/copilot/usage`, { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'until', 'page', 'per_page') + ) }) .json() } @@ -39655,9 +54614,13 @@ OAuth app tokens and personal access tokens (classic) need either the \`manage_b inputSchema: github.TeamsListParamsSchema }) async teamsList( - _params: github.TeamsListParams + params: github.TeamsListParams ): Promise { - return this.ky.get('/orgs/{org}/teams').json() + return this.ky + .get(`/orgs/${params.org}/teams`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) + .json() } /** @@ -39676,8 +54639,18 @@ When you create a new team, you automatically become a team maintainer without e params: github.TeamsCreateParams ): Promise { return this.ky - .post('/orgs/{org}/teams', { - json: params + .post(`/orgs/${params.org}/teams`, { + json: pick( + params, + 'name', + 'description', + 'maintainers', + 'repo_names', + 'privacy', + 'notification_setting', + 'permission', + 'parent_team_id' + ) }) .json() } @@ -39697,10 +54670,10 @@ When you create a new team, you automatically become a team maintainer without e inputSchema: github.TeamsGetByNameParamsSchema }) async teamsGetByName( - _params: github.TeamsGetByNameParams + params: github.TeamsGetByNameParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}') + .get(`/orgs/${params.org}/teams/${params.team_slug}`, {}) .json() } @@ -39723,10 +54696,10 @@ If you are an organization owner, deleting a parent team will delete all of its inputSchema: github.TeamsDeleteInOrgParamsSchema }) async teamsDeleteInOrg( - _params: github.TeamsDeleteInOrgParams + params: github.TeamsDeleteInOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/teams/{team_slug}') + .delete(`/orgs/${params.org}/teams/${params.team_slug}`, {}) .json() } @@ -39748,8 +54721,16 @@ If you are an organization owner, deleting a parent team will delete all of its params: github.TeamsUpdateInOrgParams ): Promise { return this.ky - .patch('/orgs/{org}/teams/{team_slug}', { - json: params + .patch(`/orgs/${params.org}/teams/${params.team_slug}`, { + json: pick( + params, + 'name', + 'description', + 'privacy', + 'notification_setting', + 'permission', + 'parent_team_id' + ) }) .json() } @@ -39776,8 +54757,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion params: github.TeamsListDiscussionsInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/discussions', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/teams/${params.team_slug}/discussions`, { + searchParams: sanitizeSearchParams( + pick(params, 'direction', 'per_page', 'page', 'pinned') + ) }) .json() } @@ -39808,8 +54791,8 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.TeamsCreateDiscussionInOrgParams ): Promise { return this.ky - .post('/orgs/{org}/teams/{team_slug}/discussions', { - json: params + .post(`/orgs/${params.org}/teams/${params.team_slug}/discussions`, { + json: pick(params, 'title', 'body', 'private') }) .json() } @@ -39833,10 +54816,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsGetDiscussionInOrgParamsSchema }) async teamsGetDiscussionInOrg( - _params: github.TeamsGetDiscussionInOrgParams + params: github.TeamsGetDiscussionInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}') + .get( + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}`, + {} + ) .json() } @@ -39859,10 +54845,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.TeamsDeleteDiscussionInOrgParamsSchema }) async teamsDeleteDiscussionInOrg( - _params: github.TeamsDeleteDiscussionInOrgParams + params: github.TeamsDeleteDiscussionInOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}') + .delete( + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}`, + {} + ) .json() } @@ -39888,9 +54877,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.TeamsUpdateDiscussionInOrgParams ): Promise { return this.ky - .patch('/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', { - json: params - }) + .patch( + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}`, + { + json: pick(params, 'title', 'body') + } + ) .json() } @@ -39913,11 +54905,16 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsListDiscussionCommentsInOrgParamsSchema }) async teamsListDiscussionCommentsInOrg( - _params: github.TeamsListDiscussionCommentsInOrgParams + params: github.TeamsListDiscussionCommentsInOrgParams ): Promise { return this.ky .get( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments' + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments`, + { + searchParams: sanitizeSearchParams( + pick(params, 'direction', 'per_page', 'page') + ) + } ) .json() } @@ -39949,9 +54946,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .post( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments`, { - json: params + json: pick(params, 'body') } ) .json() @@ -39976,11 +54973,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsGetDiscussionCommentInOrgParamsSchema }) async teamsGetDiscussionCommentInOrg( - _params: github.TeamsGetDiscussionCommentInOrgParams + params: github.TeamsGetDiscussionCommentInOrgParams ): Promise { return this.ky .get( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}' + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}`, + {} ) .json() } @@ -40004,11 +55002,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.TeamsDeleteDiscussionCommentInOrgParamsSchema }) async teamsDeleteDiscussionCommentInOrg( - _params: github.TeamsDeleteDiscussionCommentInOrgParams + params: github.TeamsDeleteDiscussionCommentInOrgParams ): Promise { return this.ky .delete( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}' + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}`, + {} ) .json() } @@ -40036,9 +55035,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .patch( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}`, { - json: params + json: pick(params, 'body') } ) .json() @@ -40067,9 +55066,11 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion ): Promise { return this.ky .get( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}/reactions`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) } ) .json() @@ -40102,9 +55103,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .post( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}/reactions`, { - json: params + json: pick(params, 'content') } ) .json() @@ -40129,11 +55130,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.ReactionsDeleteForTeamDiscussionCommentParamsSchema }) async reactionsDeleteForTeamDiscussionComment( - _params: github.ReactionsDeleteForTeamDiscussionCommentParams + params: github.ReactionsDeleteForTeamDiscussionCommentParams ): Promise { return this.ky .delete( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}' + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/comments/${params.comment_number}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -40161,9 +55163,11 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion ): Promise { return this.ky .get( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/reactions`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) } ) .json() @@ -40196,9 +55200,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .post( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/reactions`, { - json: params + json: pick(params, 'content') } ) .json() @@ -40223,11 +55227,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.ReactionsDeleteForTeamDiscussionParamsSchema }) async reactionsDeleteForTeamDiscussion( - _params: github.ReactionsDeleteForTeamDiscussionParams + params: github.ReactionsDeleteForTeamDiscussionParams ): Promise { return this.ky .delete( - '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}' + `/orgs/${params.org}/teams/${params.team_slug}/discussions/${params.discussion_number}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -40247,10 +55252,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.TeamsListPendingInvitationsInOrgParamsSchema }) async teamsListPendingInvitationsInOrg( - _params: github.TeamsListPendingInvitationsInOrgParams + params: github.TeamsListPendingInvitationsInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/invitations') + .get(`/orgs/${params.org}/teams/${params.team_slug}/invitations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -40270,8 +55277,10 @@ To list members in a team, the team must be visible to the authenticated user.`, params: github.TeamsListMembersInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/members', { - searchParams: sanitizeSearchParams(params) + .get(`/orgs/${params.org}/teams/${params.team_slug}/members`, { + searchParams: sanitizeSearchParams( + pick(params, 'role', 'per_page', 'page') + ) }) .json() } @@ -40305,10 +55314,13 @@ The \`role\` for organization owners is set to \`maintainer\`. For more informat inputSchema: github.TeamsGetMembershipForUserInOrgParamsSchema }) async teamsGetMembershipForUserInOrg( - _params: github.TeamsGetMembershipForUserInOrgParams + params: github.TeamsGetMembershipForUserInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/memberships/{username}') + .get( + `/orgs/${params.org}/teams/${params.team_slug}/memberships/${params.username}`, + {} + ) .json() } @@ -40348,9 +55360,12 @@ If the user is already a member of the team, this endpoint will update the role params: github.TeamsAddOrUpdateMembershipForUserInOrgParams ): Promise { return this.ky - .put('/orgs/{org}/teams/{team_slug}/memberships/{username}', { - json: params - }) + .put( + `/orgs/${params.org}/teams/${params.team_slug}/memberships/${params.username}`, + { + json: pick(params, 'role') + } + ) .json() } @@ -40379,10 +55394,13 @@ Team synchronization is available for organizations using GitHub Enterprise Clou inputSchema: github.TeamsRemoveMembershipForUserInOrgParamsSchema }) async teamsRemoveMembershipForUserInOrg( - _params: github.TeamsRemoveMembershipForUserInOrgParams + params: github.TeamsRemoveMembershipForUserInOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/teams/{team_slug}/memberships/{username}') + .delete( + `/orgs/${params.org}/teams/${params.team_slug}/memberships/${params.username}`, + {} + ) .json() } @@ -40399,10 +55417,12 @@ Team synchronization is available for organizations using GitHub Enterprise Clou inputSchema: github.TeamsListProjectsInOrgParamsSchema }) async teamsListProjectsInOrg( - _params: github.TeamsListProjectsInOrgParams + params: github.TeamsListProjectsInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/projects') + .get(`/orgs/${params.org}/teams/${params.team_slug}/projects`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -40419,10 +55439,13 @@ Team synchronization is available for organizations using GitHub Enterprise Clou inputSchema: github.TeamsCheckPermissionsForProjectInOrgParamsSchema }) async teamsCheckPermissionsForProjectInOrg( - _params: github.TeamsCheckPermissionsForProjectInOrgParams + params: github.TeamsCheckPermissionsForProjectInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/projects/{project_id}') + .get( + `/orgs/${params.org}/teams/${params.team_slug}/projects/${params.project_id}`, + {} + ) .json() } @@ -40442,9 +55465,12 @@ Team synchronization is available for organizations using GitHub Enterprise Clou params: github.TeamsAddOrUpdateProjectPermissionsInOrgParams ): Promise { return this.ky - .put('/orgs/{org}/teams/{team_slug}/projects/{project_id}', { - json: params - }) + .put( + `/orgs/${params.org}/teams/${params.team_slug}/projects/${params.project_id}`, + { + json: pick(params, 'permission') + } + ) .json() } @@ -40461,10 +55487,13 @@ Team synchronization is available for organizations using GitHub Enterprise Clou inputSchema: github.TeamsRemoveProjectInOrgParamsSchema }) async teamsRemoveProjectInOrg( - _params: github.TeamsRemoveProjectInOrgParams + params: github.TeamsRemoveProjectInOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/teams/{team_slug}/projects/{project_id}') + .delete( + `/orgs/${params.org}/teams/${params.team_slug}/projects/${params.project_id}`, + {} + ) .json() } @@ -40483,10 +55512,12 @@ Team synchronization is available for organizations using GitHub Enterprise Clou inputSchema: github.TeamsListReposInOrgParamsSchema }) async teamsListReposInOrg( - _params: github.TeamsListReposInOrgParams + params: github.TeamsListReposInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/repos') + .get(`/orgs/${params.org}/teams/${params.team_slug}/repos`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -40517,10 +55548,13 @@ If the repository is private, you must have at least \`read\` permission for tha inputSchema: github.TeamsCheckPermissionsForRepoInOrgParamsSchema }) async teamsCheckPermissionsForRepoInOrg( - _params: github.TeamsCheckPermissionsForRepoInOrgParams + params: github.TeamsCheckPermissionsForRepoInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}') + .get( + `/orgs/${params.org}/teams/${params.team_slug}/repos/${params.owner}/${params.repo}`, + {} + ) .json() } @@ -40546,9 +55580,12 @@ For more information about the permission levels, see "[Repository permission le params: github.TeamsAddOrUpdateRepoPermissionsInOrgParams ): Promise { return this.ky - .put('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', { - json: params - }) + .put( + `/orgs/${params.org}/teams/${params.team_slug}/repos/${params.owner}/${params.repo}`, + { + json: pick(params, 'permission') + } + ) .json() } @@ -40567,10 +55604,13 @@ For more information about the permission levels, see "[Repository permission le inputSchema: github.TeamsRemoveRepoInOrgParamsSchema }) async teamsRemoveRepoInOrg( - _params: github.TeamsRemoveRepoInOrgParams + params: github.TeamsRemoveRepoInOrgParams ): Promise { return this.ky - .delete('/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}') + .delete( + `/orgs/${params.org}/teams/${params.team_slug}/repos/${params.owner}/${params.repo}`, + {} + ) .json() } @@ -40589,10 +55629,12 @@ For more information about the permission levels, see "[Repository permission le inputSchema: github.TeamsListChildInOrgParamsSchema }) async teamsListChildInOrg( - _params: github.TeamsListChildInOrgParams + params: github.TeamsListChildInOrgParams ): Promise { return this.ky - .get('/orgs/{org}/teams/{team_slug}/teams') + .get(`/orgs/${params.org}/teams/${params.team_slug}/teams`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -40623,9 +55665,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.OrgsEnableOrDisableSecurityProductOnAllOrgReposParams ): Promise { return this.ky - .post('/orgs/{org}/{security_product}/{enablement}', { - json: params - }) + .post( + `/orgs/${params.org}/${params.security_product}/${params.enablement}`, + { + json: pick(params, 'query_suite') + } + ) .json() } @@ -40642,10 +55687,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsGetCardParamsSchema }) async projectsGetCard( - _params: github.ProjectsGetCardParams + params: github.ProjectsGetCardParams ): Promise { return this.ky - .get('/projects/columns/cards/{card_id}') + .get(`/projects/columns/cards/${params.card_id}`) .json() } @@ -40662,10 +55707,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsDeleteCardParamsSchema }) async projectsDeleteCard( - _params: github.ProjectsDeleteCardParams + params: github.ProjectsDeleteCardParams ): Promise { return this.ky - .delete('/projects/columns/cards/{card_id}') + .delete(`/projects/columns/cards/${params.card_id}`) .json() } @@ -40685,8 +55730,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsUpdateCardParams ): Promise { return this.ky - .patch('/projects/columns/cards/{card_id}', { - json: params + .patch(`/projects/columns/cards/${params.card_id}`, { + json: pick(params, 'note', 'archived') }) .json() } @@ -40707,8 +55752,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsMoveCardParams ): Promise { return this.ky - .post('/projects/columns/cards/{card_id}/moves', { - json: params + .post(`/projects/columns/cards/${params.card_id}/moves`, { + json: pick(params, 'position', 'column_id') }) .json() } @@ -40726,10 +55771,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsGetColumnParamsSchema }) async projectsGetColumn( - _params: github.ProjectsGetColumnParams + params: github.ProjectsGetColumnParams ): Promise { return this.ky - .get('/projects/columns/{column_id}') + .get(`/projects/columns/${params.column_id}`) .json() } @@ -40746,10 +55791,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsDeleteColumnParamsSchema }) async projectsDeleteColumn( - _params: github.ProjectsDeleteColumnParams + params: github.ProjectsDeleteColumnParams ): Promise { return this.ky - .delete('/projects/columns/{column_id}') + .delete(`/projects/columns/${params.column_id}`) .json() } @@ -40769,8 +55814,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsUpdateColumnParams ): Promise { return this.ky - .patch('/projects/columns/{column_id}', { - json: params + .patch(`/projects/columns/${params.column_id}`, { + json: pick(params, 'name') }) .json() } @@ -40791,8 +55836,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsListCardsParams ): Promise { return this.ky - .get('/projects/columns/{column_id}/cards', { - searchParams: sanitizeSearchParams(params) + .get(`/projects/columns/${params.column_id}/cards`, { + searchParams: sanitizeSearchParams( + pick(params, 'archived_state', 'per_page', 'page') + ) }) .json() } @@ -40814,7 +55861,7 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsCreateCardParams ): Promise { return this.ky - .post('/projects/columns/{column_id}/cards', { + .post(`/projects/columns/${params.column_id}/cards`, { json: params }) .json() @@ -40836,8 +55883,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsMoveColumnParams ): Promise { return this.ky - .post('/projects/columns/{column_id}/moves', { - json: params + .post(`/projects/columns/${params.column_id}/moves`, { + json: pick(params, 'position') }) .json() } @@ -40855,10 +55902,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsGetParamsSchema }) async projectsGet( - _params: github.ProjectsGetParams + params: github.ProjectsGetParams ): Promise { return this.ky - .get('/projects/{project_id}') + .get(`/projects/${params.project_id}`) .json() } @@ -40875,10 +55922,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsDeleteParamsSchema }) async projectsDelete( - _params: github.ProjectsDeleteParams + params: github.ProjectsDeleteParams ): Promise { return this.ky - .delete('/projects/{project_id}') + .delete(`/projects/${params.project_id}`) .json() } @@ -40898,8 +55945,15 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsUpdateParams ): Promise { return this.ky - .patch('/projects/{project_id}', { - json: params + .patch(`/projects/${params.project_id}`, { + json: pick( + params, + 'name', + 'body', + 'state', + 'organization_permission', + 'private' + ) }) .json() } @@ -40920,8 +55974,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsListCollaboratorsParams ): Promise { return this.ky - .get('/projects/{project_id}/collaborators', { - searchParams: sanitizeSearchParams(params) + .get(`/projects/${params.project_id}/collaborators`, { + searchParams: sanitizeSearchParams( + pick(params, 'affiliation', 'per_page', 'page') + ) }) .json() } @@ -40942,9 +55998,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsAddCollaboratorParams ): Promise { return this.ky - .put('/projects/{project_id}/collaborators/{username}', { - json: params - }) + .put( + `/projects/${params.project_id}/collaborators/${params.username}`, + { + json: pick(params, 'permission') + } + ) .json() } @@ -40961,10 +56020,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsRemoveCollaboratorParamsSchema }) async projectsRemoveCollaborator( - _params: github.ProjectsRemoveCollaboratorParams + params: github.ProjectsRemoveCollaboratorParams ): Promise { return this.ky - .delete('/projects/{project_id}/collaborators/{username}') + .delete( + `/projects/${params.project_id}/collaborators/${params.username}`, + {} + ) .json() } @@ -40981,10 +56043,13 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsGetPermissionForUserParamsSchema }) async projectsGetPermissionForUser( - _params: github.ProjectsGetPermissionForUserParams + params: github.ProjectsGetPermissionForUserParams ): Promise { return this.ky - .get('/projects/{project_id}/collaborators/{username}/permission') + .get( + `/projects/${params.project_id}/collaborators/${params.username}/permission`, + {} + ) .json() } @@ -41001,10 +56066,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` inputSchema: github.ProjectsListColumnsParamsSchema }) async projectsListColumns( - _params: github.ProjectsListColumnsParams + params: github.ProjectsListColumnsParams ): Promise { return this.ky - .get('/projects/{project_id}/columns') + .get(`/projects/${params.project_id}/columns`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -41024,8 +56091,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:org\`, \` params: github.ProjectsCreateColumnParams ): Promise { return this.ky - .post('/projects/{project_id}/columns', { - json: params + .post(`/projects/${params.project_id}/columns`, { + json: pick(params, 'name') }) .json() } @@ -41089,9 +56156,11 @@ Some categories of endpoints have custom rate limits that are separate from the inputSchema: github.ReposGetParamsSchema }) async reposGet( - _params: github.ReposGetParams + params: github.ReposGetParams ): Promise { - return this.ky.get('/repos/{owner}/{repo}').json() + return this.ky + .get(`/repos/${params.owner}/${params.repo}`, {}) + .json() } /** @@ -41113,10 +56182,10 @@ OAuth app tokens and personal access tokens (classic) need the \`delete_repo\` s inputSchema: github.ReposDeleteParamsSchema }) async reposDelete( - _params: github.ReposDeleteParams + params: github.ReposDeleteParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}') + .delete(`/repos/${params.owner}/${params.repo}`, {}) .json() } @@ -41132,8 +56201,35 @@ OAuth app tokens and personal access tokens (classic) need the \`delete_repo\` s params: github.ReposUpdateParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}', { - json: params + .patch(`/repos/${params.owner}/${params.repo}`, { + json: pick( + params, + 'name', + 'description', + 'homepage', + 'private', + 'visibility', + 'security_and_analysis', + 'has_issues', + 'has_projects', + 'has_wiki', + 'is_template', + 'default_branch', + 'allow_squash_merge', + 'allow_merge_commit', + 'allow_rebase_merge', + 'allow_auto_merge', + 'delete_branch_on_merge', + 'allow_update_branch', + 'use_squash_pr_title_as_default', + 'squash_merge_commit_title', + 'squash_merge_commit_message', + 'merge_commit_title', + 'merge_commit_message', + 'archived', + 'allow_forking', + 'web_commit_signoff_required' + ) }) .json() } @@ -41155,10 +56251,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListArtifactsForRepoParamsSchema }) async actionsListArtifactsForRepo( - _params: github.ActionsListArtifactsForRepoParams + params: github.ActionsListArtifactsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/artifacts') + .get(`/repos/${params.owner}/${params.repo}/actions/artifacts`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'name') + ) + }) .json() } @@ -41179,10 +56279,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetArtifactParamsSchema }) async actionsGetArtifact( - _params: github.ActionsGetArtifactParams + params: github.ActionsGetArtifactParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/artifacts/{artifact_id}') + .get( + `/repos/${params.owner}/${params.repo}/actions/artifacts/${params.artifact_id}`, + {} + ) .json() } @@ -41197,10 +56300,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteArtifactParamsSchema }) async actionsDeleteArtifact( - _params: github.ActionsDeleteArtifactParams + params: github.ActionsDeleteArtifactParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/artifacts/{artifact_id}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/artifacts/${params.artifact_id}`, + {} + ) .json() } @@ -41223,7 +56329,8 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/actions/artifacts/${params.artifact_id}/${params.archive_format}` + `/repos/${params.owner}/${params.repo}/actions/artifacts/${params.artifact_id}/${params.archive_format}`, + {} ) .json() } @@ -41247,10 +56354,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetActionsCacheUsageParamsSchema }) async actionsGetActionsCacheUsage( - _params: github.ActionsGetActionsCacheUsageParams + params: github.ActionsGetActionsCacheUsageParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/cache/usage') + .get( + `/repos/${params.owner}/${params.repo}/actions/cache/usage`, + {} + ) .json() } @@ -41267,10 +56377,14 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetActionsCacheListParamsSchema }) async actionsGetActionsCacheList( - _params: github.ActionsGetActionsCacheListParams + params: github.ActionsGetActionsCacheListParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/caches') + .get(`/repos/${params.owner}/${params.repo}/actions/caches`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'ref', 'key', 'sort', 'direction') + ) + }) .json() } @@ -41287,10 +56401,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteActionsCacheByKeyParamsSchema }) async actionsDeleteActionsCacheByKey( - _params: github.ActionsDeleteActionsCacheByKeyParams + params: github.ActionsDeleteActionsCacheByKeyParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/caches') + .delete(`/repos/${params.owner}/${params.repo}/actions/caches`, { + searchParams: sanitizeSearchParams(pick(params, 'key', 'ref')) + }) .json() } @@ -41307,10 +56423,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteActionsCacheByIdParamsSchema }) async actionsDeleteActionsCacheById( - _params: github.ActionsDeleteActionsCacheByIdParams + params: github.ActionsDeleteActionsCacheByIdParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/caches/{cache_id}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/caches/${params.cache_id}`, + {} + ) .json() } @@ -41331,10 +56450,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetJobForWorkflowRunParamsSchema }) async actionsGetJobForWorkflowRun( - _params: github.ActionsGetJobForWorkflowRunParams + params: github.ActionsGetJobForWorkflowRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/jobs/{job_id}') + .get( + `/repos/${params.owner}/${params.repo}/actions/jobs/${params.job_id}`, + {} + ) .json() } @@ -41357,10 +56479,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsDownloadJobLogsForWorkflowRunParamsSchema }) async actionsDownloadJobLogsForWorkflowRun( - _params: github.ActionsDownloadJobLogsForWorkflowRunParams + params: github.ActionsDownloadJobLogsForWorkflowRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/jobs/{job_id}/logs') + .get( + `/repos/${params.owner}/${params.repo}/actions/jobs/${params.job_id}/logs`, + {} + ) .json() } @@ -41380,9 +56505,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsReRunJobForWorkflowRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/jobs/${params.job_id}/rerun`, + { + json: pick(params, 'enable_debug_logging') + } + ) .json() } @@ -41399,10 +56527,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetCustomOidcSubClaimForRepoParamsSchema }) async actionsGetCustomOidcSubClaimForRepo( - _params: github.ActionsGetCustomOidcSubClaimForRepoParams + params: github.ActionsGetCustomOidcSubClaimForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/oidc/customization/sub') + .get( + `/repos/${params.owner}/${params.repo}/actions/oidc/customization/sub`, + {} + ) .json() } @@ -41422,9 +56553,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetCustomOidcSubClaimForRepoParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/oidc/customization/sub', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/oidc/customization/sub`, + { + json: pick(params, 'use_default', 'include_claim_keys') + } + ) .json() } @@ -41447,10 +56581,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRepoOrganizationSecretsParamsSchema }) async actionsListRepoOrganizationSecrets( - _params: github.ActionsListRepoOrganizationSecretsParams + params: github.ActionsListRepoOrganizationSecretsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/organization-secrets') + .get( + `/repos/${params.owner}/${params.repo}/actions/organization-secrets`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -41471,10 +56610,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRepoOrganizationVariablesParamsSchema }) async actionsListRepoOrganizationVariables( - _params: github.ActionsListRepoOrganizationVariablesParams + params: github.ActionsListRepoOrganizationVariablesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/organization-variables') + .get( + `/repos/${params.owner}/${params.repo}/actions/organization-variables`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -41491,10 +56635,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetGithubActionsPermissionsRepositoryParamsSchema }) async actionsGetGithubActionsPermissionsRepository( - _params: github.ActionsGetGithubActionsPermissionsRepositoryParams + params: github.ActionsGetGithubActionsPermissionsRepositoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/permissions') + .get( + `/repos/${params.owner}/${params.repo}/actions/permissions`, + {} + ) .json() } @@ -41514,8 +56661,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetGithubActionsPermissionsRepositoryParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/permissions', { - json: params + .put(`/repos/${params.owner}/${params.repo}/actions/permissions`, { + json: pick(params, 'enabled', 'allowed_actions') }) .json() } @@ -41537,10 +56684,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowAccessToRepositoryParamsSchema }) async actionsGetWorkflowAccessToRepository( - _params: github.ActionsGetWorkflowAccessToRepositoryParams + params: github.ActionsGetWorkflowAccessToRepositoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/permissions/access') + .get( + `/repos/${params.owner}/${params.repo}/actions/permissions/access`, + {} + ) .json() } @@ -41564,9 +56714,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetWorkflowAccessToRepositoryParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/permissions/access', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/permissions/access`, + { + json: pick(params, 'access_level') + } + ) .json() } @@ -41583,10 +56736,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetAllowedActionsRepositoryParamsSchema }) async actionsGetAllowedActionsRepository( - _params: github.ActionsGetAllowedActionsRepositoryParams + params: github.ActionsGetAllowedActionsRepositoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/permissions/selected-actions') + .get( + `/repos/${params.owner}/${params.repo}/actions/permissions/selected-actions`, + {} + ) .json() } @@ -41606,9 +56762,17 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetAllowedActionsRepositoryParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/permissions/selected-actions', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/permissions/selected-actions`, + { + json: pick( + params, + 'github_owned_allowed', + 'verified_allowed', + 'patterns_allowed' + ) + } + ) .json() } @@ -41630,10 +56794,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use github.ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParamsSchema }) async actionsGetGithubActionsDefaultWorkflowPermissionsRepository( - _params: github.ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParams + params: github.ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/permissions/workflow') + .get( + `/repos/${params.owner}/${params.repo}/actions/permissions/workflow`, + {} + ) .json() } @@ -41658,9 +56825,16 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/permissions/workflow', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/permissions/workflow`, + { + json: pick( + params, + 'default_workflow_permissions', + 'can_approve_pull_request_reviews' + ) + } + ) .json() } @@ -41684,8 +56858,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsListSelfHostedRunnersForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runners', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/actions/runners`, { + searchParams: sanitizeSearchParams( + pick(params, 'name', 'per_page', 'page') + ) }) .json() } @@ -41707,10 +56883,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRunnerApplicationsForRepoParamsSchema }) async actionsListRunnerApplicationsForRepo( - _params: github.ActionsListRunnerApplicationsForRepoParams + params: github.ActionsListRunnerApplicationsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runners/downloads') + .get( + `/repos/${params.owner}/${params.repo}/actions/runners/downloads`, + {} + ) .json() } @@ -41734,9 +56913,12 @@ OAuth tokens and personal access tokens (classic) need the\`repo\` scope to use params: github.ActionsGenerateRunnerJitconfigForRepoParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runners/generate-jitconfig', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/runners/generate-jitconfig`, + { + json: pick(params, 'name', 'runner_group_id', 'labels', 'work_folder') + } + ) .json() } @@ -41769,10 +56951,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsCreateRegistrationTokenForRepoParamsSchema }) async actionsCreateRegistrationTokenForRepo( - _params: github.ActionsCreateRegistrationTokenForRepoParams + params: github.ActionsCreateRegistrationTokenForRepoParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runners/registration-token') + .post( + `/repos/${params.owner}/${params.repo}/actions/runners/registration-token`, + {} + ) .json() } @@ -41805,10 +56990,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsCreateRemoveTokenForRepoParamsSchema }) async actionsCreateRemoveTokenForRepo( - _params: github.ActionsCreateRemoveTokenForRepoParams + params: github.ActionsCreateRemoveTokenForRepoParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runners/remove-token') + .post( + `/repos/${params.owner}/${params.repo}/actions/runners/remove-token`, + {} + ) .json() } @@ -41829,10 +57017,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetSelfHostedRunnerForRepoParamsSchema }) async actionsGetSelfHostedRunnerForRepo( - _params: github.ActionsGetSelfHostedRunnerForRepoParams + params: github.ActionsGetSelfHostedRunnerForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runners/{runner_id}') + .get( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}`, + {} + ) .json() } @@ -41853,10 +57044,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteSelfHostedRunnerFromRepoParamsSchema }) async actionsDeleteSelfHostedRunnerFromRepo( - _params: github.ActionsDeleteSelfHostedRunnerFromRepoParams + params: github.ActionsDeleteSelfHostedRunnerFromRepoParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/runners/{runner_id}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}`, + {} + ) .json() } @@ -41877,10 +57071,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListLabelsForSelfHostedRunnerForRepoParamsSchema }) async actionsListLabelsForSelfHostedRunnerForRepo( - _params: github.ActionsListLabelsForSelfHostedRunnerForRepoParams + params: github.ActionsListLabelsForSelfHostedRunnerForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels') + .get( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}/labels`, + {} + ) .json() } @@ -41905,9 +57102,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use params: github.ActionsAddCustomLabelsToSelfHostedRunnerForRepoParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}/labels`, + { + json: pick(params, 'labels') + } + ) .json() } @@ -41934,9 +57134,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsSetCustomLabelsForSelfHostedRunnerForRepoParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}/labels`, + { + json: pick(params, 'labels') + } + ) .json() } @@ -41960,10 +57163,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParamsSchema }) async actionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo( - _params: github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParams + params: github.ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels') + .delete( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}/labels`, + {} + ) .json() } @@ -41993,10 +57199,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to github.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParamsSchema }) async actionsRemoveCustomLabelFromSelfHostedRunnerForRepo( - _params: github.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParams + params: github.ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/runners/${params.runner_id}/labels/${params.name}`, + {} + ) .json() } @@ -42021,10 +57230,26 @@ This endpoint will return up to 1,000 results for each search when using the fol inputSchema: github.ActionsListWorkflowRunsForRepoParamsSchema }) async actionsListWorkflowRunsForRepo( - _params: github.ActionsListWorkflowRunsForRepoParams + params: github.ActionsListWorkflowRunsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs') + .get(`/repos/${params.owner}/${params.repo}/actions/runs`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'actor', + 'branch', + 'event', + 'status', + 'per_page', + 'page', + 'created', + 'exclude_pull_requests', + 'check_suite_id', + 'head_sha' + ) + ) + }) .json() } @@ -42045,10 +57270,17 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowRunParamsSchema }) async actionsGetWorkflowRun( - _params: github.ActionsGetWorkflowRunParams + params: github.ActionsGetWorkflowRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}`, + { + searchParams: sanitizeSearchParams( + pick(params, 'exclude_pull_requests') + ) + } + ) .json() } @@ -42069,10 +57301,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsDeleteWorkflowRunParamsSchema }) async actionsDeleteWorkflowRun( - _params: github.ActionsDeleteWorkflowRunParams + params: github.ActionsDeleteWorkflowRunParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/runs/{run_id}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}`, + {} + ) .json() } @@ -42089,10 +57324,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetReviewsForRunParamsSchema }) async actionsGetReviewsForRun( - _params: github.ActionsGetReviewsForRunParams + params: github.ActionsGetReviewsForRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/approvals') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/approvals`, + {} + ) .json() } @@ -42109,10 +57347,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsApproveWorkflowRunParamsSchema }) async actionsApproveWorkflowRun( - _params: github.ActionsApproveWorkflowRunParams + params: github.ActionsApproveWorkflowRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/approve') + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/approve`, + {} + ) .json() } @@ -42133,10 +57374,17 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListWorkflowRunArtifactsParamsSchema }) async actionsListWorkflowRunArtifacts( - _params: github.ActionsListWorkflowRunArtifactsParams + params: github.ActionsListWorkflowRunArtifactsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/artifacts`, + { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'name') + ) + } + ) .json() } @@ -42157,11 +57405,16 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowRunAttemptParamsSchema }) async actionsGetWorkflowRunAttempt( - _params: github.ActionsGetWorkflowRunAttemptParams + params: github.ActionsGetWorkflowRunAttemptParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}' + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/attempts/${params.attempt_number}`, + { + searchParams: sanitizeSearchParams( + pick(params, 'exclude_pull_requests') + ) + } ) .json() } @@ -42185,11 +57438,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListJobsForWorkflowRunAttemptParamsSchema }) async actionsListJobsForWorkflowRunAttempt( - _params: github.ActionsListJobsForWorkflowRunAttemptParams + params: github.ActionsListJobsForWorkflowRunAttemptParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs' + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/attempts/${params.attempt_number}/jobs`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -42213,11 +57469,12 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsDownloadWorkflowRunAttemptLogsParamsSchema }) async actionsDownloadWorkflowRunAttemptLogs( - _params: github.ActionsDownloadWorkflowRunAttemptLogsParams + params: github.ActionsDownloadWorkflowRunAttemptLogsParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs' + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/attempts/${params.attempt_number}/logs`, + {} ) .json() } @@ -42235,10 +57492,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsCancelWorkflowRunParamsSchema }) async actionsCancelWorkflowRun( - _params: github.ActionsCancelWorkflowRunParams + params: github.ActionsCancelWorkflowRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/cancel') + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/cancel`, + {} + ) .json() } @@ -42266,7 +57526,7 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule', + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/deployment_protection_rule`, { json: params } @@ -42289,10 +57549,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsForceCancelWorkflowRunParamsSchema }) async actionsForceCancelWorkflowRun( - _params: github.ActionsForceCancelWorkflowRunParams + params: github.ActionsForceCancelWorkflowRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel') + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/force-cancel`, + {} + ) .json() } @@ -42318,9 +57581,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsListJobsForWorkflowRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/jobs', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/jobs`, + { + searchParams: sanitizeSearchParams( + pick(params, 'filter', 'per_page', 'page') + ) + } + ) .json() } @@ -42343,10 +57611,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsDownloadWorkflowRunLogsParamsSchema }) async actionsDownloadWorkflowRunLogs( - _params: github.ActionsDownloadWorkflowRunLogsParams + params: github.ActionsDownloadWorkflowRunLogsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/logs') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/logs`, + {} + ) .json() } @@ -42363,10 +57634,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteWorkflowRunLogsParamsSchema }) async actionsDeleteWorkflowRunLogs( - _params: github.ActionsDeleteWorkflowRunLogsParams + params: github.ActionsDeleteWorkflowRunLogsParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/runs/{run_id}/logs') + .delete( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/logs`, + {} + ) .json() } @@ -42387,10 +57661,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetPendingDeploymentsForRunParamsSchema }) async actionsGetPendingDeploymentsForRun( - _params: github.ActionsGetPendingDeploymentsForRunParams + params: github.ActionsGetPendingDeploymentsForRunParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/pending_deployments`, + {} + ) .json() } @@ -42414,9 +57691,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsReviewPendingDeploymentsForRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/pending_deployments`, + { + json: pick(params, 'environment_ids', 'state', 'comment') + } + ) .json() } @@ -42436,9 +57716,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsReRunWorkflowParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/rerun', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/rerun`, + { + json: pick(params, 'enable_debug_logging') + } + ) .json() } @@ -42458,14 +57741,17 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsReRunWorkflowFailedJobsParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/rerun-failed-jobs`, + { + json: pick(params, 'enable_debug_logging') + } + ) .json() } /** - * > [!WARNING] + * > [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". @@ -42476,7 +57762,7 @@ OAuth app tokens and personal access tokens (classic) need the `repo` scope to u */ @aiFunction({ name: 'actions_get_workflow_run_usage', - description: `> [!WARNING] + description: `> [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". @@ -42487,10 +57773,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowRunUsageParamsSchema }) async actionsGetWorkflowRunUsage( - _params: github.ActionsGetWorkflowRunUsageParams + params: github.ActionsGetWorkflowRunUsageParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/runs/{run_id}/timing') + .get( + `/repos/${params.owner}/${params.repo}/actions/runs/${params.run_id}/timing`, + {} + ) .json() } @@ -42513,10 +57802,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRepoSecretsParamsSchema }) async actionsListRepoSecrets( - _params: github.ActionsListRepoSecretsParams + params: github.ActionsListRepoSecretsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/secrets') + .get(`/repos/${params.owner}/${params.repo}/actions/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -42539,10 +57830,13 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetRepoPublicKeyParamsSchema }) async actionsGetRepoPublicKey( - _params: github.ActionsGetRepoPublicKeyParams + params: github.ActionsGetRepoPublicKeyParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/secrets/public-key') + .get( + `/repos/${params.owner}/${params.repo}/actions/secrets/public-key`, + {} + ) .json() } @@ -42563,10 +57857,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetRepoSecretParamsSchema }) async actionsGetRepoSecret( - _params: github.ActionsGetRepoSecretParams + params: github.ActionsGetRepoSecretParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/secrets/{secret_name}') + .get( + `/repos/${params.owner}/${params.repo}/actions/secrets/${params.secret_name}`, + {} + ) .json() } @@ -42592,9 +57889,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use params: github.ActionsCreateOrUpdateRepoSecretParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/secrets/{secret_name}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/actions/secrets/${params.secret_name}`, + { + json: pick(params, 'encrypted_value', 'key_id') + } + ) .json() } @@ -42615,10 +57915,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteRepoSecretParamsSchema }) async actionsDeleteRepoSecret( - _params: github.ActionsDeleteRepoSecretParams + params: github.ActionsDeleteRepoSecretParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/secrets/{secret_name}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/secrets/${params.secret_name}`, + {} + ) .json() } @@ -42639,10 +57942,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRepoVariablesParamsSchema }) async actionsListRepoVariables( - _params: github.ActionsListRepoVariablesParams + params: github.ActionsListRepoVariablesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/variables') + .get(`/repos/${params.owner}/${params.repo}/actions/variables`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -42666,8 +57971,8 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use params: github.ActionsCreateRepoVariableParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/actions/variables', { - json: params + .post(`/repos/${params.owner}/${params.repo}/actions/variables`, { + json: pick(params, 'name', 'value') }) .json() } @@ -42689,10 +57994,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetRepoVariableParamsSchema }) async actionsGetRepoVariable( - _params: github.ActionsGetRepoVariableParams + params: github.ActionsGetRepoVariableParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/variables/{name}') + .get( + `/repos/${params.owner}/${params.repo}/actions/variables/${params.name}`, + {} + ) .json() } @@ -42713,10 +58021,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteRepoVariableParamsSchema }) async actionsDeleteRepoVariable( - _params: github.ActionsDeleteRepoVariableParams + params: github.ActionsDeleteRepoVariableParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/actions/variables/{name}') + .delete( + `/repos/${params.owner}/${params.repo}/actions/variables/${params.name}`, + {} + ) .json() } @@ -42740,9 +58051,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ActionsUpdateRepoVariableParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/actions/variables/{name}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/actions/variables/${params.name}`, + { + json: pick(params, 'name', 'value') + } + ) .json() } @@ -42763,10 +58077,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListRepoWorkflowsParamsSchema }) async actionsListRepoWorkflows( - _params: github.ActionsListRepoWorkflowsParams + params: github.ActionsListRepoWorkflowsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/workflows') + .get(`/repos/${params.owner}/${params.repo}/actions/workflows`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -42789,10 +58105,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowParamsSchema }) async actionsGetWorkflow( - _params: github.ActionsGetWorkflowParams + params: github.ActionsGetWorkflowParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/workflows/{workflow_id}') + .get( + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}`, + {} + ) .json() } @@ -42809,10 +58128,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDisableWorkflowParamsSchema }) async actionsDisableWorkflow( - _params: github.ActionsDisableWorkflowParams + params: github.ActionsDisableWorkflowParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable') + .put( + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}/disable`, + {} + ) .json() } @@ -42837,9 +58159,9 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}/dispatches`, { - json: params + json: pick(params, 'ref', 'inputs') } ) .json() @@ -42858,10 +58180,13 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsEnableWorkflowParamsSchema }) async actionsEnableWorkflow( - _params: github.ActionsEnableWorkflowParams + params: github.ActionsEnableWorkflowParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable') + .put( + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}/enable`, + {} + ) .json() } @@ -42886,15 +58211,34 @@ This endpoint will return up to 1,000 results for each search when using the fol inputSchema: github.ActionsListWorkflowRunsParamsSchema }) async actionsListWorkflowRuns( - _params: github.ActionsListWorkflowRunsParams + params: github.ActionsListWorkflowRunsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs') + .get( + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}/runs`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'actor', + 'branch', + 'event', + 'status', + 'per_page', + 'page', + 'created', + 'exclude_pull_requests', + 'check_suite_id', + 'head_sha' + ) + ) + } + ) .json() } /** - * > [!WARNING] + * > [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". @@ -42907,7 +58251,7 @@ OAuth app tokens and personal access tokens (classic) need the `repo` scope to u */ @aiFunction({ name: 'actions_get_workflow_usage', - description: `> [!WARNING] + description: `> [!WARNING] > This endpoint is in the process of closing down. Refer to "[Actions Get workflow usage and Get workflow run usage endpoints closing down](https://github.blog/changelog/2025-02-02-actions-get-workflow-usage-and-get-workflow-run-usage-endpoints-closing-down/)" for more information. Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". @@ -42920,10 +58264,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsGetWorkflowUsageParamsSchema }) async actionsGetWorkflowUsage( - _params: github.ActionsGetWorkflowUsageParams + params: github.ActionsGetWorkflowUsageParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing') + .get( + `/repos/${params.owner}/${params.repo}/actions/workflows/${params.workflow_id}/timing`, + {} + ) .json() } @@ -42945,8 +58292,20 @@ see "[Viewing activity and data for your repository](https://docs.github.com/rep params: github.ReposListActivitiesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/activity', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/activity`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'direction', + 'per_page', + 'before', + 'after', + 'ref', + 'actor', + 'time_period', + 'activity_type' + ) + ) }) .json() } @@ -42960,10 +58319,12 @@ see "[Viewing activity and data for your repository](https://docs.github.com/rep inputSchema: github.IssuesListAssigneesParamsSchema }) async issuesListAssignees( - _params: github.IssuesListAssigneesParams + params: github.IssuesListAssigneesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/assignees') + .get(`/repos/${params.owner}/${params.repo}/assignees`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -42988,7 +58349,8 @@ Otherwise a \`404\` status code is returned.`, ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/assignees/${params.assignee}` + `/repos/${params.owner}/${params.repo}/assignees/${params.assignee}`, + {} ) .json() } @@ -43013,8 +58375,8 @@ Artifact attestations are meant to be created using the [attest action](https:// params: github.ReposCreateAttestationParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/attestations', { - json: params + .post(`/repos/${params.owner}/${params.repo}/attestations`, { + json: pick(params, 'bundle') }) .json() } @@ -43042,7 +58404,9 @@ The authenticated user making the request must have read access to the repositor .get( `/repos/${params.owner}/${params.repo}/attestations/${params.subject_digest}`, { - searchParams: sanitizeSearchParams(pick(params, 'predicate_type')) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after', 'predicate_type') + ) } ) .json() @@ -43061,10 +58425,10 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposListAutolinksParamsSchema }) async reposListAutolinks( - _params: github.ReposListAutolinksParams + params: github.ReposListAutolinksParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/autolinks') + .get(`/repos/${params.owner}/${params.repo}/autolinks`, {}) .json() } @@ -43080,8 +58444,8 @@ Information about autolinks are only available to repository administrators.`, params: github.ReposCreateAutolinkParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/autolinks', { - json: params + .post(`/repos/${params.owner}/${params.repo}/autolinks`, { + json: pick(params, 'key_prefix', 'url_template', 'is_alphanumeric') }) .json() } @@ -43099,10 +58463,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposGetAutolinkParamsSchema }) async reposGetAutolink( - _params: github.ReposGetAutolinkParams + params: github.ReposGetAutolinkParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/autolinks/{autolink_id}') + .get( + `/repos/${params.owner}/${params.repo}/autolinks/${params.autolink_id}`, + {} + ) .json() } @@ -43119,10 +58486,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposDeleteAutolinkParamsSchema }) async reposDeleteAutolink( - _params: github.ReposDeleteAutolinkParams + params: github.ReposDeleteAutolinkParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/autolinks/{autolink_id}') + .delete( + `/repos/${params.owner}/${params.repo}/autolinks/${params.autolink_id}`, + {} + ) .json() } @@ -43135,10 +58505,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposCheckAutomatedSecurityFixesParamsSchema }) async reposCheckAutomatedSecurityFixes( - _params: github.ReposCheckAutomatedSecurityFixesParams + params: github.ReposCheckAutomatedSecurityFixesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/automated-security-fixes') + .get( + `/repos/${params.owner}/${params.repo}/automated-security-fixes`, + {} + ) .json() } @@ -43151,10 +58524,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposEnableAutomatedSecurityFixesParamsSchema }) async reposEnableAutomatedSecurityFixes( - _params: github.ReposEnableAutomatedSecurityFixesParams + params: github.ReposEnableAutomatedSecurityFixesParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/automated-security-fixes') + .put( + `/repos/${params.owner}/${params.repo}/automated-security-fixes`, + {} + ) .json() } @@ -43167,10 +58543,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposDisableAutomatedSecurityFixesParamsSchema }) async reposDisableAutomatedSecurityFixes( - _params: github.ReposDisableAutomatedSecurityFixesParams + params: github.ReposDisableAutomatedSecurityFixesParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/automated-security-fixes') + .delete( + `/repos/${params.owner}/${params.repo}/automated-security-fixes`, + {} + ) .json() } @@ -43186,8 +58565,10 @@ Information about autolinks are only available to repository administrators.`, params: github.ReposListBranchesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/branches', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/branches`, { + searchParams: sanitizeSearchParams( + pick(params, 'protected', 'per_page', 'page') + ) }) .json() } @@ -43201,10 +58582,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposGetBranchParamsSchema }) async reposGetBranch( - _params: github.ReposGetBranchParams + params: github.ReposGetBranchParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/branches/{branch}') + .get( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}`, + {} + ) .json() } @@ -43217,10 +58601,13 @@ Information about autolinks are only available to repository administrators.`, inputSchema: github.ReposGetBranchProtectionParamsSchema }) async reposGetBranchProtection( - _params: github.ReposGetBranchProtectionParams + params: github.ReposGetBranchProtectionParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/branches/{branch}/protection') + .get( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection`, + {} + ) .json() } @@ -43252,9 +58639,25 @@ Protecting a branch requires admin or owner permissions to the repository. params: github.ReposUpdateBranchProtectionParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/branches/{branch}/protection', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection`, + { + json: pick( + params, + 'required_status_checks', + 'enforce_admins', + 'required_pull_request_reviews', + 'restrictions', + 'required_linear_history', + 'allow_force_pushes', + 'allow_deletions', + 'block_creations', + 'required_conversation_resolution', + 'lock_branch', + 'allow_fork_syncing' + ) + } + ) .json() } @@ -43267,10 +58670,13 @@ Protecting a branch requires admin or owner permissions to the repository. inputSchema: github.ReposDeleteBranchProtectionParamsSchema }) async reposDeleteBranchProtection( - _params: github.ReposDeleteBranchProtectionParams + params: github.ReposDeleteBranchProtectionParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/branches/{branch}/protection') + .delete( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection`, + {} + ) .json() } @@ -43283,10 +58689,13 @@ Protecting a branch requires admin or owner permissions to the repository. inputSchema: github.ReposGetAdminBranchProtectionParamsSchema }) async reposGetAdminBranchProtection( - _params: github.ReposGetAdminBranchProtectionParams + params: github.ReposGetAdminBranchProtectionParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins') + .get( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/enforce_admins`, + {} + ) .json() } @@ -43303,10 +58712,13 @@ Adding admin enforcement requires admin or owner permissions to the repository a inputSchema: github.ReposSetAdminBranchProtectionParamsSchema }) async reposSetAdminBranchProtection( - _params: github.ReposSetAdminBranchProtectionParams + params: github.ReposSetAdminBranchProtectionParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins') + .post( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/enforce_admins`, + {} + ) .json() } @@ -43323,11 +58735,12 @@ Removing admin enforcement requires admin or owner permissions to the repository inputSchema: github.ReposDeleteAdminBranchProtectionParamsSchema }) async reposDeleteAdminBranchProtection( - _params: github.ReposDeleteAdminBranchProtectionParams + params: github.ReposDeleteAdminBranchProtectionParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/enforce_admins`, + {} ) .json() } @@ -43341,11 +58754,12 @@ Removing admin enforcement requires admin or owner permissions to the repository inputSchema: github.ReposGetPullRequestReviewProtectionParamsSchema }) async reposGetPullRequestReviewProtection( - _params: github.ReposGetPullRequestReviewProtectionParams + params: github.ReposGetPullRequestReviewProtectionParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_pull_request_reviews`, + {} ) .json() } @@ -43359,11 +58773,12 @@ Removing admin enforcement requires admin or owner permissions to the repository inputSchema: github.ReposDeletePullRequestReviewProtectionParamsSchema }) async reposDeletePullRequestReviewProtection( - _params: github.ReposDeletePullRequestReviewProtectionParams + params: github.ReposDeletePullRequestReviewProtectionParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_pull_request_reviews`, + {} ) .json() } @@ -43391,9 +58806,17 @@ Updating pull request review enforcement requires admin or owner permissions to ): Promise { return this.ky .patch( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_pull_request_reviews`, { - json: params + json: pick( + params, + 'dismissal_restrictions', + 'dismiss_stale_reviews', + 'require_code_owner_reviews', + 'required_approving_review_count', + 'require_last_push_approval', + 'bypass_pull_request_allowances' + ) } ) .json() @@ -43418,11 +58841,12 @@ When authenticated with admin or owner permissions to the repository, you can us inputSchema: github.ReposGetCommitSignatureProtectionParamsSchema }) async reposGetCommitSignatureProtection( - _params: github.ReposGetCommitSignatureProtectionParams + params: github.ReposGetCommitSignatureProtectionParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_signatures`, + {} ) .json() } @@ -43440,11 +58864,12 @@ When authenticated with admin or owner permissions to the repository, you can us inputSchema: github.ReposCreateCommitSignatureProtectionParamsSchema }) async reposCreateCommitSignatureProtection( - _params: github.ReposCreateCommitSignatureProtectionParams + params: github.ReposCreateCommitSignatureProtectionParams ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_signatures`, + {} ) .json() } @@ -43462,11 +58887,12 @@ When authenticated with admin or owner permissions to the repository, you can us inputSchema: github.ReposDeleteCommitSignatureProtectionParamsSchema }) async reposDeleteCommitSignatureProtection( - _params: github.ReposDeleteCommitSignatureProtectionParams + params: github.ReposDeleteCommitSignatureProtectionParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_signatures`, + {} ) .json() } @@ -43480,11 +58906,12 @@ When authenticated with admin or owner permissions to the repository, you can us inputSchema: github.ReposGetStatusChecksProtectionParamsSchema }) async reposGetStatusChecksProtection( - _params: github.ReposGetStatusChecksProtectionParams + params: github.ReposGetStatusChecksProtectionParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks`, + {} ) .json() } @@ -43498,11 +58925,12 @@ When authenticated with admin or owner permissions to the repository, you can us inputSchema: github.ReposRemoveStatusCheckProtectionParamsSchema }) async reposRemoveStatusCheckProtection( - _params: github.ReposRemoveStatusCheckProtectionParams + params: github.ReposRemoveStatusCheckProtectionParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks`, + {} ) .json() } @@ -43524,9 +58952,9 @@ Updating required status checks requires admin or owner permissions to the repos ): Promise { return this.ky .patch( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks`, { - json: params + json: pick(params, 'strict', 'contexts', 'checks') } ) .json() @@ -43541,11 +58969,12 @@ Updating required status checks requires admin or owner permissions to the repos inputSchema: github.ReposGetAllStatusCheckContextsParamsSchema }) async reposGetAllStatusCheckContexts( - _params: github.ReposGetAllStatusCheckContextsParams + params: github.ReposGetAllStatusCheckContextsParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks/contexts`, + {} ) .json() } @@ -43564,7 +58993,7 @@ Updating required status checks requires admin or owner permissions to the repos ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks/contexts`, { json: params } @@ -43586,7 +59015,7 @@ Updating required status checks requires admin or owner permissions to the repos ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks/contexts`, { json: params } @@ -43608,7 +59037,7 @@ Updating required status checks requires admin or owner permissions to the repos ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/required_status_checks/contexts`, { json: params } @@ -43635,10 +59064,13 @@ Lists who has access to this protected branch. inputSchema: github.ReposGetAccessRestrictionsParamsSchema }) async reposGetAccessRestrictions( - _params: github.ReposGetAccessRestrictionsParams + params: github.ReposGetAccessRestrictionsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/branches/{branch}/protection/restrictions') + .get( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions`, + {} + ) .json() } @@ -43655,10 +59087,13 @@ Disables the ability to restrict who can push to this branch.`, inputSchema: github.ReposDeleteAccessRestrictionsParamsSchema }) async reposDeleteAccessRestrictions( - _params: github.ReposDeleteAccessRestrictionsParams + params: github.ReposDeleteAccessRestrictionsParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/branches/{branch}/protection/restrictions') + .delete( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions`, + {} + ) .json() } @@ -43675,11 +59110,12 @@ Lists the GitHub Apps that have push access to this branch. Only GitHub Apps tha inputSchema: github.ReposGetAppsWithAccessToProtectedBranchParamsSchema }) async reposGetAppsWithAccessToProtectedBranch( - _params: github.ReposGetAppsWithAccessToProtectedBranchParams + params: github.ReposGetAppsWithAccessToProtectedBranchParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/apps`, + {} ) .json() } @@ -43701,9 +59137,9 @@ Grants the specified apps push access for this branch. Only GitHub Apps that are ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/apps`, { - json: params + json: pick(params, 'apps') } ) .json() @@ -43726,9 +59162,9 @@ Replaces the list of apps that have push access to this branch. This removes all ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/apps`, { - json: params + json: pick(params, 'apps') } ) .json() @@ -43751,9 +59187,9 @@ Removes the ability of an app to push to this branch. Only GitHub Apps that are ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/apps`, { - json: params + json: pick(params, 'apps') } ) .json() @@ -43772,11 +59208,12 @@ Lists the teams who have push access to this branch. The list includes child tea inputSchema: github.ReposGetTeamsWithAccessToProtectedBranchParamsSchema }) async reposGetTeamsWithAccessToProtectedBranch( - _params: github.ReposGetTeamsWithAccessToProtectedBranchParams + params: github.ReposGetTeamsWithAccessToProtectedBranchParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/teams`, + {} ) .json() } @@ -43799,7 +59236,7 @@ Grants the specified teams push access for this branch. You can also give push a ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/teams`, { json: params } @@ -43825,7 +59262,7 @@ Replaces the list of teams that have push access to this branch. This removes al ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/teams`, { json: params } @@ -43851,7 +59288,7 @@ Removes the ability of a team to push to this branch. You can also remove push a ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/teams`, { json: params } @@ -43872,11 +59309,12 @@ Lists the people who have push access to this branch.`, inputSchema: github.ReposGetUsersWithAccessToProtectedBranchParamsSchema }) async reposGetUsersWithAccessToProtectedBranch( - _params: github.ReposGetUsersWithAccessToProtectedBranchParams + params: github.ReposGetUsersWithAccessToProtectedBranchParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users' + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/users`, + {} ) .json() } @@ -43906,9 +59344,9 @@ Grants the specified people push access for this branch. ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/users`, { - json: params + json: pick(params, 'users') } ) .json() @@ -43939,9 +59377,9 @@ Replaces the list of people that have push access to this branch. This removes a ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/users`, { - json: params + json: pick(params, 'users') } ) .json() @@ -43972,9 +59410,9 @@ Removes the ability of a user to push to this branch. ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users', + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/protection/restrictions/users`, { - json: params + json: pick(params, 'users') } ) .json() @@ -44006,9 +59444,12 @@ In order to rename the default branch, fine-grained access tokens also need the params: github.ReposRenameBranchParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/branches/{branch}/rename', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/branches/${params.branch}/rename`, + { + json: pick(params, 'new_name') + } + ) .json() } @@ -44039,7 +59480,7 @@ In a check suite, GitHub limits the number of check runs with the same name to 1 params: github.ChecksCreateParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/check-runs', { + .post(`/repos/${params.owner}/${params.repo}/check-runs`, { json: params }) .json() @@ -44064,10 +59505,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ChecksGetParamsSchema }) async checksGet( - _params: github.ChecksGetParams + params: github.ChecksGetParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/check-runs/{check_run_id}') + .get( + `/repos/${params.owner}/${params.repo}/check-runs/${params.check_run_id}`, + {} + ) .json() } @@ -44094,9 +59538,12 @@ OAuth apps and personal access tokens (classic) cannot use this endpoint.`, params: github.ChecksUpdateParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/check-runs/{check_run_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/check-runs/${params.check_run_id}`, + { + json: params + } + ) .json() } @@ -44113,10 +59560,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ChecksListAnnotationsParamsSchema }) async checksListAnnotations( - _params: github.ChecksListAnnotationsParams + params: github.ChecksListAnnotationsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations') + .get( + `/repos/${params.owner}/${params.repo}/check-runs/${params.check_run_id}/annotations`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -44137,10 +59589,13 @@ OAuth apps and personal access tokens (classic) cannot use this endpoint.`, inputSchema: github.ChecksRerequestRunParamsSchema }) async checksRerequestRun( - _params: github.ChecksRerequestRunParams + params: github.ChecksRerequestRunParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest') + .post( + `/repos/${params.owner}/${params.repo}/check-runs/${params.check_run_id}/rerequest`, + {} + ) .json() } @@ -44166,8 +59621,8 @@ OAuth apps and personal access tokens (classic) cannot use this endpoint.`, params: github.ChecksCreateSuiteParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/check-suites', { - json: params + .post(`/repos/${params.owner}/${params.repo}/check-suites`, { + json: pick(params, 'head_sha') }) .json() } @@ -44186,9 +59641,12 @@ You must have admin permissions in the repository to set preferences for check s params: github.ChecksSetSuitesPreferencesParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/check-suites/preferences', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/check-suites/preferences`, + { + json: pick(params, 'auto_trigger_checks') + } + ) .json() } @@ -44211,10 +59669,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ChecksGetSuiteParamsSchema }) async checksGetSuite( - _params: github.ChecksGetSuiteParams + params: github.ChecksGetSuiteParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/check-suites/{check_suite_id}') + .get( + `/repos/${params.owner}/${params.repo}/check-suites/${params.check_suite_id}`, + {} + ) .json() } @@ -44240,9 +59701,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ChecksListForSuiteParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/check-suites/${params.check_suite_id}/check-runs`, + { + searchParams: sanitizeSearchParams( + pick(params, 'check_name', 'status', 'filter', 'per_page', 'page') + ) + } + ) .json() } @@ -44259,10 +59725,13 @@ OAuth apps and personal access tokens (classic) cannot use this endpoint.`, inputSchema: github.ChecksRerequestSuiteParamsSchema }) async checksRerequestSuite( - _params: github.ChecksRerequestSuiteParams + params: github.ChecksRerequestSuiteParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest') + .post( + `/repos/${params.owner}/${params.repo}/check-suites/${params.check_suite_id}/rerequest`, + {} + ) .json() } @@ -44290,8 +59759,24 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events params: github.CodeScanningListAlertsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/alerts', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/code-scanning/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'tool_name', + 'tool_guid', + 'page', + 'per_page', + 'ref', + 'pr', + 'direction', + 'before', + 'after', + 'sort', + 'state', + 'severity' + ) + ) }) .json() } @@ -44309,10 +59794,13 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events inputSchema: github.CodeScanningGetAlertParamsSchema }) async codeScanningGetAlert( - _params: github.CodeScanningGetAlertParams + params: github.CodeScanningGetAlertParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') + .get( + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}`, + {} + ) .json() } @@ -44330,9 +59818,18 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events params: github.CodeScanningUpdateAlertParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}`, + { + json: pick( + params, + 'state', + 'dismissed_reason', + 'dismissed_comment', + 'create_request' + ) + } + ) .json() } @@ -44349,10 +59846,13 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events inputSchema: github.CodeScanningGetAutofixParamsSchema }) async codeScanningGetAutofix( - _params: github.CodeScanningGetAutofixParams + params: github.CodeScanningGetAutofixParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix') + .get( + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}/autofix`, + {} + ) .json() } @@ -44377,10 +59877,13 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events inputSchema: github.CodeScanningCreateAutofixParamsSchema }) async codeScanningCreateAutofix( - _params: github.CodeScanningCreateAutofixParams + params: github.CodeScanningCreateAutofixParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix') + .post( + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}/autofix`, + {} + ) .json() } @@ -44405,9 +59908,9 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits', + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}/autofix/commits`, { - json: params + json: pick(params, 'target_ref', 'message') } ) .json() @@ -44426,11 +59929,16 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events inputSchema: github.CodeScanningListAlertInstancesParamsSchema }) async codeScanningListAlertInstances( - _params: github.CodeScanningListAlertInstancesParams + params: github.CodeScanningListAlertInstancesParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' + `/repos/${params.owner}/${params.repo}/code-scanning/alerts/${params.alert_number}/instances`, + { + searchParams: sanitizeSearchParams( + pick(params, 'page', 'per_page', 'ref', 'pr') + ) + } ) .json() } @@ -44475,9 +59983,25 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events params: github.CodeScanningListRecentAnalysesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/analyses', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/code-scanning/analyses`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'tool_name', + 'tool_guid', + 'page', + 'per_page', + 'pr', + 'ref', + 'sarif_id', + 'direction', + 'sort' + ) + ) + } + ) .json() } @@ -44526,7 +60050,8 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/code-scanning/analyses/${params.analysis_id}` + `/repos/${params.owner}/${params.repo}/code-scanning/analyses/${params.analysis_id}`, + {} ) .json() } @@ -44691,10 +60216,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodeScanningListCodeqlDatabasesParamsSchema }) async codeScanningListCodeqlDatabases( - _params: github.CodeScanningListCodeqlDatabasesParams + params: github.CodeScanningListCodeqlDatabasesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/codeql/databases') + .get( + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/databases`, + {} + ) .json() } @@ -44727,7 +60255,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/code-scanning/codeql/databases/${params.language}` + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/databases/${params.language}`, + {} ) .json() } @@ -44749,7 +60278,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .delete( - `/repos/${params.owner}/${params.repo}/code-scanning/codeql/databases/${params.language}` + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/databases/${params.language}`, + {} ) .json() } @@ -44781,9 +60311,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.CodeScanningCreateVariantAnalysisParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/variant-analyses`, + { + json: params + } + ) .json() } @@ -44804,7 +60337,8 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/code-scanning/codeql/variant-analyses/${params.codeql_variant_analysis_id}` + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/variant-analyses/${params.codeql_variant_analysis_id}`, + {} ) .json() } @@ -44826,7 +60360,8 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/code-scanning/codeql/variant-analyses/${params.codeql_variant_analysis_id}/repos/${params.repo_owner}/${params.repo_name}` + `/repos/${params.owner}/${params.repo}/code-scanning/codeql/variant-analyses/${params.codeql_variant_analysis_id}/repos/${params.repo_owner}/${params.repo_name}`, + {} ) .json() } @@ -44844,10 +60379,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodeScanningGetDefaultSetupParamsSchema }) async codeScanningGetDefaultSetup( - _params: github.CodeScanningGetDefaultSetupParams + params: github.CodeScanningGetDefaultSetupParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-scanning/default-setup') + .get( + `/repos/${params.owner}/${params.repo}/code-scanning/default-setup`, + {} + ) .json() } @@ -44867,9 +60405,19 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.CodeScanningUpdateDefaultSetupParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/code-scanning/default-setup', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/code-scanning/default-setup`, + { + json: pick( + params, + 'state', + 'runner_type', + 'runner_label', + 'query_suite', + 'languages' + ) + } + ) .json() } @@ -44951,9 +60499,21 @@ This endpoint is limited to 1,000 requests per hour for each user or app install params: github.CodeScanningUploadSarifParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/code-scanning/sarifs', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/code-scanning/sarifs`, + { + json: pick( + params, + 'commit_sha', + 'ref', + 'sarif', + 'checkout_uri', + 'started_at', + 'tool_name', + 'validate' + ) + } + ) .json() } @@ -44972,7 +60532,8 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/code-scanning/sarifs/${params.sarif_id}` + `/repos/${params.owner}/${params.repo}/code-scanning/sarifs/${params.sarif_id}`, + {} ) .json() } @@ -44994,10 +60555,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodeSecurityGetConfigurationForRepositoryParamsSchema }) async codeSecurityGetConfigurationForRepository( - _params: github.CodeSecurityGetConfigurationForRepositoryParams + params: github.CodeSecurityGetConfigurationForRepositoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/code-security-configuration') + .get( + `/repos/${params.owner}/${params.repo}/code-security-configuration`, + {} + ) .json() } @@ -45021,8 +60585,8 @@ see "[About code owners](https://docs.github.com/repositories/managing-your-repo params: github.ReposCodeownersErrorsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codeowners/errors', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/codeowners/errors`, { + searchParams: sanitizeSearchParams(pick(params, 'ref')) }) .json() } @@ -45041,10 +60605,12 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco github.CodespacesListInRepositoryForAuthenticatedUserParamsSchema }) async codespacesListInRepositoryForAuthenticatedUser( - _params: github.CodespacesListInRepositoryForAuthenticatedUserParams + params: github.CodespacesListInRepositoryForAuthenticatedUserParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces') + .get(`/repos/${params.owner}/${params.repo}/codespaces`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -45064,8 +60630,21 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesCreateWithRepoForAuthenticatedUserParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/codespaces', { - json: params + .post(`/repos/${params.owner}/${params.repo}/codespaces`, { + json: pick( + params, + 'ref', + 'location', + 'geo', + 'client_ip', + 'machine', + 'devcontainer_path', + 'multi_repo_permissions_opt_out', + 'working_directory', + 'idle_timeout_minutes', + 'display_name', + 'retention_period_minutes' + ) }) .json() } @@ -45086,10 +60665,15 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco github.CodespacesListDevcontainersInRepositoryForAuthenticatedUserParamsSchema }) async codespacesListDevcontainersInRepositoryForAuthenticatedUser( - _params: github.CodespacesListDevcontainersInRepositoryForAuthenticatedUserParams + params: github.CodespacesListDevcontainersInRepositoryForAuthenticatedUserParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/devcontainers') + .get( + `/repos/${params.owner}/${params.repo}/codespaces/devcontainers`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -45109,8 +60693,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesRepoMachinesForAuthenticatedUserParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/machines', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/codespaces/machines`, { + searchParams: sanitizeSearchParams( + pick(params, 'location', 'client_ip', 'ref') + ) }) .json() } @@ -45132,8 +60718,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesPreFlightWithRepoForAuthenticatedUserParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/new', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/codespaces/new`, { + searchParams: sanitizeSearchParams(pick(params, 'ref', 'client_ip')) }) .json() } @@ -45154,9 +60740,14 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesCheckPermissionsForDevcontainerParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/permissions_check', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/codespaces/permissions_check`, + { + searchParams: sanitizeSearchParams( + pick(params, 'ref', 'devcontainer_path') + ) + } + ) .json() } @@ -45175,10 +60766,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodespacesListRepoSecretsParamsSchema }) async codespacesListRepoSecrets( - _params: github.CodespacesListRepoSecretsParams + params: github.CodespacesListRepoSecretsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/secrets') + .get(`/repos/${params.owner}/${params.repo}/codespaces/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -45197,10 +60790,13 @@ If the repository is private, OAuth app tokens and personal access tokens (class inputSchema: github.CodespacesGetRepoPublicKeyParamsSchema }) async codespacesGetRepoPublicKey( - _params: github.CodespacesGetRepoPublicKeyParams + params: github.CodespacesGetRepoPublicKeyParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/secrets/public-key') + .get( + `/repos/${params.owner}/${params.repo}/codespaces/secrets/public-key`, + {} + ) .json() } @@ -45217,10 +60813,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodespacesGetRepoSecretParamsSchema }) async codespacesGetRepoSecret( - _params: github.CodespacesGetRepoSecretParams + params: github.CodespacesGetRepoSecretParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/codespaces/secrets/{secret_name}') + .get( + `/repos/${params.owner}/${params.repo}/codespaces/secrets/${params.secret_name}`, + {} + ) .json() } @@ -45242,9 +60841,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.CodespacesCreateOrUpdateRepoSecretParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/codespaces/secrets/{secret_name}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/codespaces/secrets/${params.secret_name}`, + { + json: pick(params, 'encrypted_value', 'key_id') + } + ) .json() } @@ -45261,10 +60863,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.CodespacesDeleteRepoSecretParamsSchema }) async codespacesDeleteRepoSecret( - _params: github.CodespacesDeleteRepoSecretParams + params: github.CodespacesDeleteRepoSecretParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/codespaces/secrets/{secret_name}') + .delete( + `/repos/${params.owner}/${params.repo}/codespaces/secrets/${params.secret_name}`, + {} + ) .json() } @@ -45294,8 +60899,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:org\` and params: github.ReposListCollaboratorsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/collaborators', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/collaborators`, { + searchParams: sanitizeSearchParams( + pick(params, 'affiliation', 'permission', 'per_page', 'page') + ) }) .json() } @@ -45321,10 +60928,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:org\` and inputSchema: github.ReposCheckCollaboratorParamsSchema }) async reposCheckCollaborator( - _params: github.ReposCheckCollaboratorParams + params: github.ReposCheckCollaboratorParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/collaborators/{username}') + .get( + `/repos/${params.owner}/${params.repo}/collaborators/${params.username}`, + {} + ) .json() } @@ -45380,9 +60990,12 @@ You are limited to sending 50 invitations to a repository per 24 hour period. No params: github.ReposAddCollaboratorParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/collaborators/{username}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/collaborators/${params.username}`, + { + json: pick(params, 'permission') + } + ) .json() } @@ -45437,10 +61050,13 @@ For more information on fork permissions, see "[About permissions and visibility inputSchema: github.ReposRemoveCollaboratorParamsSchema }) async reposRemoveCollaborator( - _params: github.ReposRemoveCollaboratorParams + params: github.ReposRemoveCollaboratorParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/collaborators/{username}') + .delete( + `/repos/${params.owner}/${params.repo}/collaborators/${params.username}`, + {} + ) .json() } @@ -45465,10 +61081,13 @@ collaborator, see the \`role_name\` attribute, which will provide the full role inputSchema: github.ReposGetCollaboratorPermissionLevelParamsSchema }) async reposGetCollaboratorPermissionLevel( - _params: github.ReposGetCollaboratorPermissionLevelParams + params: github.ReposGetCollaboratorPermissionLevelParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/collaborators/{username}/permission') + .get( + `/repos/${params.owner}/${params.repo}/collaborators/${params.username}/permission`, + {} + ) .json() } @@ -45495,10 +61114,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposListCommitCommentsForRepoParamsSchema }) async reposListCommitCommentsForRepo( - _params: github.ReposListCommitCommentsForRepoParams + params: github.ReposListCommitCommentsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/comments') + .get(`/repos/${params.owner}/${params.repo}/comments`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -45525,10 +61146,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposGetCommitCommentParamsSchema }) async reposGetCommitComment( - _params: github.ReposGetCommitCommentParams + params: github.ReposGetCommitCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/comments/{comment_id}') + .get( + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}`, + {} + ) .json() } @@ -45541,10 +61165,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposDeleteCommitCommentParamsSchema }) async reposDeleteCommitComment( - _params: github.ReposDeleteCommitCommentParams + params: github.ReposDeleteCommitCommentParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/comments/{comment_id}') + .delete( + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}`, + {} + ) .json() } @@ -45574,9 +61201,12 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposUpdateCommitCommentParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/comments/{comment_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}`, + { + json: pick(params, 'body') + } + ) .json() } @@ -45592,9 +61222,14 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsListForCommitCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/comments/{comment_id}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -45610,9 +61245,12 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsCreateForCommitCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/comments/{comment_id}/reactions', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -45631,11 +61269,12 @@ Delete a reaction to a [commit comment](https://docs.github.com/rest/commits/com inputSchema: github.ReactionsDeleteForCommitCommentParamsSchema }) async reactionsDeleteForCommitComment( - _params: github.ReactionsDeleteForCommitCommentParams + params: github.ReactionsDeleteForCommitCommentParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}' + `/repos/${params.owner}/${params.repo}/comments/${params.comment_id}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -45708,8 +61347,20 @@ These are the possible values for \`reason\` in the \`verification\` object: params: github.ReposListCommitsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/commits`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'sha', + 'path', + 'author', + 'committer', + 'since', + 'until', + 'per_page', + 'page' + ) + ) }) .json() } @@ -45727,10 +61378,13 @@ Returns all branches where the given commit SHA is the HEAD, or latest commit fo inputSchema: github.ReposListBranchesForHeadCommitParamsSchema }) async reposListBranchesForHeadCommit( - _params: github.ReposListBranchesForHeadCommitParams + params: github.ReposListBranchesForHeadCommitParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.commit_sha}/branches-where-head`, + {} + ) .json() } @@ -45757,10 +61411,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposListCommentsForCommitParamsSchema }) async reposListCommentsForCommit( - _params: github.ReposListCommentsForCommitParams + params: github.ReposListCommentsForCommitParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{commit_sha}/comments') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.commit_sha}/comments`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -45794,9 +61453,12 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposCreateCommitCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/commits/{commit_sha}/comments', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/commits/${params.commit_sha}/comments`, + { + json: pick(params, 'body', 'path', 'position', 'line') + } + ) .json() } @@ -45813,10 +61475,15 @@ To list the open or merged pull requests associated with a branch, you can set t inputSchema: github.ReposListPullRequestsAssociatedWithCommitParamsSchema }) async reposListPullRequestsAssociatedWithCommit( - _params: github.ReposListPullRequestsAssociatedWithCommitParams + params: github.ReposListPullRequestsAssociatedWithCommitParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{commit_sha}/pulls') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.commit_sha}/pulls`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -45907,10 +61574,15 @@ These are the possible values for \`reason\` in the \`verification\` object: inputSchema: github.ReposGetCommitParamsSchema }) async reposGetCommit( - _params: github.ReposGetCommitParams + params: github.ReposGetCommitParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{ref}') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.ref}`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } + ) .json() } @@ -45940,9 +61612,22 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ChecksListForRefParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{ref}/check-runs', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.ref}/check-runs`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'check_name', + 'status', + 'filter', + 'per_page', + 'page', + 'app_id' + ) + ) + } + ) .json() } @@ -45968,9 +61653,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ChecksListSuitesForRefParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{ref}/check-suites', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.ref}/check-suites`, + { + searchParams: sanitizeSearchParams( + pick(params, 'app_id', 'check_name', 'per_page', 'page') + ) + } + ) .json() } @@ -45997,10 +61687,15 @@ Additionally, a combined \`state\` is returned. The \`state\` is one of: inputSchema: github.ReposGetCombinedStatusForRefParamsSchema }) async reposGetCombinedStatusForRef( - _params: github.ReposGetCombinedStatusForRefParams + params: github.ReposGetCombinedStatusForRefParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{ref}/status') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.ref}/status`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -46017,10 +61712,15 @@ This resource is also available via a legacy route: \`GET /repos/:owner/:repo/st inputSchema: github.ReposListCommitStatusesForRefParamsSchema }) async reposListCommitStatusesForRef( - _params: github.ReposListCommitStatusesForRefParams + params: github.ReposListCommitStatusesForRefParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/commits/{ref}/statuses') + .get( + `/repos/${params.owner}/${params.repo}/commits/${params.ref}/statuses`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -46053,10 +61753,10 @@ the recommended community health files are present. For more information, see inputSchema: github.ReposGetCommunityProfileMetricsParamsSchema }) async reposGetCommunityProfileMetrics( - _params: github.ReposGetCommunityProfileMetricsParams + params: github.ReposGetCommunityProfileMetricsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/community/profile') + .get(`/repos/${params.owner}/${params.repo}/community/profile`, {}) .json() } @@ -46173,7 +61873,10 @@ These are the possible values for \`reason\` in the \`verification\` object: ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/compare/${params.basehead}` + `/repos/${params.owner}/${params.repo}/compare/${params.basehead}`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } ) .json() } @@ -46341,8 +62044,10 @@ GitHub identifies contributors by author email address. This endpoint groups con params: github.ReposListContributorsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/contributors', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/contributors`, { + searchParams: sanitizeSearchParams( + pick(params, 'anon', 'per_page', 'page') + ) }) .json() } @@ -46359,8 +62064,27 @@ GitHub identifies contributors by author email address. This endpoint groups con params: github.DependabotListAlertsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependabot/alerts', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/dependabot/alerts`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'severity', + 'ecosystem', + 'package', + 'manifest', + 'epss_percentage', + 'scope', + 'sort', + 'direction', + 'page', + 'per_page', + 'before', + 'after', + 'first', + 'last' + ) + ) }) .json() } @@ -46374,10 +62098,13 @@ GitHub identifies contributors by author email address. This endpoint groups con inputSchema: github.DependabotGetAlertParamsSchema }) async dependabotGetAlert( - _params: github.DependabotGetAlertParams + params: github.DependabotGetAlertParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependabot/alerts/{alert_number}') + .get( + `/repos/${params.owner}/${params.repo}/dependabot/alerts/${params.alert_number}`, + {} + ) .json() } @@ -46397,9 +62124,12 @@ OAuth app tokens and personal access tokens (classic) need the \`security_events params: github.DependabotUpdateAlertParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/dependabot/alerts/{alert_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/dependabot/alerts/${params.alert_number}`, + { + json: pick(params, 'state', 'dismissed_reason', 'dismissed_comment') + } + ) .json() } @@ -46418,10 +62148,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.DependabotListRepoSecretsParamsSchema }) async dependabotListRepoSecrets( - _params: github.DependabotListRepoSecretsParams + params: github.DependabotListRepoSecretsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependabot/secrets') + .get(`/repos/${params.owner}/${params.repo}/dependabot/secrets`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -46442,10 +62174,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.DependabotGetRepoPublicKeyParamsSchema }) async dependabotGetRepoPublicKey( - _params: github.DependabotGetRepoPublicKeyParams + params: github.DependabotGetRepoPublicKeyParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependabot/secrets/public-key') + .get( + `/repos/${params.owner}/${params.repo}/dependabot/secrets/public-key`, + {} + ) .json() } @@ -46462,10 +62197,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.DependabotGetRepoSecretParamsSchema }) async dependabotGetRepoSecret( - _params: github.DependabotGetRepoSecretParams + params: github.DependabotGetRepoSecretParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependabot/secrets/{secret_name}') + .get( + `/repos/${params.owner}/${params.repo}/dependabot/secrets/${params.secret_name}`, + {} + ) .json() } @@ -46487,9 +62225,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.DependabotCreateOrUpdateRepoSecretParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/dependabot/secrets/{secret_name}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/dependabot/secrets/${params.secret_name}`, + { + json: pick(params, 'encrypted_value', 'key_id') + } + ) .json() } @@ -46506,10 +62247,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.DependabotDeleteRepoSecretParamsSchema }) async dependabotDeleteRepoSecret( - _params: github.DependabotDeleteRepoSecretParams + params: github.DependabotDeleteRepoSecretParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/dependabot/secrets/{secret_name}') + .delete( + `/repos/${params.owner}/${params.repo}/dependabot/secrets/${params.secret_name}`, + {} + ) .json() } @@ -46526,7 +62270,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/dependency-graph/compare/${params.basehead}` + `/repos/${params.owner}/${params.repo}/dependency-graph/compare/${params.basehead}`, + { + searchParams: sanitizeSearchParams(pick(params, 'name')) + } ) .json() } @@ -46540,10 +62287,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.DependencyGraphExportSbomParamsSchema }) async dependencyGraphExportSbom( - _params: github.DependencyGraphExportSbomParams + params: github.DependencyGraphExportSbomParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/dependency-graph/sbom') + .get( + `/repos/${params.owner}/${params.repo}/dependency-graph/sbom`, + {} + ) .json() } @@ -46567,9 +62317,22 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.DependencyGraphCreateRepositorySnapshotParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/dependency-graph/snapshots', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/dependency-graph/snapshots`, + { + json: pick( + params, + 'version', + 'job', + 'sha', + 'ref', + 'detector', + 'metadata', + 'manifests', + 'scanned' + ) + } + ) .json() } @@ -46585,8 +62348,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposListDeploymentsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/deployments', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/deployments`, { + searchParams: sanitizeSearchParams( + pick(params, 'sha', 'ref', 'task', 'environment', 'per_page', 'page') + ) }) .json() } @@ -46697,8 +62462,19 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep params: github.ReposCreateDeploymentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/deployments', { - json: params + .post(`/repos/${params.owner}/${params.repo}/deployments`, { + json: pick( + params, + 'ref', + 'task', + 'auto_merge', + 'required_contexts', + 'payload', + 'environment', + 'description', + 'transient_environment', + 'production_environment' + ) }) .json() } @@ -46712,10 +62488,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.ReposGetDeploymentParamsSchema }) async reposGetDeployment( - _params: github.ReposGetDeploymentParams + params: github.ReposGetDeploymentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/deployments/{deployment_id}') + .get( + `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}`, + {} + ) .json() } @@ -46746,10 +62525,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.ReposDeleteDeploymentParamsSchema }) async reposDeleteDeployment( - _params: github.ReposDeleteDeploymentParams + params: github.ReposDeleteDeploymentParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/deployments/{deployment_id}') + .delete( + `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}`, + {} + ) .json() } @@ -46762,10 +62544,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.ReposListDeploymentStatusesParamsSchema }) async reposListDeploymentStatuses( - _params: github.ReposListDeploymentStatusesParams + params: github.ReposListDeploymentStatusesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/deployments/{deployment_id}/statuses') + .get( + `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}/statuses`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -46785,9 +62572,21 @@ OAuth app tokens and personal access tokens (classic) need the \`repo_deployment params: github.ReposCreateDeploymentStatusParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/deployments/{deployment_id}/statuses', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}/statuses`, + { + json: pick( + params, + 'state', + 'target_url', + 'log_url', + 'description', + 'environment', + 'environment_url', + 'auto_inactive' + ) + } + ) .json() } @@ -46804,7 +62603,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo_deployment ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}/statuses/${params.status_id}` + `/repos/${params.owner}/${params.repo}/deployments/${params.deployment_id}/statuses/${params.status_id}`, + {} ) .json() } @@ -46833,8 +62633,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposCreateDispatchEventParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/dispatches', { - json: params + .post(`/repos/${params.owner}/${params.repo}/dispatches`, { + json: pick(params, 'event_type', 'client_payload') }) .json() } @@ -46856,10 +62656,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetAllEnvironmentsParamsSchema }) async reposGetAllEnvironments( - _params: github.ReposGetAllEnvironmentsParams + params: github.ReposGetAllEnvironmentsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/environments') + .get(`/repos/${params.owner}/${params.repo}/environments`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -46882,10 +62684,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetEnvironmentParamsSchema }) async reposGetEnvironment( - _params: github.ReposGetEnvironmentParams + params: github.ReposGetEnvironmentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/environments/{environment_name}') + .get( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}`, + {} + ) .json() } @@ -46917,9 +62722,18 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposCreateOrUpdateEnvironmentParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/environments/{environment_name}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}`, + { + json: pick( + params, + 'wait_timer', + 'prevent_self_review', + 'reviewers', + 'deployment_branch_policy' + ) + } + ) .json() } @@ -46932,10 +62746,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposDeleteAnEnvironmentParamsSchema }) async reposDeleteAnEnvironment( - _params: github.ReposDeleteAnEnvironmentParams + params: github.ReposDeleteAnEnvironmentParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/environments/{environment_name}') + .delete( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}`, + {} + ) .json() } @@ -46956,11 +62773,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposListDeploymentBranchPoliciesParamsSchema }) async reposListDeploymentBranchPolicies( - _params: github.ReposListDeploymentBranchPoliciesParams + params: github.ReposListDeploymentBranchPoliciesParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment-branch-policies`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -46982,9 +62802,9 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies', + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment-branch-policies`, { - json: params + json: pick(params, 'name', 'type') } ) .json() @@ -47007,11 +62827,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetDeploymentBranchPolicyParamsSchema }) async reposGetDeploymentBranchPolicy( - _params: github.ReposGetDeploymentBranchPolicyParams + params: github.ReposGetDeploymentBranchPolicyParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment-branch-policies/${params.branch_policy_id}`, + {} ) .json() } @@ -47033,9 +62854,9 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}', + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment-branch-policies/${params.branch_policy_id}`, { - json: params + json: pick(params, 'name') } ) .json() @@ -47054,11 +62875,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposDeleteDeploymentBranchPolicyParamsSchema }) async reposDeleteDeploymentBranchPolicy( - _params: github.ReposDeleteDeploymentBranchPolicyParams + params: github.ReposDeleteDeploymentBranchPolicyParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment-branch-policies/${params.branch_policy_id}`, + {} ) .json() } @@ -47080,11 +62902,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetAllDeploymentProtectionRulesParamsSchema }) async reposGetAllDeploymentProtectionRules( - _params: github.ReposGetAllDeploymentProtectionRulesParams + params: github.ReposGetAllDeploymentProtectionRulesParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment_protection_rules`, + {} ) .json() } @@ -47114,9 +62937,9 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules', + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment_protection_rules`, { - json: params + json: pick(params, 'integration_id') } ) .json() @@ -47147,11 +62970,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposListCustomDeploymentRuleIntegrationsParamsSchema }) async reposListCustomDeploymentRuleIntegrations( - _params: github.ReposListCustomDeploymentRuleIntegrationsParams + params: github.ReposListCustomDeploymentRuleIntegrationsParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment_protection_rules/apps`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } ) .json() } @@ -47173,11 +62999,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetCustomDeploymentProtectionRuleParamsSchema }) async reposGetCustomDeploymentProtectionRule( - _params: github.ReposGetCustomDeploymentProtectionRuleParams + params: github.ReposGetCustomDeploymentProtectionRuleParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment_protection_rules/${params.protection_rule_id}`, + {} ) .json() } @@ -47199,11 +63026,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposDisableDeploymentProtectionRuleParamsSchema }) async reposDisableDeploymentProtectionRule( - _params: github.ReposDisableDeploymentProtectionRuleParams + params: github.ReposDisableDeploymentProtectionRuleParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/deployment_protection_rules/${params.protection_rule_id}`, + {} ) .json() } @@ -47227,10 +63055,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListEnvironmentSecretsParamsSchema }) async actionsListEnvironmentSecrets( - _params: github.ActionsListEnvironmentSecretsParams + params: github.ActionsListEnvironmentSecretsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/environments/{environment_name}/secrets') + .get( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/secrets`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -47253,11 +63086,12 @@ If the repository is private, OAuth tokens and personal access tokens (classic) inputSchema: github.ActionsGetEnvironmentPublicKeyParamsSchema }) async actionsGetEnvironmentPublicKey( - _params: github.ActionsGetEnvironmentPublicKeyParams + params: github.ActionsGetEnvironmentPublicKeyParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/secrets/public-key`, + {} ) .json() } @@ -47279,11 +63113,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetEnvironmentSecretParamsSchema }) async actionsGetEnvironmentSecret( - _params: github.ActionsGetEnvironmentSecretParams + params: github.ActionsGetEnvironmentSecretParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/secrets/${params.secret_name}`, + {} ) .json() } @@ -47311,9 +63146,9 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}', + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/secrets/${params.secret_name}`, { - json: params + json: pick(params, 'encrypted_value', 'key_id') } ) .json() @@ -47336,11 +63171,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteEnvironmentSecretParamsSchema }) async actionsDeleteEnvironmentSecret( - _params: github.ActionsDeleteEnvironmentSecretParams + params: github.ActionsDeleteEnvironmentSecretParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/secrets/${params.secret_name}`, + {} ) .json() } @@ -47362,10 +63198,15 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActionsListEnvironmentVariablesParamsSchema }) async actionsListEnvironmentVariables( - _params: github.ActionsListEnvironmentVariablesParams + params: github.ActionsListEnvironmentVariablesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/environments/{environment_name}/variables') + .get( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/variables`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -47389,9 +63230,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use params: github.ActionsCreateEnvironmentVariableParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/environments/{environment_name}/variables', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/variables`, + { + json: pick(params, 'name', 'value') + } + ) .json() } @@ -47412,11 +63256,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsGetEnvironmentVariableParamsSchema }) async actionsGetEnvironmentVariable( - _params: github.ActionsGetEnvironmentVariableParams + params: github.ActionsGetEnvironmentVariableParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/variables/${params.name}`, + {} ) .json() } @@ -47438,11 +63283,12 @@ OAuth tokens and personal access tokens (classic) need the \`repo\` scope to use inputSchema: github.ActionsDeleteEnvironmentVariableParamsSchema }) async actionsDeleteEnvironmentVariable( - _params: github.ActionsDeleteEnvironmentVariableParams + params: github.ActionsDeleteEnvironmentVariableParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}' + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/variables/${params.name}`, + {} ) .json() } @@ -47468,9 +63314,9 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .patch( - '/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}', + `/repos/${params.owner}/${params.repo}/environments/${params.environment_name}/variables/${params.name}`, { - json: params + json: pick(params, 'name', 'value') } ) .json() @@ -47487,10 +63333,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ActivityListRepoEventsParamsSchema }) async activityListRepoEvents( - _params: github.ActivityListRepoEventsParams + params: github.ActivityListRepoEventsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/events') + .get(`/repos/${params.owner}/${params.repo}/events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -47506,8 +63354,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposListForksParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/forks', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/forks`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'per_page', 'page') + ) }) .json() } @@ -47536,8 +63386,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposCreateForkParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/forks', { - json: params + .post(`/repos/${params.owner}/${params.repo}/forks`, { + json: pick(params, 'organization', 'name', 'default_branch_only') }) .json() } @@ -47554,8 +63404,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.GitCreateBlobParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/git/blobs', { - json: params + .post(`/repos/${params.owner}/${params.repo}/git/blobs`, { + json: pick(params, 'content', 'encoding') }) .json() } @@ -47587,7 +63437,8 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/git/blobs/${params.file_sha}` + `/repos/${params.owner}/${params.repo}/git/blobs/${params.file_sha}`, + {} ) .json() } @@ -47664,8 +63515,16 @@ These are the possible values for \`reason\` in the \`verification\` object: params: github.GitCreateCommitParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/git/commits', { - json: params + .post(`/repos/${params.owner}/${params.repo}/git/commits`, { + json: pick( + params, + 'message', + 'tree', + 'parents', + 'author', + 'committer', + 'signature' + ) }) .json() } @@ -47743,10 +63602,13 @@ These are the possible values for \`reason\` in the \`verification\` object: inputSchema: github.GitGetCommitParamsSchema }) async gitGetCommit( - _params: github.GitGetCommitParams + params: github.GitGetCommitParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/git/commits/{commit_sha}') + .get( + `/repos/${params.owner}/${params.repo}/git/commits/${params.commit_sha}`, + {} + ) .json() } @@ -47773,10 +63635,13 @@ If you request matching references for a branch named \`feature\` but the branch inputSchema: github.GitListMatchingRefsParamsSchema }) async gitListMatchingRefs( - _params: github.GitListMatchingRefsParams + params: github.GitListMatchingRefsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/git/matching-refs/{ref}') + .get( + `/repos/${params.owner}/${params.repo}/git/matching-refs/${params.ref}`, + {} + ) .json() } @@ -47795,10 +63660,13 @@ If you request matching references for a branch named \`feature\` but the branch inputSchema: github.GitGetRefParamsSchema }) async gitGetRef( - _params: github.GitGetRefParams + params: github.GitGetRefParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/git/ref/{ref}') + .get( + `/repos/${params.owner}/${params.repo}/git/ref/${params.ref}`, + {} + ) .json() } @@ -47814,8 +63682,8 @@ If you request matching references for a branch named \`feature\` but the branch params: github.GitCreateRefParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/git/refs', { - json: params + .post(`/repos/${params.owner}/${params.repo}/git/refs`, { + json: pick(params, 'ref', 'sha') }) .json() } @@ -47829,10 +63697,13 @@ If you request matching references for a branch named \`feature\` but the branch inputSchema: github.GitDeleteRefParamsSchema }) async gitDeleteRef( - _params: github.GitDeleteRefParams + params: github.GitDeleteRefParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/git/refs/{ref}') + .delete( + `/repos/${params.owner}/${params.repo}/git/refs/${params.ref}`, + {} + ) .json() } @@ -47848,9 +63719,12 @@ If you request matching references for a branch named \`feature\` but the branch params: github.GitUpdateRefParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/git/refs/{ref}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/git/refs/${params.ref}`, + { + json: pick(params, 'sha', 'force') + } + ) .json() } @@ -47926,8 +63800,8 @@ These are the possible values for \`reason\` in the \`verification\` object: params: github.GitCreateTagParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/git/tags', { - json: params + .post(`/repos/${params.owner}/${params.repo}/git/tags`, { + json: pick(params, 'tag', 'message', 'object', 'type', 'tagger') }) .json() } @@ -48001,7 +63875,8 @@ These are the possible values for \`reason\` in the \`verification\` object: ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/git/tags/${params.tag_sha}` + `/repos/${params.owner}/${params.repo}/git/tags/${params.tag_sha}`, + {} ) .json() } @@ -48026,8 +63901,8 @@ Returns an error if you try to delete a file that does not exist.`, params: github.GitCreateTreeParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/git/trees', { - json: params + .post(`/repos/${params.owner}/${params.repo}/git/trees`, { + json: pick(params, 'tree', 'base_tree') }) .json() } @@ -48072,10 +63947,12 @@ If \`truncated\` is \`true\` in the response then the number of items in the \`t inputSchema: github.ReposListWebhooksParamsSchema }) async reposListWebhooks( - _params: github.ReposListWebhooksParams + params: github.ReposListWebhooksParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/hooks') + .get(`/repos/${params.owner}/${params.repo}/hooks`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -48093,8 +63970,8 @@ share the same \`config\` as long as those webhooks do not have any \`events\` t params: github.ReposCreateWebhookParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/hooks', { - json: params + .post(`/repos/${params.owner}/${params.repo}/hooks`, { + json: pick(params, 'name', 'config', 'events', 'active') }) .json() } @@ -48108,10 +63985,13 @@ share the same \`config\` as long as those webhooks do not have any \`events\` t inputSchema: github.ReposGetWebhookParamsSchema }) async reposGetWebhook( - _params: github.ReposGetWebhookParams + params: github.ReposGetWebhookParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/hooks/{hook_id}') + .get( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}`, + {} + ) .json() } @@ -48128,10 +64008,13 @@ The authenticated user must be a repository owner, or have admin access in the r inputSchema: github.ReposDeleteWebhookParamsSchema }) async reposDeleteWebhook( - _params: github.ReposDeleteWebhookParams + params: github.ReposDeleteWebhookParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/hooks/{hook_id}') + .delete( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}`, + {} + ) .json() } @@ -48147,9 +64030,19 @@ The authenticated user must be a repository owner, or have admin access in the r params: github.ReposUpdateWebhookParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/hooks/{hook_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}`, + { + json: pick( + params, + 'config', + 'events', + 'add_events', + 'remove_events', + 'active' + ) + } + ) .json() } @@ -48166,10 +64059,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:repo_hook\ inputSchema: github.ReposGetWebhookConfigForRepoParamsSchema }) async reposGetWebhookConfigForRepo( - _params: github.ReposGetWebhookConfigForRepoParams + params: github.ReposGetWebhookConfigForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/hooks/{hook_id}/config') + .get( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/config`, + {} + ) .json() } @@ -48189,9 +64085,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook params: github.ReposUpdateWebhookConfigForRepoParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/hooks/{hook_id}/config', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/config`, + { + json: pick(params, 'url', 'content_type', 'secret', 'insecure_ssl') + } + ) .json() } @@ -48204,10 +64103,15 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook inputSchema: github.ReposListWebhookDeliveriesParamsSchema }) async reposListWebhookDeliveries( - _params: github.ReposListWebhookDeliveriesParams + params: github.ReposListWebhookDeliveriesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/hooks/{hook_id}/deliveries') + .get( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/deliveries`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'cursor')) + } + ) .json() } @@ -48220,10 +64124,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook inputSchema: github.ReposGetWebhookDeliveryParamsSchema }) async reposGetWebhookDelivery( - _params: github.ReposGetWebhookDeliveryParams + params: github.ReposGetWebhookDeliveryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}') + .get( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/deliveries/${params.delivery_id}`, + {} + ) .json() } @@ -48236,11 +64143,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook inputSchema: github.ReposRedeliverWebhookDeliveryParamsSchema }) async reposRedeliverWebhookDelivery( - _params: github.ReposRedeliverWebhookDeliveryParams + params: github.ReposRedeliverWebhookDeliveryParams ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts' + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/deliveries/${params.delivery_id}/attempts`, + {} ) .json() } @@ -48254,10 +64162,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook inputSchema: github.ReposPingWebhookParamsSchema }) async reposPingWebhook( - _params: github.ReposPingWebhookParams + params: github.ReposPingWebhookParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/hooks/{hook_id}/pings') + .post( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/pings`, + {} + ) .json() } @@ -48276,10 +64187,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:repo_hook inputSchema: github.ReposTestPushWebhookParamsSchema }) async reposTestPushWebhook( - _params: github.ReposTestPushWebhookParams + params: github.ReposTestPushWebhookParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/hooks/{hook_id}/tests') + .post( + `/repos/${params.owner}/${params.repo}/hooks/${params.hook_id}/tests`, + {} + ) .json() } @@ -48364,10 +64278,10 @@ This section includes details about Git LFS related fields that may be present i inputSchema: github.MigrationsGetImportStatusParamsSchema }) async migrationsGetImportStatus( - _params: github.MigrationsGetImportStatusParams + params: github.MigrationsGetImportStatusParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/import') + .get(`/repos/${params.owner}/${params.repo}/import`, {}) .json() } @@ -48393,8 +64307,15 @@ return a status \`422 Unprocessable Entity\` response. params: github.MigrationsStartImportParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/import', { - json: params + .put(`/repos/${params.owner}/${params.repo}/import`, { + json: pick( + params, + 'vcs_url', + 'vcs', + 'vcs_username', + 'vcs_password', + 'tfvc_project' + ) }) .json() } @@ -48414,10 +64335,10 @@ return a status \`422 Unprocessable Entity\` response. inputSchema: github.MigrationsCancelImportParamsSchema }) async migrationsCancelImport( - _params: github.MigrationsCancelImportParams + params: github.MigrationsCancelImportParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/import') + .delete(`/repos/${params.owner}/${params.repo}/import`, {}) .json() } @@ -48449,8 +64370,14 @@ You can select the project to import by providing one of the objects in the \`pr params: github.MigrationsUpdateImportParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/import', { - json: params + .patch(`/repos/${params.owner}/${params.repo}/import`, { + json: pick( + params, + 'vcs_username', + 'vcs_password', + 'vcs', + 'tfvc_project' + ) }) .json() } @@ -48474,10 +64401,12 @@ This endpoint and the [Map a commit author](https://docs.github.com/rest/migrati inputSchema: github.MigrationsGetCommitAuthorsParamsSchema }) async migrationsGetCommitAuthors( - _params: github.MigrationsGetCommitAuthorsParams + params: github.MigrationsGetCommitAuthorsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/import/authors') + .get(`/repos/${params.owner}/${params.repo}/import/authors`, { + searchParams: sanitizeSearchParams(pick(params, 'since')) + }) .json() } @@ -48525,10 +64454,10 @@ new commits to the repository. inputSchema: github.MigrationsGetLargeFilesParamsSchema }) async migrationsGetLargeFiles( - _params: github.MigrationsGetLargeFilesParams + params: github.MigrationsGetLargeFilesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/import/large_files') + .get(`/repos/${params.owner}/${params.repo}/import/large_files`, {}) .json() } @@ -48558,8 +64487,8 @@ site](https://docs.github.com/repositories/working-with-files/managing-large-fil params: github.MigrationsSetLfsPreferenceParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/import/lfs', { - json: params + .patch(`/repos/${params.owner}/${params.repo}/import/lfs`, { + json: pick(params, 'use_lfs') }) .json() } @@ -48577,10 +64506,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsGetRepoInstallationParamsSchema }) async appsGetRepoInstallation( - _params: github.AppsGetRepoInstallationParams + params: github.AppsGetRepoInstallationParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/installation') + .get(`/repos/${params.owner}/${params.repo}/installation`, {}) .json() } @@ -48593,10 +64522,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.InteractionsGetRestrictionsForRepoParamsSchema }) async interactionsGetRestrictionsForRepo( - _params: github.InteractionsGetRestrictionsForRepoParams + params: github.InteractionsGetRestrictionsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/interaction-limits') + .get(`/repos/${params.owner}/${params.repo}/interaction-limits`, {}) .json() } @@ -48612,8 +64541,8 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic params: github.InteractionsSetRestrictionsForRepoParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/interaction-limits', { - json: params + .put(`/repos/${params.owner}/${params.repo}/interaction-limits`, { + json: pick(params, 'limit', 'expiry') }) .json() } @@ -48627,10 +64556,13 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.InteractionsRemoveRestrictionsForRepoParamsSchema }) async interactionsRemoveRestrictionsForRepo( - _params: github.InteractionsRemoveRestrictionsForRepoParams + params: github.InteractionsRemoveRestrictionsForRepoParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/interaction-limits') + .delete( + `/repos/${params.owner}/${params.repo}/interaction-limits`, + {} + ) .json() } @@ -48643,10 +64575,12 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.ReposListInvitationsParamsSchema }) async reposListInvitations( - _params: github.ReposListInvitationsParams + params: github.ReposListInvitationsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/invitations') + .get(`/repos/${params.owner}/${params.repo}/invitations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -48659,10 +64593,13 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.ReposDeleteInvitationParamsSchema }) async reposDeleteInvitation( - _params: github.ReposDeleteInvitationParams + params: github.ReposDeleteInvitationParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/invitations/{invitation_id}') + .delete( + `/repos/${params.owner}/${params.repo}/invitations/${params.invitation_id}`, + {} + ) .json() } @@ -48678,9 +64615,12 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic params: github.ReposUpdateInvitationParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/invitations/{invitation_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/invitations/${params.invitation_id}`, + { + json: pick(params, 'permissions') + } + ) .json() } @@ -48716,8 +64656,24 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesListForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/issues`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'milestone', + 'state', + 'assignee', + 'type', + 'creator', + 'mentioned', + 'labels', + 'sort', + 'direction', + 'since', + 'per_page', + 'page' + ) + ) }) .json() } @@ -48754,8 +64710,17 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesCreateParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues', { - json: params + .post(`/repos/${params.owner}/${params.repo}/issues`, { + json: pick( + params, + 'title', + 'body', + 'assignee', + 'milestone', + 'labels', + 'assignees', + 'type' + ) }) .json() } @@ -48790,8 +64755,10 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesListCommentsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/comments', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/issues/comments`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'since', 'per_page', 'page') + ) }) .json() } @@ -48819,10 +64786,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesGetCommentParamsSchema }) async issuesGetComment( - _params: github.IssuesGetCommentParams + params: github.IssuesGetCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/comments/{comment_id}') + .get( + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}`, + {} + ) .json() } @@ -48835,10 +64805,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesDeleteCommentParamsSchema }) async issuesDeleteComment( - _params: github.IssuesDeleteCommentParams + params: github.IssuesDeleteCommentParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/issues/comments/{comment_id}') + .delete( + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}`, + {} + ) .json() } @@ -48868,9 +64841,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesUpdateCommentParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/issues/comments/{comment_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}`, + { + json: pick(params, 'body') + } + ) .json() } @@ -48886,9 +64862,14 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsListForIssueCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -48904,9 +64885,12 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsCreateForIssueCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -48925,11 +64909,12 @@ Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comm inputSchema: github.ReactionsDeleteForIssueCommentParamsSchema }) async reactionsDeleteForIssueComment( - _params: github.ReactionsDeleteForIssueCommentParams + params: github.ReactionsDeleteForIssueCommentParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}' + `/repos/${params.owner}/${params.repo}/issues/comments/${params.comment_id}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -48943,10 +64928,12 @@ Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comm inputSchema: github.IssuesListEventsForRepoParamsSchema }) async issuesListEventsForRepo( - _params: github.IssuesListEventsForRepoParams + params: github.IssuesListEventsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/events') + .get(`/repos/${params.owner}/${params.repo}/issues/events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -48963,7 +64950,8 @@ Delete a reaction to an [issue comment](https://docs.github.com/rest/issues/comm ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/issues/events/${params.event_id}` + `/repos/${params.owner}/${params.repo}/issues/events/${params.event_id}`, + {} ) .json() } @@ -49007,10 +64995,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesGetParamsSchema }) async issuesGet( - _params: github.IssuesGetParams + params: github.IssuesGetParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}`, + {} + ) .json() } @@ -49040,9 +65031,23 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesUpdateParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/issues/{issue_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}`, + { + json: pick( + params, + 'title', + 'body', + 'assignee', + 'state', + 'state_reason', + 'milestone', + 'labels', + 'assignees', + 'type' + ) + } + ) .json() } @@ -49058,9 +65063,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesAddAssigneesParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/{issue_number}/assignees', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/assignees`, + { + json: pick(params, 'assignees') + } + ) .json() } @@ -49076,9 +65084,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesRemoveAssigneesParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/issues/{issue_number}/assignees', { - json: params - }) + .delete( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/assignees`, + { + json: pick(params, 'assignees') + } + ) .json() } @@ -49103,7 +65114,8 @@ Otherwise a \`404\` status code is returned.`, ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/assignees/${params.assignee}` + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/assignees/${params.assignee}`, + {} ) .json() } @@ -49135,10 +65147,17 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListCommentsParamsSchema }) async issuesListComments( - _params: github.IssuesListCommentsParams + params: github.IssuesListCommentsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/comments') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/comments`, + { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'per_page', 'page') + ) + } + ) .json() } @@ -49178,9 +65197,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesCreateCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/{issue_number}/comments', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/comments`, + { + json: pick(params, 'body') + } + ) .json() } @@ -49193,10 +65215,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListEventsParamsSchema }) async issuesListEvents( - _params: github.IssuesListEventsParams + params: github.IssuesListEventsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/events') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/events`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -49209,10 +65236,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListLabelsOnIssueParamsSchema }) async issuesListLabelsOnIssue( - _params: github.IssuesListLabelsOnIssueParams + params: github.IssuesListLabelsOnIssueParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/labels') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -49229,9 +65261,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesAddLabelsParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/{issue_number}/labels', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels`, + { + json: params + } + ) .json() } @@ -49248,9 +65283,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesSetLabelsParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/issues/{issue_number}/labels', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels`, + { + json: params + } + ) .json() } @@ -49263,10 +65301,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesRemoveAllLabelsParamsSchema }) async issuesRemoveAllLabels( - _params: github.IssuesRemoveAllLabelsParams + params: github.IssuesRemoveAllLabelsParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/issues/{issue_number}/labels') + .delete( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels`, + {} + ) .json() } @@ -49283,7 +65324,8 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .delete( - `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels/${params.name}` + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/labels/${params.name}`, + {} ) .json() } @@ -49304,9 +65346,12 @@ Note that, if you choose not to pass any parameters, you'll need to set \`Conten params: github.IssuesLockParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/issues/{issue_number}/lock', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/lock`, + { + json: pick(params, 'lock_reason') + } + ) .json() } @@ -49319,10 +65364,13 @@ Note that, if you choose not to pass any parameters, you'll need to set \`Conten inputSchema: github.IssuesUnlockParamsSchema }) async issuesUnlock( - _params: github.IssuesUnlockParams + params: github.IssuesUnlockParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/issues/{issue_number}/lock') + .delete( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/lock`, + {} + ) .json() } @@ -49338,9 +65386,14 @@ Note that, if you choose not to pass any parameters, you'll need to set \`Conten params: github.ReactionsListForIssueParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -49356,9 +65409,12 @@ Note that, if you choose not to pass any parameters, you'll need to set \`Conten params: github.ReactionsCreateForIssueParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/{issue_number}/reactions', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -49377,11 +65433,12 @@ Delete a reaction to an [issue](https://docs.github.com/rest/issues/issues#get-a inputSchema: github.ReactionsDeleteForIssueParamsSchema }) async reactionsDeleteForIssue( - _params: github.ReactionsDeleteForIssueParams + params: github.ReactionsDeleteForIssueParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}' + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -49414,9 +65471,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesRemoveSubIssueParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/issues/{issue_number}/sub_issue', { - json: params - }) + .delete( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/sub_issue`, + { + json: pick(params, 'sub_issue_id') + } + ) .json() } @@ -49443,10 +65503,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListSubIssuesParamsSchema }) async issuesListSubIssues( - _params: github.IssuesListSubIssuesParams + params: github.IssuesListSubIssuesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/sub_issues') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/sub_issues`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -49484,9 +65549,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesAddSubIssueParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/issues/{issue_number}/sub_issues', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/sub_issues`, + { + json: pick(params, 'sub_issue_id', 'replace_parent') + } + ) .json() } @@ -49503,9 +65571,9 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .patch( - '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority', + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/sub_issues/priority`, { - json: params + json: pick(params, 'sub_issue_id', 'after_id', 'before_id') } ) .json() @@ -49520,10 +65588,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListEventsForTimelineParamsSchema }) async issuesListEventsForTimeline( - _params: github.IssuesListEventsForTimelineParams + params: github.IssuesListEventsForTimelineParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/issues/{issue_number}/timeline') + .get( + `/repos/${params.owner}/${params.repo}/issues/${params.issue_number}/timeline`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -49536,10 +65609,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposListDeployKeysParamsSchema }) async reposListDeployKeys( - _params: github.ReposListDeployKeysParams + params: github.ReposListDeployKeysParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/keys') + .get(`/repos/${params.owner}/${params.repo}/keys`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -49555,8 +65630,8 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposCreateDeployKeyParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/keys', { - json: params + .post(`/repos/${params.owner}/${params.repo}/keys`, { + json: pick(params, 'title', 'key', 'read_only') }) .json() } @@ -49570,10 +65645,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposGetDeployKeyParamsSchema }) async reposGetDeployKey( - _params: github.ReposGetDeployKeyParams + params: github.ReposGetDeployKeyParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/keys/{key_id}') + .get( + `/repos/${params.owner}/${params.repo}/keys/${params.key_id}`, + {} + ) .json() } @@ -49586,10 +65664,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposDeleteDeployKeyParamsSchema }) async reposDeleteDeployKey( - _params: github.ReposDeleteDeployKeyParams + params: github.ReposDeleteDeployKeyParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/keys/{key_id}') + .delete( + `/repos/${params.owner}/${params.repo}/keys/${params.key_id}`, + {} + ) .json() } @@ -49602,10 +65683,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListLabelsForRepoParamsSchema }) async issuesListLabelsForRepo( - _params: github.IssuesListLabelsForRepoParams + params: github.IssuesListLabelsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/labels') + .get(`/repos/${params.owner}/${params.repo}/labels`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -49621,8 +65704,8 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesCreateLabelParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/labels', { - json: params + .post(`/repos/${params.owner}/${params.repo}/labels`, { + json: pick(params, 'name', 'color', 'description') }) .json() } @@ -49640,7 +65723,8 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/labels/${params.name}` + `/repos/${params.owner}/${params.repo}/labels/${params.name}`, + {} ) .json() } @@ -49658,7 +65742,8 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .delete( - `/repos/${params.owner}/${params.repo}/labels/${params.name}` + `/repos/${params.owner}/${params.repo}/labels/${params.name}`, + {} ) .json() } @@ -49693,10 +65778,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposListLanguagesParamsSchema }) async reposListLanguages( - _params: github.ReposListLanguagesParams + params: github.ReposListLanguagesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/languages') + .get(`/repos/${params.owner}/${params.repo}/languages`, {}) .json() } @@ -49719,10 +65804,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.LicensesGetForRepoParamsSchema }) async licensesGetForRepo( - _params: github.LicensesGetForRepoParams + params: github.LicensesGetForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/license') + .get(`/repos/${params.owner}/${params.repo}/license`, { + searchParams: sanitizeSearchParams(pick(params, 'ref')) + }) .json() } @@ -49738,8 +65825,8 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposMergeUpstreamParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/merge-upstream', { - json: params + .post(`/repos/${params.owner}/${params.repo}/merge-upstream`, { + json: pick(params, 'branch') }) .json() } @@ -49756,8 +65843,8 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposMergeParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/merges', { - json: params + .post(`/repos/${params.owner}/${params.repo}/merges`, { + json: pick(params, 'base', 'head', 'commit_message') }) .json() } @@ -49774,8 +65861,10 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesListMilestonesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/milestones', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/milestones`, { + searchParams: sanitizeSearchParams( + pick(params, 'state', 'sort', 'direction', 'per_page', 'page') + ) }) .json() } @@ -49792,8 +65881,8 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesCreateMilestoneParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/milestones', { - json: params + .post(`/repos/${params.owner}/${params.repo}/milestones`, { + json: pick(params, 'title', 'state', 'description', 'due_on') }) .json() } @@ -49807,10 +65896,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesGetMilestoneParamsSchema }) async issuesGetMilestone( - _params: github.IssuesGetMilestoneParams + params: github.IssuesGetMilestoneParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/milestones/{milestone_number}') + .get( + `/repos/${params.owner}/${params.repo}/milestones/${params.milestone_number}`, + {} + ) .json() } @@ -49823,10 +65915,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesDeleteMilestoneParamsSchema }) async issuesDeleteMilestone( - _params: github.IssuesDeleteMilestoneParams + params: github.IssuesDeleteMilestoneParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/milestones/{milestone_number}') + .delete( + `/repos/${params.owner}/${params.repo}/milestones/${params.milestone_number}`, + {} + ) .json() } @@ -49842,9 +65937,12 @@ This endpoint supports the following custom media types. For more information, s params: github.IssuesUpdateMilestoneParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/milestones/{milestone_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/milestones/${params.milestone_number}`, + { + json: pick(params, 'title', 'state', 'description', 'due_on') + } + ) .json() } @@ -49857,10 +65955,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.IssuesListLabelsForMilestoneParamsSchema }) async issuesListLabelsForMilestone( - _params: github.IssuesListLabelsForMilestoneParams + params: github.IssuesListLabelsForMilestoneParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/milestones/{milestone_number}/labels') + .get( + `/repos/${params.owner}/${params.repo}/milestones/${params.milestone_number}/labels`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -49874,10 +65977,22 @@ This endpoint supports the following custom media types. For more information, s github.ActivityListRepoNotificationsForAuthenticatedUserParamsSchema }) async activityListRepoNotificationsForAuthenticatedUser( - _params: github.ActivityListRepoNotificationsForAuthenticatedUserParams + params: github.ActivityListRepoNotificationsForAuthenticatedUserParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/notifications') + .get(`/repos/${params.owner}/${params.repo}/notifications`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'all', + 'participating', + 'since', + 'before', + 'per_page', + 'page' + ) + ) + }) .json() } @@ -49893,8 +66008,8 @@ This endpoint supports the following custom media types. For more information, s params: github.ActivityMarkRepoNotificationsAsReadParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/notifications', { - json: params + .put(`/repos/${params.owner}/${params.repo}/notifications`, { + json: pick(params, 'last_read_at') }) .json() } @@ -49912,10 +66027,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetPagesParamsSchema }) async reposGetPages( - _params: github.ReposGetPagesParams + params: github.ReposGetPagesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pages') + .get(`/repos/${params.owner}/${params.repo}/pages`, {}) .json() } @@ -49940,7 +66055,7 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposCreatePagesSiteParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pages', { + .post(`/repos/${params.owner}/${params.repo}/pages`, { json: params }) .json() @@ -49967,7 +66082,7 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ReposUpdateInformationAboutPagesSiteParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/pages', { + .put(`/repos/${params.owner}/${params.repo}/pages`, { json: params }) .json() @@ -49990,10 +66105,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposDeletePagesSiteParamsSchema }) async reposDeletePagesSite( - _params: github.ReposDeletePagesSiteParams + params: github.ReposDeletePagesSiteParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/pages') + .delete(`/repos/${params.owner}/${params.repo}/pages`, {}) .json() } @@ -50010,10 +66125,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposListPagesBuildsParamsSchema }) async reposListPagesBuilds( - _params: github.ReposListPagesBuildsParams + params: github.ReposListPagesBuildsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pages/builds') + .get(`/repos/${params.owner}/${params.repo}/pages/builds`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -50030,10 +66147,10 @@ Build requests are limited to one concurrent build per repository and one concur inputSchema: github.ReposRequestPagesBuildParamsSchema }) async reposRequestPagesBuild( - _params: github.ReposRequestPagesBuildParams + params: github.ReposRequestPagesBuildParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pages/builds') + .post(`/repos/${params.owner}/${params.repo}/pages/builds`, {}) .json() } @@ -50050,10 +66167,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetLatestPagesBuildParamsSchema }) async reposGetLatestPagesBuild( - _params: github.ReposGetLatestPagesBuildParams + params: github.ReposGetLatestPagesBuildParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pages/builds/latest') + .get( + `/repos/${params.owner}/${params.repo}/pages/builds/latest`, + {} + ) .json() } @@ -50074,7 +66194,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/pages/builds/${params.build_id}` + `/repos/${params.owner}/${params.repo}/pages/builds/${params.build_id}`, + {} ) .json() } @@ -50095,8 +66216,15 @@ The authenticated user must have write permission to the repository.`, params: github.ReposCreatePagesDeploymentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pages/deployments', { - json: params + .post(`/repos/${params.owner}/${params.repo}/pages/deployments`, { + json: pick( + params, + 'artifact_id', + 'artifact_url', + 'environment', + 'pages_build_version', + 'oidc_token' + ) }) .json() } @@ -50114,10 +66242,13 @@ The authenticated user must have read permission for the GitHub Pages site.`, inputSchema: github.ReposGetPagesDeploymentParamsSchema }) async reposGetPagesDeployment( - _params: github.ReposGetPagesDeploymentParams + params: github.ReposGetPagesDeploymentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}') + .get( + `/repos/${params.owner}/${params.repo}/pages/deployments/${params.pages_deployment_id}`, + {} + ) .json() } @@ -50134,11 +66265,12 @@ The authenticated user must have write permissions for the GitHub Pages site.`, inputSchema: github.ReposCancelPagesDeploymentParamsSchema }) async reposCancelPagesDeployment( - _params: github.ReposCancelPagesDeploymentParams + params: github.ReposCancelPagesDeploymentParams ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel' + `/repos/${params.owner}/${params.repo}/pages/deployments/${params.pages_deployment_id}/cancel`, + {} ) .json() } @@ -50164,10 +66296,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposGetPagesHealthCheckParamsSchema }) async reposGetPagesHealthCheck( - _params: github.ReposGetPagesHealthCheckParams + params: github.ReposGetPagesHealthCheckParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pages/health') + .get(`/repos/${params.owner}/${params.repo}/pages/health`, {}) .json() } @@ -50180,10 +66312,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposCheckPrivateVulnerabilityReportingParamsSchema }) async reposCheckPrivateVulnerabilityReporting( - _params: github.ReposCheckPrivateVulnerabilityReportingParams + params: github.ReposCheckPrivateVulnerabilityReportingParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/private-vulnerability-reporting') + .get( + `/repos/${params.owner}/${params.repo}/private-vulnerability-reporting`, + {} + ) .json() } @@ -50196,10 +66331,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposEnablePrivateVulnerabilityReportingParamsSchema }) async reposEnablePrivateVulnerabilityReporting( - _params: github.ReposEnablePrivateVulnerabilityReportingParams + params: github.ReposEnablePrivateVulnerabilityReportingParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/private-vulnerability-reporting') + .put( + `/repos/${params.owner}/${params.repo}/private-vulnerability-reporting`, + {} + ) .json() } @@ -50212,10 +66350,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to inputSchema: github.ReposDisablePrivateVulnerabilityReportingParamsSchema }) async reposDisablePrivateVulnerabilityReporting( - _params: github.ReposDisablePrivateVulnerabilityReportingParams + params: github.ReposDisablePrivateVulnerabilityReportingParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/private-vulnerability-reporting') + .delete( + `/repos/${params.owner}/${params.repo}/private-vulnerability-reporting`, + {} + ) .json() } @@ -50235,8 +66376,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ProjectsListForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/projects', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/projects`, { + searchParams: sanitizeSearchParams( + pick(params, 'state', 'per_page', 'page') + ) }) .json() } @@ -50257,8 +66400,8 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.ProjectsCreateForRepoParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/projects', { - json: params + .post(`/repos/${params.owner}/${params.repo}/projects`, { + json: pick(params, 'name', 'body') }) .json() } @@ -50274,10 +66417,10 @@ Users with read access to the repository can use this endpoint.`, inputSchema: github.ReposGetCustomPropertiesValuesParamsSchema }) async reposGetCustomPropertiesValues( - _params: github.ReposGetCustomPropertiesValuesParams + params: github.ReposGetCustomPropertiesValuesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/properties/values') + .get(`/repos/${params.owner}/${params.repo}/properties/values`, {}) .json() } @@ -50299,8 +66442,8 @@ Repository admins and other users with the repository-level "edit custom propert params: github.ReposCreateOrUpdateCustomPropertiesValuesParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/properties/values', { - json: params + .patch(`/repos/${params.owner}/${params.repo}/properties/values`, { + json: pick(params, 'properties') }) .json() } @@ -50343,8 +66486,19 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsListParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/pulls`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'head', + 'base', + 'sort', + 'direction', + 'per_page', + 'page' + ) + ) }) .json() } @@ -50383,8 +66537,18 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsCreateParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls', { - json: params + .post(`/repos/${params.owner}/${params.repo}/pulls`, { + json: pick( + params, + 'title', + 'head', + 'head_repo', + 'base', + 'body', + 'maintainer_can_modify', + 'draft', + 'issue' + ) }) .json() } @@ -50417,8 +66581,10 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsListReviewCommentsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/comments', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/pulls/comments`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'since', 'per_page', 'page') + ) }) .json() } @@ -50446,10 +66612,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsGetReviewCommentParamsSchema }) async pullsGetReviewComment( - _params: github.PullsGetReviewCommentParams + params: github.PullsGetReviewCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/comments/{comment_id}') + .get( + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}`, + {} + ) .json() } @@ -50462,10 +66631,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsDeleteReviewCommentParamsSchema }) async pullsDeleteReviewComment( - _params: github.PullsDeleteReviewCommentParams + params: github.PullsDeleteReviewCommentParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/pulls/comments/{comment_id}') + .delete( + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}`, + {} + ) .json() } @@ -50495,9 +66667,12 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsUpdateReviewCommentParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/pulls/comments/{comment_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}`, + { + json: pick(params, 'body') + } + ) .json() } @@ -50513,9 +66688,14 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsListForPullRequestReviewCommentParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -50531,9 +66711,12 @@ This endpoint supports the following custom media types. For more information, s params: github.ReactionsCreateForPullRequestReviewCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -50552,11 +66735,12 @@ Delete a reaction to a [pull request review comment](https://docs.github.com/res inputSchema: github.ReactionsDeleteForPullRequestCommentParamsSchema }) async reactionsDeleteForPullRequestComment( - _params: github.ReactionsDeleteForPullRequestCommentParams + params: github.ReactionsDeleteForPullRequestCommentParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}' + `/repos/${params.owner}/${params.repo}/pulls/comments/${params.comment_id}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -50614,10 +66798,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsGetParamsSchema }) async pullsGet( - _params: github.PullsGetParams + params: github.PullsGetParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}`, + {} + ) .json() } @@ -50651,9 +66838,19 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsUpdateParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/pulls/{pull_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}`, + { + json: pick( + params, + 'title', + 'body', + 'state', + 'base', + 'maintainer_can_modify' + ) + } + ) .json() } @@ -50673,9 +66870,24 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesCreateWithPrForAuthenticatedUserParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls/{pull_number}/codespaces', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/codespaces`, + { + json: pick( + params, + 'location', + 'geo', + 'client_ip', + 'machine', + 'devcontainer_path', + 'multi_repo_permissions_opt_out', + 'working_directory', + 'idle_timeout_minutes', + 'display_name', + 'retention_period_minutes' + ) + } + ) .json() } @@ -50707,9 +66919,14 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsListReviewCommentsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/comments', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/comments`, + { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'since', 'per_page', 'page') + ) + } + ) .json() } @@ -50753,9 +66970,24 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsCreateReviewCommentParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls/{pull_number}/comments', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/comments`, + { + json: pick( + params, + 'body', + 'commit_id', + 'path', + 'position', + 'side', + 'line', + 'start_line', + 'start_side', + 'in_reply_to', + 'subject_type' + ) + } + ) .json() } @@ -50792,9 +67024,9 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies', + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/comments/${params.comment_id}/replies`, { - json: params + json: pick(params, 'body') } ) .json() @@ -50827,10 +67059,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsListCommitsParamsSchema }) async pullsListCommits( - _params: github.PullsListCommitsParams + params: github.PullsListCommitsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/commits') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/commits`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -50863,10 +67100,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsListFilesParamsSchema }) async pullsListFiles( - _params: github.PullsListFilesParams + params: github.PullsListFilesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/files') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/files`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -50879,10 +67121,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsCheckIfMergedParamsSchema }) async pullsCheckIfMerged( - _params: github.PullsCheckIfMergedParams + params: github.PullsCheckIfMergedParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/merge') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/merge`, + {} + ) .json() } @@ -50900,9 +67145,18 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.PullsMergeParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/pulls/{pull_number}/merge', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/merge`, + { + json: pick( + params, + 'commit_title', + 'commit_message', + 'sha', + 'merge_method' + ) + } + ) .json() } @@ -50915,10 +67169,13 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s inputSchema: github.PullsListRequestedReviewersParamsSchema }) async pullsListRequestedReviewers( - _params: github.PullsListRequestedReviewersParams + params: github.PullsListRequestedReviewersParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/requested_reviewers`, + {} + ) .json() } @@ -50937,9 +67194,12 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.PullsRequestReviewersParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/requested_reviewers`, + { + json: params + } + ) .json() } @@ -50955,9 +67215,12 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.PullsRemoveRequestedReviewersParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers', { - json: params - }) + .delete( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/requested_reviewers`, + { + json: pick(params, 'reviewers', 'team_reviewers') + } + ) .json() } @@ -50984,10 +67247,15 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsListReviewsParamsSchema }) async pullsListReviews( - _params: github.PullsListReviewsParams + params: github.PullsListReviewsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/reviews') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -51035,9 +67303,12 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsCreateReviewParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/pulls/{pull_number}/reviews', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews`, + { + json: pick(params, 'commit_id', 'body', 'event', 'comments') + } + ) .json() } @@ -51064,10 +67335,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsGetReviewParamsSchema }) async pullsGetReview( - _params: github.PullsGetReviewParams + params: github.PullsGetReviewParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}') + .get( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}`, + {} + ) .json() } @@ -51097,9 +67371,12 @@ This endpoint supports the following custom media types. For more information, s params: github.PullsUpdateReviewParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}`, + { + json: pick(params, 'body') + } + ) .json() } @@ -51126,10 +67403,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsDeletePendingReviewParamsSchema }) async pullsDeletePendingReview( - _params: github.PullsDeletePendingReviewParams + params: github.PullsDeletePendingReviewParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}') + .delete( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}`, + {} + ) .json() } @@ -51156,11 +67436,14 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.PullsListCommentsForReviewParamsSchema }) async pullsListCommentsForReview( - _params: github.PullsListCommentsForReviewParams + params: github.PullsListCommentsForReviewParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments' + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}/comments`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -51198,9 +67481,9 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .put( - '/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals', + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}/dismissals`, { - json: params + json: pick(params, 'message', 'event') } ) .json() @@ -51233,9 +67516,9 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .post( - '/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events', + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/reviews/${params.review_id}/events`, { - json: params + json: pick(params, 'body', 'event') } ) .json() @@ -51255,9 +67538,12 @@ Note: If making a request on behalf of a GitHub App you must also have permissio params: github.PullsUpdateBranchParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/pulls/{pull_number}/update-branch', { - json: params - }) + .put( + `/repos/${params.owner}/${params.repo}/pulls/${params.pull_number}/update-branch`, + { + json: pick(params, 'expected_head_sha') + } + ) .json() } @@ -51283,8 +67569,8 @@ This endpoint supports the following custom media types. For more information, s params: github.ReposGetReadmeParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/readme', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/readme`, { + searchParams: sanitizeSearchParams(pick(params, 'ref')) }) .json() } @@ -51333,10 +67619,12 @@ Information about published releases are available to everyone. Only users with inputSchema: github.ReposListReleasesParamsSchema }) async reposListReleases( - _params: github.ReposListReleasesParams + params: github.ReposListReleasesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases') + .get(`/repos/${params.owner}/${params.repo}/releases`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -51356,8 +67644,19 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.ReposCreateReleaseParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/releases', { - json: params + .post(`/repos/${params.owner}/${params.repo}/releases`, { + json: pick( + params, + 'tag_name', + 'target_commitish', + 'name', + 'body', + 'draft', + 'prerelease', + 'discussion_category_name', + 'generate_release_notes', + 'make_latest' + ) }) .json() } @@ -51366,8 +67665,8 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s * To download the asset's binary content: - If within a browser, fetch the location specified in the `browser_download_url` key provided in the response. -- Alternatively, set the `Accept` header of the request to - [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). +- Alternatively, set the `Accept` header of the request to + [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. */ @@ -51376,17 +67675,20 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s description: `To download the asset's binary content: - If within a browser, fetch the location specified in the \`browser_download_url\` key provided in the response. -- Alternatively, set the \`Accept\` header of the request to - [\`application/octet-stream\`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). +- Alternatively, set the \`Accept\` header of the request to + [\`application/octet-stream\`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a \`200\` or \`302\` response.`, inputSchema: github.ReposGetReleaseAssetParamsSchema }) async reposGetReleaseAsset( - _params: github.ReposGetReleaseAssetParams + params: github.ReposGetReleaseAssetParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases/assets/{asset_id}') + .get( + `/repos/${params.owner}/${params.repo}/releases/assets/${params.asset_id}`, + {} + ) .json() } @@ -51399,10 +67701,13 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s inputSchema: github.ReposDeleteReleaseAssetParamsSchema }) async reposDeleteReleaseAsset( - _params: github.ReposDeleteReleaseAssetParams + params: github.ReposDeleteReleaseAssetParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/releases/assets/{asset_id}') + .delete( + `/repos/${params.owner}/${params.repo}/releases/assets/${params.asset_id}`, + {} + ) .json() } @@ -51418,9 +67723,12 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.ReposUpdateReleaseAssetParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/releases/assets/{asset_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/releases/assets/${params.asset_id}`, + { + json: pick(params, 'name', 'label', 'state') + } + ) .json() } @@ -51436,9 +67744,18 @@ This endpoint triggers [notifications](https://docs.github.com/github/managing-s params: github.ReposGenerateReleaseNotesParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/releases/generate-notes', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/releases/generate-notes`, + { + json: pick( + params, + 'tag_name', + 'target_commitish', + 'previous_tag_name', + 'configuration_file_path' + ) + } + ) .json() } @@ -51455,10 +67772,10 @@ The latest release is the most recent non-prerelease, non-draft release, sorted inputSchema: github.ReposGetLatestReleaseParamsSchema }) async reposGetLatestRelease( - _params: github.ReposGetLatestReleaseParams + params: github.ReposGetLatestReleaseParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases/latest') + .get(`/repos/${params.owner}/${params.repo}/releases/latest`, {}) .json() } @@ -51475,7 +67792,8 @@ The latest release is the most recent non-prerelease, non-draft release, sorted ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/releases/tags/${params.tag}` + `/repos/${params.owner}/${params.repo}/releases/tags/${params.tag}`, + {} ) .json() } @@ -51495,10 +67813,13 @@ The latest release is the most recent non-prerelease, non-draft release, sorted inputSchema: github.ReposGetReleaseParamsSchema }) async reposGetRelease( - _params: github.ReposGetReleaseParams + params: github.ReposGetReleaseParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases/{release_id}') + .get( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}`, + {} + ) .json() } @@ -51511,10 +67832,13 @@ The latest release is the most recent non-prerelease, non-draft release, sorted inputSchema: github.ReposDeleteReleaseParamsSchema }) async reposDeleteRelease( - _params: github.ReposDeleteReleaseParams + params: github.ReposDeleteReleaseParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/releases/{release_id}') + .delete( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}`, + {} + ) .json() } @@ -51530,9 +67854,22 @@ The latest release is the most recent non-prerelease, non-draft release, sorted params: github.ReposUpdateReleaseParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/releases/{release_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}`, + { + json: pick( + params, + 'tag_name', + 'target_commitish', + 'name', + 'body', + 'draft', + 'prerelease', + 'make_latest', + 'discussion_category_name' + ) + } + ) .json() } @@ -51545,10 +67882,15 @@ The latest release is the most recent non-prerelease, non-draft release, sorted inputSchema: github.ReposListReleaseAssetsParamsSchema }) async reposListReleaseAssets( - _params: github.ReposListReleaseAssetsParams + params: github.ReposListReleaseAssetsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases/{release_id}/assets') + .get( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}/assets`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -51558,7 +67900,7 @@ the response of the [Create a release endpoint](https://docs.github.com/rest/rel You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. -Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: +Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip` @@ -51570,7 +67912,7 @@ When an upstream failure occurs, you will receive a `502 Bad Gateway` status. Th **Notes:** * GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)" endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api). -* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). +* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. */ @aiFunction({ @@ -51580,7 +67922,7 @@ the response of the [Create a release endpoint](https://docs.github.com/rest/rel You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. -Most libraries will set the required \`Content-Length\` header automatically. Use the required \`Content-Type\` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: +Most libraries will set the required \`Content-Length\` header automatically. Use the required \`Content-Type\` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: \`application/zip\` @@ -51592,7 +67934,7 @@ When an upstream failure occurs, you will receive a \`502 Bad Gateway\` status. **Notes:** * GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)" endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api). -* To find the \`release_id\` query the [\`GET /repos/{owner}/{repo}/releases/latest\` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). +* To find the \`release_id\` query the [\`GET /repos/{owner}/{repo}/releases/latest\` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.`, inputSchema: github.ReposUploadReleaseAssetParamsSchema }) @@ -51600,9 +67942,12 @@ endpoint lists the renamed filenames. For more information and help, contact [Gi params: github.ReposUploadReleaseAssetParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/releases/{release_id}/assets', { - searchParams: sanitizeSearchParams(params) - }) + .post( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}/assets`, + { + searchParams: sanitizeSearchParams(pick(params, 'name', 'label')) + } + ) .json() } @@ -51618,9 +67963,14 @@ endpoint lists the renamed filenames. For more information and help, contact [Gi params: github.ReactionsListForReleaseParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/releases/{release_id}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -51636,9 +67986,12 @@ endpoint lists the renamed filenames. For more information and help, contact [Gi params: github.ReactionsCreateForReleaseParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/releases/{release_id}/reactions', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -51657,11 +68010,12 @@ Delete a reaction to a [release](https://docs.github.com/rest/releases/releases# inputSchema: github.ReactionsDeleteForReleaseParamsSchema }) async reactionsDeleteForRelease( - _params: github.ReactionsDeleteForReleaseParams + params: github.ReactionsDeleteForReleaseParams ): Promise { return this.ky .delete( - '/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}' + `/repos/${params.owner}/${params.repo}/releases/${params.release_id}/reactions/${params.reaction_id}`, + {} ) .json() } @@ -51681,10 +68035,15 @@ enforcement statuses are not returned.`, inputSchema: github.ReposGetBranchRulesParamsSchema }) async reposGetBranchRules( - _params: github.ReposGetBranchRulesParams + params: github.ReposGetBranchRulesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/rules/branches/{branch}') + .get( + `/repos/${params.owner}/${params.repo}/rules/branches/${params.branch}`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } + ) .json() } @@ -51700,8 +68059,10 @@ enforcement statuses are not returned.`, params: github.ReposGetRepoRulesetsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/rulesets', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/rulesets`, { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'includes_parents', 'targets') + ) }) .json() } @@ -51718,8 +68079,16 @@ enforcement statuses are not returned.`, params: github.ReposCreateRepoRulesetParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/rulesets', { - json: params + .post(`/repos/${params.owner}/${params.repo}/rulesets`, { + json: pick( + params, + 'name', + 'target', + 'enforcement', + 'bypass_actors', + 'conditions', + 'rules' + ) }) .json() } @@ -51735,10 +68104,22 @@ For more information, see "[Managing rulesets for a repository](https://docs.git inputSchema: github.ReposGetRepoRuleSuitesParamsSchema }) async reposGetRepoRuleSuites( - _params: github.ReposGetRepoRuleSuitesParams + params: github.ReposGetRepoRuleSuitesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/rulesets/rule-suites') + .get(`/repos/${params.owner}/${params.repo}/rulesets/rule-suites`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'ref', + 'time_period', + 'actor_name', + 'rule_suite_result', + 'per_page', + 'page' + ) + ) + }) .json() } @@ -51753,10 +68134,13 @@ For more information, see "[Managing rulesets for a repository](https://docs.git inputSchema: github.ReposGetRepoRuleSuiteParamsSchema }) async reposGetRepoRuleSuite( - _params: github.ReposGetRepoRuleSuiteParams + params: github.ReposGetRepoRuleSuiteParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}') + .get( + `/repos/${params.owner}/${params.repo}/rulesets/rule-suites/${params.rule_suite_id}`, + {} + ) .json() } @@ -51829,7 +68213,8 @@ making the API request has write access to the ruleset.`, ): Promise { return this.ky .delete( - `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}` + `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}`, + {} ) .json() } @@ -51847,7 +68232,10 @@ making the API request has write access to the ruleset.`, ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}/history` + `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}/history`, + { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + } ) .json() } @@ -51865,7 +68253,8 @@ making the API request has write access to the ruleset.`, ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}/history/${params.version_id}` + `/repos/${params.owner}/${params.repo}/rulesets/${params.ruleset_id}/history/${params.version_id}`, + {} ) .json() } @@ -51887,10 +68276,31 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.SecretScanningListAlertsForRepoParamsSchema }) async secretScanningListAlertsForRepo( - _params: github.SecretScanningListAlertsForRepoParams + params: github.SecretScanningListAlertsForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/secret-scanning/alerts') + .get( + `/repos/${params.owner}/${params.repo}/secret-scanning/alerts`, + { + searchParams: sanitizeSearchParams( + pick( + params, + 'state', + 'secret_type', + 'resolution', + 'sort', + 'direction', + 'page', + 'per_page', + 'before', + 'after', + 'validity', + 'is_publicly_leaked', + 'is_multi_repo' + ) + ) + } + ) .json() } @@ -51911,10 +68321,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.SecretScanningGetAlertParamsSchema }) async secretScanningGetAlert( - _params: github.SecretScanningGetAlertParams + params: github.SecretScanningGetAlertParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}') + .get( + `/repos/${params.owner}/${params.repo}/secret-scanning/alerts/${params.alert_number}`, + {} + ) .json() } @@ -51938,9 +68351,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec params: github.SecretScanningUpdateAlertParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/secret-scanning/alerts/${params.alert_number}`, + { + json: pick(params, 'state', 'resolution', 'resolution_comment') + } + ) .json() } @@ -51961,11 +68377,14 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.SecretScanningListLocationsForAlertParamsSchema }) async secretScanningListLocationsForAlert( - _params: github.SecretScanningListLocationsForAlertParams + params: github.SecretScanningListLocationsForAlertParams ): Promise { return this.ky .get( - '/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations' + `/repos/${params.owner}/${params.repo}/secret-scanning/alerts/${params.alert_number}/locations`, + { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + } ) .json() } @@ -51990,9 +68409,12 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.SecretScanningCreatePushProtectionBypassParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/secret-scanning/push-protection-bypasses`, + { + json: pick(params, 'reason', 'placeholder_id') + } + ) .json() } @@ -52009,10 +68431,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`sec inputSchema: github.SecretScanningGetScanHistoryParamsSchema }) async secretScanningGetScanHistory( - _params: github.SecretScanningGetScanHistoryParams + params: github.SecretScanningGetScanHistoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/secret-scanning/scan-history') + .get( + `/repos/${params.owner}/${params.repo}/secret-scanning/scan-history`, + {} + ) .json() } @@ -52036,8 +68461,18 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep params: github.SecurityAdvisoriesListRepositoryAdvisoriesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/security-advisories', { - searchParams: sanitizeSearchParams(params) + .get(`/repos/${params.owner}/${params.repo}/security-advisories`, { + searchParams: sanitizeSearchParams( + pick( + params, + 'direction', + 'sort', + 'before', + 'after', + 'per_page', + 'state' + ) + ) }) .json() } @@ -52062,8 +68497,19 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep params: github.SecurityAdvisoriesCreateRepositoryAdvisoryParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/security-advisories', { - json: params + .post(`/repos/${params.owner}/${params.repo}/security-advisories`, { + json: pick( + params, + 'summary', + 'description', + 'cve_id', + 'vulnerabilities', + 'cwe_ids', + 'credits', + 'severity', + 'cvss_vector_string', + 'start_private_fork' + ) }) .json() } @@ -52083,9 +68529,21 @@ See "[Privately reporting a security vulnerability](https://docs.github.com/code params: github.SecurityAdvisoriesCreatePrivateVulnerabilityReportParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/security-advisories/reports', { - json: params - }) + .post( + `/repos/${params.owner}/${params.repo}/security-advisories/reports`, + { + json: pick( + params, + 'summary', + 'description', + 'vulnerabilities', + 'cwe_ids', + 'severity', + 'cvss_vector_string', + 'start_private_fork' + ) + } + ) .json() } @@ -52112,10 +68570,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.SecurityAdvisoriesGetRepositoryAdvisoryParamsSchema }) async securityAdvisoriesGetRepositoryAdvisory( - _params: github.SecurityAdvisoriesGetRepositoryAdvisoryParams + params: github.SecurityAdvisoriesGetRepositoryAdvisoryParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/security-advisories/{ghsa_id}') + .get( + `/repos/${params.owner}/${params.repo}/security-advisories/${params.ghsa_id}`, + {} + ) .json() } @@ -52141,9 +68602,25 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep params: github.SecurityAdvisoriesUpdateRepositoryAdvisoryParams ): Promise { return this.ky - .patch('/repos/{owner}/{repo}/security-advisories/{ghsa_id}', { - json: params - }) + .patch( + `/repos/${params.owner}/${params.repo}/security-advisories/${params.ghsa_id}`, + { + json: pick( + params, + 'summary', + 'description', + 'cve_id', + 'vulnerabilities', + 'cwe_ids', + 'credits', + 'severity', + 'cvss_vector_string', + 'state', + 'collaborating_users', + 'collaborating_teams' + ) + } + ) .json() } @@ -52169,10 +68646,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep github.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParamsSchema }) async securityAdvisoriesCreateRepositoryAdvisoryCveRequest( - _params: github.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParams + params: github.SecurityAdvisoriesCreateRepositoryAdvisoryCveRequestParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve') + .post( + `/repos/${params.owner}/${params.repo}/security-advisories/${params.ghsa_id}/cve`, + {} + ) .json() } @@ -52191,10 +68671,13 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` or \`rep inputSchema: github.SecurityAdvisoriesCreateForkParamsSchema }) async securityAdvisoriesCreateFork( - _params: github.SecurityAdvisoriesCreateForkParams + params: github.SecurityAdvisoriesCreateForkParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks') + .post( + `/repos/${params.owner}/${params.repo}/security-advisories/${params.ghsa_id}/forks`, + {} + ) .json() } @@ -52215,10 +68698,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityListStargazersForRepoParamsSchema }) async activityListStargazersForRepo( - _params: github.ActivityListStargazersForRepoParams + params: github.ActivityListStargazersForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stargazers') + .get(`/repos/${params.owner}/${params.repo}/stargazers`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -52237,10 +68722,13 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposGetCodeFrequencyStatsParamsSchema }) async reposGetCodeFrequencyStats( - _params: github.ReposGetCodeFrequencyStatsParams + params: github.ReposGetCodeFrequencyStatsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stats/code_frequency') + .get( + `/repos/${params.owner}/${params.repo}/stats/code_frequency`, + {} + ) .json() } @@ -52253,15 +68741,18 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ReposGetCommitActivityStatsParamsSchema }) async reposGetCommitActivityStats( - _params: github.ReposGetCommitActivityStatsParams + params: github.ReposGetCommitActivityStatsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stats/commit_activity') + .get( + `/repos/${params.owner}/${params.repo}/stats/commit_activity`, + {} + ) .json() } /** - * + * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). @@ -52287,10 +68778,10 @@ Returns the \`total\` number of commits authored by the contributor. In addition inputSchema: github.ReposGetContributorsStatsParamsSchema }) async reposGetContributorsStats( - _params: github.ReposGetContributorsStatsParams + params: github.ReposGetContributorsStatsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stats/contributors') + .get(`/repos/${params.owner}/${params.repo}/stats/contributors`, {}) .json() } @@ -52311,10 +68802,13 @@ The most recent week is seven days ago at UTC midnight to today at UTC midnight. inputSchema: github.ReposGetParticipationStatsParamsSchema }) async reposGetParticipationStats( - _params: github.ReposGetParticipationStatsParams + params: github.ReposGetParticipationStatsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stats/participation') + .get( + `/repos/${params.owner}/${params.repo}/stats/participation`, + {} + ) .json() } @@ -52339,10 +68833,10 @@ For example, \`[2, 14, 25]\` indicates that there were 25 total commits, during inputSchema: github.ReposGetPunchCardStatsParamsSchema }) async reposGetPunchCardStats( - _params: github.ReposGetPunchCardStatsParams + params: github.ReposGetPunchCardStatsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/stats/punch_card') + .get(`/repos/${params.owner}/${params.repo}/stats/punch_card`, {}) .json() } @@ -52380,10 +68874,12 @@ Note: there is a limit of 1000 statuses per \`sha\` and \`context\` within a rep inputSchema: github.ActivityListWatchersForRepoParamsSchema }) async activityListWatchersForRepo( - _params: github.ActivityListWatchersForRepoParams + params: github.ActivityListWatchersForRepoParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/subscribers') + .get(`/repos/${params.owner}/${params.repo}/subscribers`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -52396,10 +68892,10 @@ Note: there is a limit of 1000 statuses per \`sha\` and \`context\` within a rep inputSchema: github.ActivityGetRepoSubscriptionParamsSchema }) async activityGetRepoSubscription( - _params: github.ActivityGetRepoSubscriptionParams + params: github.ActivityGetRepoSubscriptionParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/subscription') + .get(`/repos/${params.owner}/${params.repo}/subscription`, {}) .json() } @@ -52415,8 +68911,8 @@ Note: there is a limit of 1000 statuses per \`sha\` and \`context\` within a rep params: github.ActivitySetRepoSubscriptionParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/subscription', { - json: params + .put(`/repos/${params.owner}/${params.repo}/subscription`, { + json: pick(params, 'subscribed', 'ignored') }) .json() } @@ -52430,10 +68926,10 @@ Note: there is a limit of 1000 statuses per \`sha\` and \`context\` within a rep inputSchema: github.ActivityDeleteRepoSubscriptionParamsSchema }) async activityDeleteRepoSubscription( - _params: github.ActivityDeleteRepoSubscriptionParams + params: github.ActivityDeleteRepoSubscriptionParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/subscription') + .delete(`/repos/${params.owner}/${params.repo}/subscription`, {}) .json() } @@ -52446,10 +68942,12 @@ Note: there is a limit of 1000 statuses per \`sha\` and \`context\` within a rep inputSchema: github.ReposListTagsParamsSchema }) async reposListTags( - _params: github.ReposListTagsParams + params: github.ReposListTagsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/tags') + .get(`/repos/${params.owner}/${params.repo}/tags`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -52472,10 +68970,10 @@ This information is only available to repository administrators.`, inputSchema: github.ReposListTagProtectionParamsSchema }) async reposListTagProtection( - _params: github.ReposListTagProtectionParams + params: github.ReposListTagProtectionParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/tags/protection') + .get(`/repos/${params.owner}/${params.repo}/tags/protection`, {}) .json() } @@ -52499,8 +68997,8 @@ This endpoint is only available to repository administrators.`, params: github.ReposCreateTagProtectionParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/tags/protection', { - json: params + .post(`/repos/${params.owner}/${params.repo}/tags/protection`, { + json: pick(params, 'pattern') }) .json() } @@ -52522,10 +69020,13 @@ This endpoint is only available to repository administrators.`, inputSchema: github.ReposDeleteTagProtectionParamsSchema }) async reposDeleteTagProtection( - _params: github.ReposDeleteTagProtectionParams + params: github.ReposDeleteTagProtectionParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/tags/protection/{tag_protection_id}') + .delete( + `/repos/${params.owner}/${params.repo}/tags/protection/${params.tag_protection_id}`, + {} + ) .json() } @@ -52552,7 +69053,8 @@ the \`Location\` header to make a second \`GET\` request. ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/tarball/${params.ref}` + `/repos/${params.owner}/${params.repo}/tarball/${params.ref}`, + {} ) .json() } @@ -52574,10 +69076,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposListTeamsParamsSchema }) async reposListTeams( - _params: github.ReposListTeamsParams + params: github.ReposListTeamsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/teams') + .get(`/repos/${params.owner}/${params.repo}/teams`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -52590,10 +69094,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetAllTopicsParamsSchema }) async reposGetAllTopics( - _params: github.ReposGetAllTopicsParams + params: github.ReposGetAllTopicsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/topics') + .get(`/repos/${params.owner}/${params.repo}/topics`, { + searchParams: sanitizeSearchParams(pick(params, 'page', 'per_page')) + }) .json() } @@ -52609,8 +69115,8 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o params: github.ReposReplaceAllTopicsParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/topics', { - json: params + .put(`/repos/${params.owner}/${params.repo}/topics`, { + json: pick(params, 'names') }) .json() } @@ -52624,10 +69130,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetClonesParamsSchema }) async reposGetClones( - _params: github.ReposGetClonesParams + params: github.ReposGetClonesParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/traffic/clones') + .get(`/repos/${params.owner}/${params.repo}/traffic/clones`, { + searchParams: sanitizeSearchParams(pick(params, 'per')) + }) .json() } @@ -52640,10 +69148,13 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetTopPathsParamsSchema }) async reposGetTopPaths( - _params: github.ReposGetTopPathsParams + params: github.ReposGetTopPathsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/traffic/popular/paths') + .get( + `/repos/${params.owner}/${params.repo}/traffic/popular/paths`, + {} + ) .json() } @@ -52656,10 +69167,13 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetTopReferrersParamsSchema }) async reposGetTopReferrers( - _params: github.ReposGetTopReferrersParams + params: github.ReposGetTopReferrersParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/traffic/popular/referrers') + .get( + `/repos/${params.owner}/${params.repo}/traffic/popular/referrers`, + {} + ) .json() } @@ -52672,10 +69186,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposGetViewsParamsSchema }) async reposGetViews( - _params: github.ReposGetViewsParams + params: github.ReposGetViewsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/traffic/views') + .get(`/repos/${params.owner}/${params.repo}/traffic/views`, { + searchParams: sanitizeSearchParams(pick(params, 'per')) + }) .json() } @@ -52691,8 +69207,8 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o params: github.ReposTransferParams ): Promise { return this.ky - .post('/repos/{owner}/{repo}/transfer', { - json: params + .post(`/repos/${params.owner}/${params.repo}/transfer`, { + json: pick(params, 'new_owner', 'new_name', 'team_ids') }) .json() } @@ -52706,10 +69222,13 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposCheckVulnerabilityAlertsParamsSchema }) async reposCheckVulnerabilityAlerts( - _params: github.ReposCheckVulnerabilityAlertsParams + params: github.ReposCheckVulnerabilityAlertsParams ): Promise { return this.ky - .get('/repos/{owner}/{repo}/vulnerability-alerts') + .get( + `/repos/${params.owner}/${params.repo}/vulnerability-alerts`, + {} + ) .json() } @@ -52722,10 +69241,13 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposEnableVulnerabilityAlertsParamsSchema }) async reposEnableVulnerabilityAlerts( - _params: github.ReposEnableVulnerabilityAlertsParams + params: github.ReposEnableVulnerabilityAlertsParams ): Promise { return this.ky - .put('/repos/{owner}/{repo}/vulnerability-alerts') + .put( + `/repos/${params.owner}/${params.repo}/vulnerability-alerts`, + {} + ) .json() } @@ -52742,10 +69264,13 @@ see "[About security alerts for vulnerable dependencies](https://docs.github.com inputSchema: github.ReposDisableVulnerabilityAlertsParamsSchema }) async reposDisableVulnerabilityAlerts( - _params: github.ReposDisableVulnerabilityAlertsParams + params: github.ReposDisableVulnerabilityAlertsParams ): Promise { return this.ky - .delete('/repos/{owner}/{repo}/vulnerability-alerts') + .delete( + `/repos/${params.owner}/${params.repo}/vulnerability-alerts`, + {} + ) .json() } @@ -52772,7 +69297,8 @@ the \`Location\` header to make a second \`GET\` request. ): Promise { return this.ky .get( - `/repos/${params.owner}/${params.repo}/zipball/${params.ref}` + `/repos/${params.owner}/${params.repo}/zipball/${params.ref}`, + {} ) .json() } @@ -52826,9 +69352,13 @@ Note: inputSchema: github.ReposListPublicParamsSchema }) async reposListPublic( - _params: github.ReposListPublicParams + params: github.ReposListPublicParams ): Promise { - return this.ky.get('/repositories').json() + return this.ky + .get('/repositories', { + searchParams: sanitizeSearchParams(params) + }) + .json() } /** @@ -52882,7 +69412,9 @@ This endpoint requires you to authenticate and limits you to 10 requests per min ): Promise { return this.ky .get('/search/code', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'q', 'sort', 'order', 'per_page', 'page') + ) }) .json() } @@ -52914,7 +69446,9 @@ For example, if you want to find commits related to CSS in the [octocat/Spoon-Kn ): Promise { return this.ky .get('/search/commits', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'q', 'sort', 'order', 'per_page', 'page') + ) }) .json() } @@ -52936,7 +69470,17 @@ For example, if you want to find commits related to CSS in the [octocat/Spoon-Kn ): Promise { return this.ky .get('/search/issues', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'q', + 'sort', + 'order', + 'per_page', + 'page', + 'advanced_search' + ) + ) }) .json() } @@ -52970,7 +69514,17 @@ The labels that best match the query appear first in the search results.`, ): Promise { return this.ky .get('/search/labels', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'repository_id', + 'q', + 'sort', + 'order', + 'per_page', + 'page' + ) + ) }) .json() } @@ -53004,7 +69558,9 @@ This query searches for repositories with the word \`tetris\` in the name, the d ): Promise { return this.ky .get('/search/repositories', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'q', 'sort', 'order', 'per_page', 'page') + ) }) .json() } @@ -53038,7 +69594,9 @@ This query searches for topics with the keyword \`ruby\` and limits the results ): Promise { return this.ky .get('/search/topics', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'q', 'per_page', 'page') + ) }) .json() } @@ -53076,7 +69634,9 @@ This endpoint does not accept authentication and will only include publicly visi ): Promise { return this.ky .get('/search/users', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'q', 'sort', 'order', 'per_page', 'page') + ) }) .json() } @@ -53092,9 +69652,11 @@ This endpoint does not accept authentication and will only include publicly visi inputSchema: github.TeamsGetLegacyParamsSchema }) async teamsGetLegacy( - _params: github.TeamsGetLegacyParams + params: github.TeamsGetLegacyParams ): Promise { - return this.ky.get('/teams/{team_id}').json() + return this.ky + .get(`/teams/${params.team_id}`) + .json() } /** @@ -53116,10 +69678,10 @@ If you are an organization owner, deleting a parent team will delete all of its inputSchema: github.TeamsDeleteLegacyParamsSchema }) async teamsDeleteLegacy( - _params: github.TeamsDeleteLegacyParams + params: github.TeamsDeleteLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}') + .delete(`/teams/${params.team_id}`) .json() } @@ -53147,8 +69709,16 @@ To edit a team, the authenticated user must either be an organization owner or a params: github.TeamsUpdateLegacyParams ): Promise { return this.ky - .patch('/teams/{team_id}', { - json: params + .patch(`/teams/${params.team_id}`, { + json: pick( + params, + 'name', + 'description', + 'privacy', + 'notification_setting', + 'permission', + 'parent_team_id' + ) }) .json() } @@ -53172,10 +69742,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsListDiscussionsLegacyParamsSchema }) async teamsListDiscussionsLegacy( - _params: github.TeamsListDiscussionsLegacyParams + params: github.TeamsListDiscussionsLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/discussions') + .get(`/teams/${params.team_id}/discussions`, { + searchParams: sanitizeSearchParams( + pick(params, 'direction', 'per_page', 'page') + ) + }) .json() } @@ -53205,8 +69779,8 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.TeamsCreateDiscussionLegacyParams ): Promise { return this.ky - .post('/teams/{team_id}/discussions', { - json: params + .post(`/teams/${params.team_id}/discussions`, { + json: pick(params, 'title', 'body', 'private') }) .json() } @@ -53230,10 +69804,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsGetDiscussionLegacyParamsSchema }) async teamsGetDiscussionLegacy( - _params: github.TeamsGetDiscussionLegacyParams + params: github.TeamsGetDiscussionLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/discussions/{discussion_number}') + .get( + `/teams/${params.team_id}/discussions/${params.discussion_number}`, + {} + ) .json() } @@ -53256,10 +69833,13 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.TeamsDeleteDiscussionLegacyParamsSchema }) async teamsDeleteDiscussionLegacy( - _params: github.TeamsDeleteDiscussionLegacyParams + params: github.TeamsDeleteDiscussionLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}/discussions/{discussion_number}') + .delete( + `/teams/${params.team_id}/discussions/${params.discussion_number}`, + {} + ) .json() } @@ -53285,9 +69865,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.TeamsUpdateDiscussionLegacyParams ): Promise { return this.ky - .patch('/teams/{team_id}/discussions/{discussion_number}', { - json: params - }) + .patch( + `/teams/${params.team_id}/discussions/${params.discussion_number}`, + { + json: pick(params, 'title', 'body') + } + ) .json() } @@ -53310,10 +69893,17 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsListDiscussionCommentsLegacyParamsSchema }) async teamsListDiscussionCommentsLegacy( - _params: github.TeamsListDiscussionCommentsLegacyParams + params: github.TeamsListDiscussionCommentsLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/discussions/{discussion_number}/comments') + .get( + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments`, + { + searchParams: sanitizeSearchParams( + pick(params, 'direction', 'per_page', 'page') + ) + } + ) .json() } @@ -53343,9 +69933,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.TeamsCreateDiscussionCommentLegacyParams ): Promise { return this.ky - .post('/teams/{team_id}/discussions/{discussion_number}/comments', { - json: params - }) + .post( + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments`, + { + json: pick(params, 'body') + } + ) .json() } @@ -53368,11 +69961,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion inputSchema: github.TeamsGetDiscussionCommentLegacyParamsSchema }) async teamsGetDiscussionCommentLegacy( - _params: github.TeamsGetDiscussionCommentLegacyParams + params: github.TeamsGetDiscussionCommentLegacyParams ): Promise { return this.ky .get( - '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}' + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments/${params.comment_number}`, + {} ) .json() } @@ -53396,11 +69990,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio inputSchema: github.TeamsDeleteDiscussionCommentLegacyParamsSchema }) async teamsDeleteDiscussionCommentLegacy( - _params: github.TeamsDeleteDiscussionCommentLegacyParams + params: github.TeamsDeleteDiscussionCommentLegacyParams ): Promise { return this.ky .delete( - '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}' + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments/${params.comment_number}`, + {} ) .json() } @@ -53428,9 +70023,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .patch( - '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments/${params.comment_number}`, { - json: params + json: pick(params, 'body') } ) .json() @@ -53459,9 +70054,11 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion ): Promise { return this.ky .get( - '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments/${params.comment_number}/reactions`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) } ) .json() @@ -53495,9 +70092,9 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio ): Promise { return this.ky .post( - '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', + `/teams/${params.team_id}/discussions/${params.discussion_number}/comments/${params.comment_number}/reactions`, { - json: params + json: pick(params, 'content') } ) .json() @@ -53525,9 +70122,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:discussion params: github.ReactionsListForTeamDiscussionLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/discussions/{discussion_number}/reactions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/teams/${params.team_id}/discussions/${params.discussion_number}/reactions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'content', 'per_page', 'page') + ) + } + ) .json() } @@ -53557,9 +70159,12 @@ OAuth app tokens and personal access tokens (classic) need the \`write:discussio params: github.ReactionsCreateForTeamDiscussionLegacyParams ): Promise { return this.ky - .post('/teams/{team_id}/discussions/{discussion_number}/reactions', { - json: params - }) + .post( + `/teams/${params.team_id}/discussions/${params.discussion_number}/reactions`, + { + json: pick(params, 'content') + } + ) .json() } @@ -53578,10 +70183,12 @@ The return hash contains a \`role\` field which refers to the Organization Invit inputSchema: github.TeamsListPendingInvitationsLegacyParamsSchema }) async teamsListPendingInvitationsLegacy( - _params: github.TeamsListPendingInvitationsLegacyParams + params: github.TeamsListPendingInvitationsLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/invitations') + .get(`/teams/${params.team_id}/invitations`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -53603,8 +70210,10 @@ Team members will include the members of child teams.`, params: github.TeamsListMembersLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/members', { - searchParams: sanitizeSearchParams(params) + .get(`/teams/${params.team_id}/members`, { + searchParams: sanitizeSearchParams( + pick(params, 'role', 'per_page', 'page') + ) }) .json() } @@ -53626,10 +70235,10 @@ To list members in a team, the team must be visible to the authenticated user.`, inputSchema: github.TeamsGetMemberLegacyParamsSchema }) async teamsGetMemberLegacy( - _params: github.TeamsGetMemberLegacyParams + params: github.TeamsGetMemberLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/members/{username}') + .get(`/teams/${params.team_id}/members/${params.username}`, {}) .json() } @@ -53664,10 +70273,10 @@ Note that you'll need to set \`Content-Length\` to zero when calling out to this inputSchema: github.TeamsAddMemberLegacyParamsSchema }) async teamsAddMemberLegacy( - _params: github.TeamsAddMemberLegacyParams + params: github.TeamsAddMemberLegacyParams ): Promise { return this.ky - .put('/teams/{team_id}/members/{username}') + .put(`/teams/${params.team_id}/members/${params.username}`, {}) .json() } @@ -53698,10 +70307,10 @@ To remove a team member, the authenticated user must have 'admin' permissions to inputSchema: github.TeamsRemoveMemberLegacyParamsSchema }) async teamsRemoveMemberLegacy( - _params: github.TeamsRemoveMemberLegacyParams + params: github.TeamsRemoveMemberLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}/members/{username}') + .delete(`/teams/${params.team_id}/members/${params.username}`, {}) .json() } @@ -53734,10 +70343,10 @@ The \`role\` for organization owners is set to \`maintainer\`. For more informat inputSchema: github.TeamsGetMembershipForUserLegacyParamsSchema }) async teamsGetMembershipForUserLegacy( - _params: github.TeamsGetMembershipForUserLegacyParams + params: github.TeamsGetMembershipForUserLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/memberships/{username}') + .get(`/teams/${params.team_id}/memberships/${params.username}`, {}) .json() } @@ -53777,8 +70386,8 @@ If the user is already a member of the team, this endpoint will update the role params: github.TeamsAddOrUpdateMembershipForUserLegacyParams ): Promise { return this.ky - .put('/teams/{team_id}/memberships/{username}', { - json: params + .put(`/teams/${params.team_id}/memberships/${params.username}`, { + json: pick(params, 'role') }) .json() } @@ -53808,10 +70417,13 @@ To remove a membership between a user and a team, the authenticated user must ha inputSchema: github.TeamsRemoveMembershipForUserLegacyParamsSchema }) async teamsRemoveMembershipForUserLegacy( - _params: github.TeamsRemoveMembershipForUserLegacyParams + params: github.TeamsRemoveMembershipForUserLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}/memberships/{username}') + .delete( + `/teams/${params.team_id}/memberships/${params.username}`, + {} + ) .json() } @@ -53828,10 +70440,12 @@ To remove a membership between a user and a team, the authenticated user must ha inputSchema: github.TeamsListProjectsLegacyParamsSchema }) async teamsListProjectsLegacy( - _params: github.TeamsListProjectsLegacyParams + params: github.TeamsListProjectsLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/projects') + .get(`/teams/${params.team_id}/projects`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -53848,10 +70462,10 @@ To remove a membership between a user and a team, the authenticated user must ha inputSchema: github.TeamsCheckPermissionsForProjectLegacyParamsSchema }) async teamsCheckPermissionsForProjectLegacy( - _params: github.TeamsCheckPermissionsForProjectLegacyParams + params: github.TeamsCheckPermissionsForProjectLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/projects/{project_id}') + .get(`/teams/${params.team_id}/projects/${params.project_id}`, {}) .json() } @@ -53871,8 +70485,8 @@ To remove a membership between a user and a team, the authenticated user must ha params: github.TeamsAddOrUpdateProjectPermissionsLegacyParams ): Promise { return this.ky - .put('/teams/{team_id}/projects/{project_id}', { - json: params + .put(`/teams/${params.team_id}/projects/${params.project_id}`, { + json: pick(params, 'permission') }) .json() } @@ -53890,10 +70504,13 @@ To remove a membership between a user and a team, the authenticated user must ha inputSchema: github.TeamsRemoveProjectLegacyParamsSchema }) async teamsRemoveProjectLegacy( - _params: github.TeamsRemoveProjectLegacyParams + params: github.TeamsRemoveProjectLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}/projects/{project_id}') + .delete( + `/teams/${params.team_id}/projects/${params.project_id}`, + {} + ) .json() } @@ -53908,10 +70525,12 @@ To remove a membership between a user and a team, the authenticated user must ha inputSchema: github.TeamsListReposLegacyParamsSchema }) async teamsListReposLegacy( - _params: github.TeamsListReposLegacyParams + params: github.TeamsListReposLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/repos') + .get(`/teams/${params.team_id}/repos`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -53936,10 +70555,13 @@ You can also get information about the specified repository, including what perm inputSchema: github.TeamsCheckPermissionsForRepoLegacyParamsSchema }) async teamsCheckPermissionsForRepoLegacy( - _params: github.TeamsCheckPermissionsForRepoLegacyParams + params: github.TeamsCheckPermissionsForRepoLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/repos/{owner}/{repo}') + .get( + `/teams/${params.team_id}/repos/${params.owner}/${params.repo}`, + {} + ) .json() } @@ -53965,9 +70587,12 @@ Note that, if you choose not to pass any parameters, you'll need to set \`Conten params: github.TeamsAddOrUpdateRepoPermissionsLegacyParams ): Promise { return this.ky - .put('/teams/{team_id}/repos/{owner}/{repo}', { - json: params - }) + .put( + `/teams/${params.team_id}/repos/${params.owner}/${params.repo}`, + { + json: pick(params, 'permission') + } + ) .json() } @@ -53986,10 +70611,13 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.TeamsRemoveRepoLegacyParamsSchema }) async teamsRemoveRepoLegacy( - _params: github.TeamsRemoveRepoLegacyParams + params: github.TeamsRemoveRepoLegacyParams ): Promise { return this.ky - .delete('/teams/{team_id}/repos/{owner}/{repo}') + .delete( + `/teams/${params.team_id}/repos/${params.owner}/${params.repo}`, + {} + ) .json() } @@ -54004,10 +70632,12 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.TeamsListChildLegacyParamsSchema }) async teamsListChildLegacy( - _params: github.TeamsListChildLegacyParams + params: github.TeamsListChildLegacyParams ): Promise { return this.ky - .get('/teams/{team_id}/teams') + .get(`/teams/${params.team_id}/teams`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54038,7 +70668,17 @@ If the authenticated user is an organization owner or a team maintainer, they ca ): Promise { return this.ky .patch('/user', { - json: params + json: pick( + params, + 'name', + 'email', + 'blog', + 'twitter_username', + 'company', + 'location', + 'hireable', + 'bio' + ) }) .json() } @@ -54052,10 +70692,12 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.UsersListBlockedByAuthenticatedUserParamsSchema }) async usersListBlockedByAuthenticatedUser( - _params: github.UsersListBlockedByAuthenticatedUserParams + params: github.UsersListBlockedByAuthenticatedUserParams ): Promise { return this.ky - .get('/user/blocks') + .get('/user/blocks', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54068,10 +70710,10 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.UsersCheckBlockedParamsSchema }) async usersCheckBlocked( - _params: github.UsersCheckBlockedParams + params: github.UsersCheckBlockedParams ): Promise { return this.ky - .get('/user/blocks/{username}') + .get(`/user/blocks/${params.username}`) .json() } @@ -54084,10 +70726,10 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.UsersBlockParamsSchema }) async usersBlock( - _params: github.UsersBlockParams + params: github.UsersBlockParams ): Promise { return this.ky - .put('/user/blocks/{username}') + .put(`/user/blocks/${params.username}`) .json() } @@ -54100,10 +70742,10 @@ If the authenticated user is an organization owner or a team maintainer, they ca inputSchema: github.UsersUnblockParamsSchema }) async usersUnblock( - _params: github.UsersUnblockParams + params: github.UsersUnblockParams ): Promise { return this.ky - .delete('/user/blocks/{username}') + .delete(`/user/blocks/${params.username}`) .json() } @@ -54120,10 +70762,14 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesListForAuthenticatedUserParamsSchema }) async codespacesListForAuthenticatedUser( - _params: github.CodespacesListForAuthenticatedUserParams + params: github.CodespacesListForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces') + .get('/user/codespaces', { + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'page', 'repository_id') + ) + }) .json() } @@ -54173,10 +70819,12 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or inputSchema: github.CodespacesListSecretsForAuthenticatedUserParamsSchema }) async codespacesListSecretsForAuthenticatedUser( - _params: github.CodespacesListSecretsForAuthenticatedUserParams + params: github.CodespacesListSecretsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/secrets') + .get('/user/codespaces/secrets', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54221,10 +70869,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or inputSchema: github.CodespacesGetSecretForAuthenticatedUserParamsSchema }) async codespacesGetSecretForAuthenticatedUser( - _params: github.CodespacesGetSecretForAuthenticatedUserParams + params: github.CodespacesGetSecretForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/secrets/{secret_name}') + .get(`/user/codespaces/secrets/${params.secret_name}`) .json() } @@ -54251,8 +70899,13 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or params: github.CodespacesCreateOrUpdateSecretForAuthenticatedUserParams ): Promise { return this.ky - .put('/user/codespaces/secrets/{secret_name}', { - json: params + .put(`/user/codespaces/secrets/${params.secret_name}`, { + json: pick( + params, + 'encrypted_value', + 'key_id', + 'selected_repository_ids' + ) }) .json() } @@ -54274,10 +70927,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or inputSchema: github.CodespacesDeleteSecretForAuthenticatedUserParamsSchema }) async codespacesDeleteSecretForAuthenticatedUser( - _params: github.CodespacesDeleteSecretForAuthenticatedUserParams + params: github.CodespacesDeleteSecretForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/codespaces/secrets/{secret_name}') + .delete(`/user/codespaces/secrets/${params.secret_name}`) .json() } @@ -54299,10 +70952,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or github.CodespacesListRepositoriesForSecretForAuthenticatedUserParamsSchema }) async codespacesListRepositoriesForSecretForAuthenticatedUser( - _params: github.CodespacesListRepositoriesForSecretForAuthenticatedUserParams + params: github.CodespacesListRepositoriesForSecretForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/secrets/{secret_name}/repositories') + .get(`/user/codespaces/secrets/${params.secret_name}/repositories`) .json() } @@ -54327,8 +70980,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or params: github.CodespacesSetRepositoriesForSecretForAuthenticatedUserParams ): Promise { return this.ky - .put('/user/codespaces/secrets/{secret_name}/repositories', { - json: params + .put(`/user/codespaces/secrets/${params.secret_name}/repositories`, { + json: pick(params, 'selected_repository_ids') }) .json() } @@ -54355,7 +71008,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or ): Promise { return this.ky .put( - `/user/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/user/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -54382,7 +71036,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` or ): Promise { return this.ky .delete( - `/user/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}` + `/user/codespaces/secrets/${params.secret_name}/repositories/${params.repository_id}`, + {} ) .json() } @@ -54400,10 +71055,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesGetForAuthenticatedUserParamsSchema }) async codespacesGetForAuthenticatedUser( - _params: github.CodespacesGetForAuthenticatedUserParams + params: github.CodespacesGetForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/{codespace_name}') + .get(`/user/codespaces/${params.codespace_name}`) .json() } @@ -54420,10 +71075,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesDeleteForAuthenticatedUserParamsSchema }) async codespacesDeleteForAuthenticatedUser( - _params: github.CodespacesDeleteForAuthenticatedUserParams + params: github.CodespacesDeleteForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/codespaces/{codespace_name}') + .delete(`/user/codespaces/${params.codespace_name}`) .json() } @@ -54447,8 +71102,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesUpdateForAuthenticatedUserParams ): Promise { return this.ky - .patch('/user/codespaces/{codespace_name}', { - json: params + .patch(`/user/codespaces/${params.codespace_name}`, { + json: pick(params, 'machine', 'display_name', 'recent_folders') }) .json() } @@ -54470,10 +71125,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesExportForAuthenticatedUserParamsSchema }) async codespacesExportForAuthenticatedUser( - _params: github.CodespacesExportForAuthenticatedUserParams + params: github.CodespacesExportForAuthenticatedUserParams ): Promise { return this.ky - .post('/user/codespaces/{codespace_name}/exports') + .post(`/user/codespaces/${params.codespace_name}/exports`) .json() } @@ -54491,10 +71146,13 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco github.CodespacesGetExportDetailsForAuthenticatedUserParamsSchema }) async codespacesGetExportDetailsForAuthenticatedUser( - _params: github.CodespacesGetExportDetailsForAuthenticatedUserParams + params: github.CodespacesGetExportDetailsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/{codespace_name}/exports/{export_id}') + .get( + `/user/codespaces/${params.codespace_name}/exports/${params.export_id}`, + {} + ) .json() } @@ -54512,10 +71170,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco github.CodespacesCodespaceMachinesForAuthenticatedUserParamsSchema }) async codespacesCodespaceMachinesForAuthenticatedUser( - _params: github.CodespacesCodespaceMachinesForAuthenticatedUserParams + params: github.CodespacesCodespaceMachinesForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/codespaces/{codespace_name}/machines') + .get(`/user/codespaces/${params.codespace_name}/machines`) .json() } @@ -54543,8 +71201,8 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco params: github.CodespacesPublishForAuthenticatedUserParams ): Promise { return this.ky - .post('/user/codespaces/{codespace_name}/publish', { - json: params + .post(`/user/codespaces/${params.codespace_name}/publish`, { + json: pick(params, 'name', 'private') }) .json() } @@ -54562,10 +71220,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesStartForAuthenticatedUserParamsSchema }) async codespacesStartForAuthenticatedUser( - _params: github.CodespacesStartForAuthenticatedUserParams + params: github.CodespacesStartForAuthenticatedUserParams ): Promise { return this.ky - .post('/user/codespaces/{codespace_name}/start') + .post(`/user/codespaces/${params.codespace_name}/start`) .json() } @@ -54582,10 +71240,10 @@ OAuth app tokens and personal access tokens (classic) need the \`codespace\` sco inputSchema: github.CodespacesStopForAuthenticatedUserParamsSchema }) async codespacesStopForAuthenticatedUser( - _params: github.CodespacesStopForAuthenticatedUserParams + params: github.CodespacesStopForAuthenticatedUserParams ): Promise { return this.ky - .post('/user/codespaces/{codespace_name}/stop') + .post(`/user/codespaces/${params.codespace_name}/stop`) .json() } @@ -54644,10 +71302,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user:email\` sc inputSchema: github.UsersListEmailsForAuthenticatedUserParamsSchema }) async usersListEmailsForAuthenticatedUser( - _params: github.UsersListEmailsForAuthenticatedUserParams + params: github.UsersListEmailsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/emails') + .get('/user/emails', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54698,10 +71358,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user:email\` sc inputSchema: github.UsersListFollowersForAuthenticatedUserParamsSchema }) async usersListFollowersForAuthenticatedUser( - _params: github.UsersListFollowersForAuthenticatedUserParams + params: github.UsersListFollowersForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/followers') + .get('/user/followers', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54714,10 +71376,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user:email\` sc inputSchema: github.UsersListFollowedByAuthenticatedUserParamsSchema }) async usersListFollowedByAuthenticatedUser( - _params: github.UsersListFollowedByAuthenticatedUserParams + params: github.UsersListFollowedByAuthenticatedUserParams ): Promise { return this.ky - .get('/user/following') + .get('/user/following', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54730,10 +71394,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user:email\` sc inputSchema: github.UsersCheckPersonIsFollowedByAuthenticatedParamsSchema }) async usersCheckPersonIsFollowedByAuthenticated( - _params: github.UsersCheckPersonIsFollowedByAuthenticatedParams + params: github.UsersCheckPersonIsFollowedByAuthenticatedParams ): Promise { return this.ky - .get('/user/following/{username}') + .get(`/user/following/${params.username}`) .json() } @@ -54750,10 +71414,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user:follow\` s inputSchema: github.UsersFollowParamsSchema }) async usersFollow( - _params: github.UsersFollowParams + params: github.UsersFollowParams ): Promise { return this.ky - .put('/user/following/{username}') + .put(`/user/following/${params.username}`) .json() } @@ -54766,10 +71430,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user:follow\` s inputSchema: github.UsersUnfollowParamsSchema }) async usersUnfollow( - _params: github.UsersUnfollowParams + params: github.UsersUnfollowParams ): Promise { return this.ky - .delete('/user/following/{username}') + .delete(`/user/following/${params.username}`) .json() } @@ -54786,10 +71450,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:gpg_key\` inputSchema: github.UsersListGpgKeysForAuthenticatedUserParamsSchema }) async usersListGpgKeysForAuthenticatedUser( - _params: github.UsersListGpgKeysForAuthenticatedUserParams + params: github.UsersListGpgKeysForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/gpg_keys') + .get('/user/gpg_keys', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54810,7 +71476,7 @@ OAuth app tokens and personal access tokens (classic) need the \`write:gpg_key\` ): Promise { return this.ky .post('/user/gpg_keys', { - json: params + json: pick(params, 'name', 'armored_public_key') }) .json() } @@ -54828,10 +71494,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:gpg_key\` inputSchema: github.UsersGetGpgKeyForAuthenticatedUserParamsSchema }) async usersGetGpgKeyForAuthenticatedUser( - _params: github.UsersGetGpgKeyForAuthenticatedUserParams + params: github.UsersGetGpgKeyForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/gpg_keys/{gpg_key_id}') + .get(`/user/gpg_keys/${params.gpg_key_id}`) .json() } @@ -54848,10 +71514,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:gpg_key\` inputSchema: github.UsersDeleteGpgKeyForAuthenticatedUserParamsSchema }) async usersDeleteGpgKeyForAuthenticatedUser( - _params: github.UsersDeleteGpgKeyForAuthenticatedUserParams + params: github.UsersDeleteGpgKeyForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/gpg_keys/{gpg_key_id}') + .delete(`/user/gpg_keys/${params.gpg_key_id}`) .json() } @@ -54872,10 +71538,12 @@ You can find the permissions for the installation under the \`permissions\` key. inputSchema: github.AppsListInstallationsForAuthenticatedUserParamsSchema }) async appsListInstallationsForAuthenticatedUser( - _params: github.AppsListInstallationsForAuthenticatedUserParams + params: github.AppsListInstallationsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/installations') + .get('/user/installations', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -54897,53 +71565,59 @@ The access the user has to each repository is included in the hash under the \`p github.AppsListInstallationReposForAuthenticatedUserParamsSchema }) async appsListInstallationReposForAuthenticatedUser( - _params: github.AppsListInstallationReposForAuthenticatedUserParams + params: github.AppsListInstallationReposForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/installations/{installation_id}/repositories') + .get(`/user/installations/${params.installation_id}/repositories`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } /** - * Add a single repository to an installation. The authenticated user must have admin access to the repository. + * Add a single repository to an installation. The authenticated user must have admin access to the repository. This endpoint only works for PATs (classic) with the `repo` scope. */ @aiFunction({ name: 'apps_add_repo_to_installation_for_authenticated_user', - description: `Add a single repository to an installation. The authenticated user must have admin access to the repository. + description: `Add a single repository to an installation. The authenticated user must have admin access to the repository. This endpoint only works for PATs (classic) with the \`repo\` scope.`, inputSchema: github.AppsAddRepoToInstallationForAuthenticatedUserParamsSchema }) async appsAddRepoToInstallationForAuthenticatedUser( - _params: github.AppsAddRepoToInstallationForAuthenticatedUserParams + params: github.AppsAddRepoToInstallationForAuthenticatedUserParams ): Promise { return this.ky - .put('/user/installations/{installation_id}/repositories/{repository_id}') + .put( + `/user/installations/${params.installation_id}/repositories/${params.repository_id}`, + {} + ) .json() } /** - * Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. + * Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the `repository_selection` of `selected`. This endpoint only works for PATs (classic) with the `repo` scope. */ @aiFunction({ name: 'apps_remove_repo_from_installation_for_authenticated_user', - description: `Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the \`repository_selection\` of \`selected\`. + description: `Remove a single repository from an installation. The authenticated user must have admin access to the repository. The installation must have the \`repository_selection\` of \`selected\`. This endpoint only works for PATs (classic) with the \`repo\` scope.`, inputSchema: github.AppsRemoveRepoFromInstallationForAuthenticatedUserParamsSchema }) async appsRemoveRepoFromInstallationForAuthenticatedUser( - _params: github.AppsRemoveRepoFromInstallationForAuthenticatedUserParams + params: github.AppsRemoveRepoFromInstallationForAuthenticatedUserParams ): Promise { return this.ky .delete( - '/user/installations/{installation_id}/repositories/{repository_id}' + `/user/installations/${params.installation_id}/repositories/${params.repository_id}`, + {} ) .json() } @@ -54979,7 +71653,7 @@ This endpoint only works for PATs (classic) with the \`repo\` scope.`, ): Promise { return this.ky .put('/user/interaction-limits', { - json: params + json: pick(params, 'limit', 'expiry') }) .json() } @@ -55034,7 +71708,19 @@ This endpoint supports the following custom media types. For more information, s ): Promise { return this.ky .get('/user/issues', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'filter', + 'state', + 'labels', + 'sort', + 'direction', + 'since', + 'per_page', + 'page' + ) + ) }) .json() } @@ -55052,10 +71738,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:public_key inputSchema: github.UsersListPublicSshKeysForAuthenticatedUserParamsSchema }) async usersListPublicSshKeysForAuthenticatedUser( - _params: github.UsersListPublicSshKeysForAuthenticatedUserParams + params: github.UsersListPublicSshKeysForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/keys') + .get('/user/keys', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55076,7 +71764,7 @@ OAuth app tokens and personal access tokens (classic) need the \`write:gpg_key\` ): Promise { return this.ky .post('/user/keys', { - json: params + json: pick(params, 'title', 'key') }) .json() } @@ -55094,10 +71782,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:public_key inputSchema: github.UsersGetPublicSshKeyForAuthenticatedUserParamsSchema }) async usersGetPublicSshKeyForAuthenticatedUser( - _params: github.UsersGetPublicSshKeyForAuthenticatedUserParams + params: github.UsersGetPublicSshKeyForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/keys/{key_id}') + .get(`/user/keys/${params.key_id}`) .json() } @@ -55114,10 +71802,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke inputSchema: github.UsersDeletePublicSshKeyForAuthenticatedUserParamsSchema }) async usersDeletePublicSshKeyForAuthenticatedUser( - _params: github.UsersDeletePublicSshKeyForAuthenticatedUserParams + params: github.UsersDeletePublicSshKeyForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/keys/{key_id}') + .delete(`/user/keys/${params.key_id}`) .json() } @@ -55130,10 +71818,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke inputSchema: github.AppsListSubscriptionsForAuthenticatedUserParamsSchema }) async appsListSubscriptionsForAuthenticatedUser( - _params: github.AppsListSubscriptionsForAuthenticatedUserParams + params: github.AppsListSubscriptionsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/marketplace_purchases') + .get('/user/marketplace_purchases', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55147,10 +71837,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke github.AppsListSubscriptionsForAuthenticatedUserStubbedParamsSchema }) async appsListSubscriptionsForAuthenticatedUserStubbed( - _params: github.AppsListSubscriptionsForAuthenticatedUserStubbedParams + params: github.AppsListSubscriptionsForAuthenticatedUserStubbedParams ): Promise { return this.ky - .get('/user/marketplace_purchases/stubbed') + .get('/user/marketplace_purchases/stubbed', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55167,7 +71859,9 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke ): Promise { return this.ky .get('/user/memberships/orgs', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'state', 'per_page', 'page') + ) }) .json() } @@ -55181,10 +71875,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke inputSchema: github.OrgsGetMembershipForAuthenticatedUserParamsSchema }) async orgsGetMembershipForAuthenticatedUser( - _params: github.OrgsGetMembershipForAuthenticatedUserParams + params: github.OrgsGetMembershipForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/memberships/orgs/{org}') + .get(`/user/memberships/orgs/${params.org}`) .json() } @@ -55200,8 +71894,8 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke params: github.OrgsUpdateMembershipForAuthenticatedUserParams ): Promise { return this.ky - .patch('/user/memberships/orgs/{org}', { - json: params + .patch(`/user/memberships/orgs/${params.org}`, { + json: pick(params, 'state') }) .json() } @@ -55215,10 +71909,12 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke inputSchema: github.MigrationsListForAuthenticatedUserParamsSchema }) async migrationsListForAuthenticatedUser( - _params: github.MigrationsListForAuthenticatedUserParams + params: github.MigrationsListForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/migrations') + .get('/user/migrations', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55235,7 +71931,18 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:public_ke ): Promise { return this.ky .post('/user/migrations', { - json: params + json: pick( + params, + 'lock_repositories', + 'exclude_metadata', + 'exclude_git_data', + 'exclude_attachments', + 'exclude_releases', + 'exclude_owner_projects', + 'org_metadata_only', + 'exclude', + 'repositories' + ) }) .json() } @@ -55266,8 +71973,8 @@ Once the migration has been \`exported\` you can [download the migration archive params: github.MigrationsGetStatusForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/migrations/{migration_id}', { - searchParams: sanitizeSearchParams(params) + .get(`/user/migrations/${params.migration_id}`, { + searchParams: sanitizeSearchParams(pick(params, 'exclude')) }) .json() } @@ -55321,10 +72028,10 @@ The archive will also contain an \`attachments\` directory that includes all att inputSchema: github.MigrationsGetArchiveForAuthenticatedUserParamsSchema }) async migrationsGetArchiveForAuthenticatedUser( - _params: github.MigrationsGetArchiveForAuthenticatedUserParams + params: github.MigrationsGetArchiveForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/migrations/{migration_id}/archive') + .get(`/user/migrations/${params.migration_id}/archive`) .json() } @@ -55337,10 +72044,10 @@ The archive will also contain an \`attachments\` directory that includes all att inputSchema: github.MigrationsDeleteArchiveForAuthenticatedUserParamsSchema }) async migrationsDeleteArchiveForAuthenticatedUser( - _params: github.MigrationsDeleteArchiveForAuthenticatedUserParams + params: github.MigrationsDeleteArchiveForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/migrations/{migration_id}/archive') + .delete(`/user/migrations/${params.migration_id}/archive`) .json() } @@ -55353,10 +72060,13 @@ The archive will also contain an \`attachments\` directory that includes all att inputSchema: github.MigrationsUnlockRepoForAuthenticatedUserParamsSchema }) async migrationsUnlockRepoForAuthenticatedUser( - _params: github.MigrationsUnlockRepoForAuthenticatedUserParams + params: github.MigrationsUnlockRepoForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/migrations/{migration_id}/repos/{repo_name}/lock') + .delete( + `/user/migrations/${params.migration_id}/repos/${params.repo_name}/lock`, + {} + ) .json() } @@ -55369,10 +72079,12 @@ The archive will also contain an \`attachments\` directory that includes all att inputSchema: github.MigrationsListReposForAuthenticatedUserParamsSchema }) async migrationsListReposForAuthenticatedUser( - _params: github.MigrationsListReposForAuthenticatedUserParams + params: github.MigrationsListReposForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/migrations/{migration_id}/repositories') + .get(`/user/migrations/${params.migration_id}/repositories`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55395,10 +72107,12 @@ For OAuth app tokens and personal access tokens (classic), this endpoint only li inputSchema: github.OrgsListForAuthenticatedUserParamsSchema }) async orgsListForAuthenticatedUser( - _params: github.OrgsListForAuthenticatedUserParams + params: github.OrgsListForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/orgs') + .get('/user/orgs', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55419,7 +72133,9 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` ): Promise { return this.ky .get('/user/packages', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick(params, 'package_type', 'visibility', 'page', 'per_page') + ) }) .json() } @@ -55437,10 +72153,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesGetPackageForAuthenticatedUserParamsSchema }) async packagesGetPackageForAuthenticatedUser( - _params: github.PackagesGetPackageForAuthenticatedUserParams + params: github.PackagesGetPackageForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/packages/{package_type}/{package_name}') + .get( + `/user/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -55457,10 +72176,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesDeletePackageForAuthenticatedUserParamsSchema }) async packagesDeletePackageForAuthenticatedUser( - _params: github.PackagesDeletePackageForAuthenticatedUserParams + params: github.PackagesDeletePackageForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/packages/{package_type}/{package_name}') + .delete( + `/user/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -55488,9 +72210,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesRestorePackageForAuthenticatedUserParams ): Promise { return this.ky - .post('/user/packages/{package_type}/{package_name}/restore', { - searchParams: sanitizeSearchParams(params) - }) + .post( + `/user/packages/${params.package_type}/${params.package_name}/restore`, + { + searchParams: sanitizeSearchParams(pick(params, 'token')) + } + ) .json() } @@ -55511,9 +72236,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParams ): Promise { return this.ky - .get('/user/packages/{package_type}/{package_name}/versions', { - searchParams: sanitizeSearchParams(params) - }) + .get( + `/user/packages/${params.package_type}/${params.package_name}/versions`, + { + searchParams: sanitizeSearchParams( + pick(params, 'page', 'per_page', 'state') + ) + } + ) .json() } @@ -55531,11 +72261,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesGetPackageVersionForAuthenticatedUserParamsSchema }) async packagesGetPackageVersionForAuthenticatedUser( - _params: github.PackagesGetPackageVersionForAuthenticatedUserParams + params: github.PackagesGetPackageVersionForAuthenticatedUserParams ): Promise { return this.ky .get( - '/user/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/user/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -55558,11 +72289,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesDeletePackageVersionForAuthenticatedUserParamsSchema }) async packagesDeletePackageVersionForAuthenticatedUser( - _params: github.PackagesDeletePackageVersionForAuthenticatedUserParams + params: github.PackagesDeletePackageVersionForAuthenticatedUserParams ): Promise { return this.ky .delete( - '/user/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/user/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -55589,11 +72321,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesRestorePackageVersionForAuthenticatedUserParamsSchema }) async packagesRestorePackageVersionForAuthenticatedUser( - _params: github.PackagesRestorePackageVersionForAuthenticatedUserParams + params: github.PackagesRestorePackageVersionForAuthenticatedUserParams ): Promise { return this.ky .post( - '/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore' + `/user/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}/restore`, + {} ) .json() } @@ -55615,7 +72348,7 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` ): Promise { return this.ky .post('/user/projects', { - json: params + json: pick(params, 'name', 'body') }) .json() } @@ -55637,10 +72370,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user:email\` sc inputSchema: github.UsersListPublicEmailsForAuthenticatedUserParamsSchema }) async usersListPublicEmailsForAuthenticatedUser( - _params: github.UsersListPublicEmailsForAuthenticatedUserParams + params: github.UsersListPublicEmailsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/public_emails') + .get('/user/public_emails', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55661,7 +72396,20 @@ The authenticated user has explicit permission to access repositories they own, ): Promise { return this.ky .get('/user/repos', { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams( + pick( + params, + 'visibility', + 'affiliation', + 'type', + 'sort', + 'direction', + 'per_page', + 'page', + 'since', + 'before' + ) + ) }) .json() } @@ -55683,7 +72431,32 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o ): Promise { return this.ky .post('/user/repos', { - json: params + json: pick( + params, + 'name', + 'description', + 'homepage', + 'private', + 'has_issues', + 'has_projects', + 'has_wiki', + 'has_discussions', + 'team_id', + 'auto_init', + 'gitignore_template', + 'license_template', + 'allow_squash_merge', + 'allow_merge_commit', + 'allow_rebase_merge', + 'allow_auto_merge', + 'delete_branch_on_merge', + 'squash_merge_commit_title', + 'squash_merge_commit_message', + 'merge_commit_title', + 'merge_commit_message', + 'has_downloads', + 'is_template' + ) }) .json() } @@ -55697,10 +72470,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposListInvitationsForAuthenticatedUserParamsSchema }) async reposListInvitationsForAuthenticatedUser( - _params: github.ReposListInvitationsForAuthenticatedUserParams + params: github.ReposListInvitationsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/repository_invitations') + .get('/user/repository_invitations', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55713,10 +72488,10 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposDeclineInvitationForAuthenticatedUserParamsSchema }) async reposDeclineInvitationForAuthenticatedUser( - _params: github.ReposDeclineInvitationForAuthenticatedUserParams + params: github.ReposDeclineInvitationForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/repository_invitations/{invitation_id}') + .delete(`/user/repository_invitations/${params.invitation_id}`) .json() } @@ -55729,10 +72504,10 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.ReposAcceptInvitationForAuthenticatedUserParamsSchema }) async reposAcceptInvitationForAuthenticatedUser( - _params: github.ReposAcceptInvitationForAuthenticatedUserParams + params: github.ReposAcceptInvitationForAuthenticatedUserParams ): Promise { return this.ky - .patch('/user/repository_invitations/{invitation_id}') + .patch(`/user/repository_invitations/${params.invitation_id}`) .json() } @@ -55745,10 +72520,12 @@ OAuth app tokens and personal access tokens (classic) need the \`public_repo\` o inputSchema: github.UsersListSocialAccountsForAuthenticatedUserParamsSchema }) async usersListSocialAccountsForAuthenticatedUser( - _params: github.UsersListSocialAccountsForAuthenticatedUserParams + params: github.UsersListSocialAccountsForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/social_accounts') + .get('/user/social_accounts', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55809,10 +72586,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:ssh_signin inputSchema: github.UsersListSshSigningKeysForAuthenticatedUserParamsSchema }) async usersListSshSigningKeysForAuthenticatedUser( - _params: github.UsersListSshSigningKeysForAuthenticatedUserParams + params: github.UsersListSshSigningKeysForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/ssh_signing_keys') + .get('/user/ssh_signing_keys', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55833,7 +72612,7 @@ OAuth app tokens and personal access tokens (classic) need the \`write:ssh_signi ): Promise { return this.ky .post('/user/ssh_signing_keys', { - json: params + json: pick(params, 'title', 'key') }) .json() } @@ -55851,10 +72630,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:ssh_signin inputSchema: github.UsersGetSshSigningKeyForAuthenticatedUserParamsSchema }) async usersGetSshSigningKeyForAuthenticatedUser( - _params: github.UsersGetSshSigningKeyForAuthenticatedUserParams + params: github.UsersGetSshSigningKeyForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/ssh_signing_keys/{ssh_signing_key_id}') + .get(`/user/ssh_signing_keys/${params.ssh_signing_key_id}`) .json() } @@ -55871,10 +72650,10 @@ OAuth app tokens and personal access tokens (classic) need the \`admin:ssh_signi inputSchema: github.UsersDeleteSshSigningKeyForAuthenticatedUserParamsSchema }) async usersDeleteSshSigningKeyForAuthenticatedUser( - _params: github.UsersDeleteSshSigningKeyForAuthenticatedUserParams + params: github.UsersDeleteSshSigningKeyForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/ssh_signing_keys/{ssh_signing_key_id}') + .delete(`/user/ssh_signing_keys/${params.ssh_signing_key_id}`) .json() } @@ -55895,10 +72674,14 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityListReposStarredByAuthenticatedUserParamsSchema }) async activityListReposStarredByAuthenticatedUser( - _params: github.ActivityListReposStarredByAuthenticatedUserParams + params: github.ActivityListReposStarredByAuthenticatedUserParams ): Promise { return this.ky - .get('/user/starred') + .get('/user/starred', { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'per_page', 'page') + ) + }) .json() } @@ -55912,10 +72695,10 @@ This endpoint supports the following custom media types. For more information, s github.ActivityCheckRepoIsStarredByAuthenticatedUserParamsSchema }) async activityCheckRepoIsStarredByAuthenticatedUser( - _params: github.ActivityCheckRepoIsStarredByAuthenticatedUserParams + params: github.ActivityCheckRepoIsStarredByAuthenticatedUserParams ): Promise { return this.ky - .get('/user/starred/{owner}/{repo}') + .get(`/user/starred/${params.owner}/${params.repo}`, {}) .json() } @@ -55928,10 +72711,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityStarRepoForAuthenticatedUserParamsSchema }) async activityStarRepoForAuthenticatedUser( - _params: github.ActivityStarRepoForAuthenticatedUserParams + params: github.ActivityStarRepoForAuthenticatedUserParams ): Promise { return this.ky - .put('/user/starred/{owner}/{repo}') + .put(`/user/starred/${params.owner}/${params.repo}`, {}) .json() } @@ -55944,10 +72727,10 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityUnstarRepoForAuthenticatedUserParamsSchema }) async activityUnstarRepoForAuthenticatedUser( - _params: github.ActivityUnstarRepoForAuthenticatedUserParams + params: github.ActivityUnstarRepoForAuthenticatedUserParams ): Promise { return this.ky - .delete('/user/starred/{owner}/{repo}') + .delete(`/user/starred/${params.owner}/${params.repo}`, {}) .json() } @@ -55960,10 +72743,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityListWatchedReposForAuthenticatedUserParamsSchema }) async activityListWatchedReposForAuthenticatedUser( - _params: github.ActivityListWatchedReposForAuthenticatedUserParams + params: github.ActivityListWatchedReposForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/subscriptions') + .get('/user/subscriptions', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -55986,10 +72771,12 @@ When using a fine-grained personal access token, the resource owner of the token inputSchema: github.TeamsListForAuthenticatedUserParamsSchema }) async teamsListForAuthenticatedUser( - _params: github.TeamsListForAuthenticatedUserParams + params: github.TeamsListForAuthenticatedUserParams ): Promise { return this.ky - .get('/user/teams') + .get('/user/teams', { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56014,9 +72801,11 @@ The Emails API enables you to list all of your email addresses, and toggle a pri inputSchema: github.UsersGetByIdParamsSchema }) async usersGetById( - _params: github.UsersGetByIdParams + params: github.UsersGetByIdParams ): Promise { - return this.ky.get('/user/{account_id}').json() + return this.ky + .get(`/user/${params.account_id}`) + .json() } /** @@ -56032,9 +72821,13 @@ Note: Pagination is powered exclusively by the \`since\` parameter. Use the [Lin inputSchema: github.UsersListParamsSchema }) async usersList( - _params: github.UsersListParams + params: github.UsersListParams ): Promise { - return this.ky.get('/users').json() + return this.ky + .get('/users', { + searchParams: sanitizeSearchParams(pick(params, 'since', 'per_page')) + }) + .json() } /** @@ -56058,10 +72851,10 @@ The Emails API enables you to list all of your email addresses, and toggle a pri inputSchema: github.UsersGetByUsernameParamsSchema }) async usersGetByUsername( - _params: github.UsersGetByUsernameParams + params: github.UsersGetByUsernameParams ): Promise { return this.ky - .get('/users/{username}') + .get(`/users/${params.username}`) .json() } @@ -56088,7 +72881,9 @@ The collection of attestations returned by this endpoint is filtered according t .get( `/users/${params.username}/attestations/${params.subject_digest}`, { - searchParams: sanitizeSearchParams(pick(params, 'predicate_type')) + searchParams: sanitizeSearchParams( + pick(params, 'per_page', 'before', 'after', 'predicate_type') + ) } ) .json() @@ -56108,10 +72903,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesListDockerMigrationConflictingPackagesForUserParamsSchema }) async packagesListDockerMigrationConflictingPackagesForUser( - _params: github.PackagesListDockerMigrationConflictingPackagesForUserParams + params: github.PackagesListDockerMigrationConflictingPackagesForUserParams ): Promise { return this.ky - .get('/users/{username}/docker/conflicts') + .get(`/users/${params.username}/docker/conflicts`) .json() } @@ -56130,10 +72925,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.ActivityListEventsForAuthenticatedUserParamsSchema }) async activityListEventsForAuthenticatedUser( - _params: github.ActivityListEventsForAuthenticatedUserParams + params: github.ActivityListEventsForAuthenticatedUserParams ): Promise { return this.ky - .get('/users/{username}/events') + .get(`/users/${params.username}/events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56152,10 +72949,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.ActivityListOrgEventsForAuthenticatedUserParamsSchema }) async activityListOrgEventsForAuthenticatedUser( - _params: github.ActivityListOrgEventsForAuthenticatedUserParams + params: github.ActivityListOrgEventsForAuthenticatedUserParams ): Promise { return this.ky - .get('/users/{username}/events/orgs/{org}') + .get(`/users/${params.username}/events/orgs/${params.org}`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56170,10 +72969,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.ActivityListPublicEventsForUserParamsSchema }) async activityListPublicEventsForUser( - _params: github.ActivityListPublicEventsForUserParams + params: github.ActivityListPublicEventsForUserParams ): Promise { return this.ky - .get('/users/{username}/events/public') + .get(`/users/${params.username}/events/public`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56186,10 +72987,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.UsersListFollowersForUserParamsSchema }) async usersListFollowersForUser( - _params: github.UsersListFollowersForUserParams + params: github.UsersListFollowersForUserParams ): Promise { return this.ky - .get('/users/{username}/followers') + .get(`/users/${params.username}/followers`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56202,10 +73005,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.UsersListFollowingForUserParamsSchema }) async usersListFollowingForUser( - _params: github.UsersListFollowingForUserParams + params: github.UsersListFollowingForUserParams ): Promise { return this.ky - .get('/users/{username}/following') + .get(`/users/${params.username}/following`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56221,7 +73026,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.UsersCheckFollowingForUserParams ): Promise { return this.ky - .get(`/users/${params.username}/following/${params.target_user}`) + .get( + `/users/${params.username}/following/${params.target_user}`, + {} + ) .json() } @@ -56234,10 +73042,14 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.GistsListForUserParamsSchema }) async gistsListForUser( - _params: github.GistsListForUserParams + params: github.GistsListForUserParams ): Promise { return this.ky - .get('/users/{username}/gists') + .get(`/users/${params.username}/gists`, { + searchParams: sanitizeSearchParams( + pick(params, 'since', 'per_page', 'page') + ) + }) .json() } @@ -56250,10 +73062,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.UsersListGpgKeysForUserParamsSchema }) async usersListGpgKeysForUser( - _params: github.UsersListGpgKeysForUserParams + params: github.UsersListGpgKeysForUserParams ): Promise { return this.ky - .get('/users/{username}/gpg_keys') + .get(`/users/${params.username}/gpg_keys`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56277,8 +73091,10 @@ OAuth app tokens and personal access tokens (classic) need the \`repo\` scope to params: github.UsersGetContextForUserParams ): Promise { return this.ky - .get('/users/{username}/hovercard', { - searchParams: sanitizeSearchParams(params) + .get(`/users/${params.username}/hovercard`, { + searchParams: sanitizeSearchParams( + pick(params, 'subject_type', 'subject_id') + ) }) .json() } @@ -56296,10 +73112,10 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.AppsGetUserInstallationParamsSchema }) async appsGetUserInstallation( - _params: github.AppsGetUserInstallationParams + params: github.AppsGetUserInstallationParams ): Promise { return this.ky - .get('/users/{username}/installation') + .get(`/users/${params.username}/installation`) .json() } @@ -56312,10 +73128,12 @@ You must use a [JWT](https://docs.github.com/apps/building-github-apps/authentic inputSchema: github.UsersListPublicKeysForUserParamsSchema }) async usersListPublicKeysForUser( - _params: github.UsersListPublicKeysForUserParams + params: github.UsersListPublicKeysForUserParams ): Promise { return this.ky - .get('/users/{username}/keys') + .get(`/users/${params.username}/keys`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56332,10 +73150,12 @@ This method only lists _public_ memberships, regardless of authentication. If yo inputSchema: github.OrgsListForUserParamsSchema }) async orgsListForUser( - _params: github.OrgsListForUserParams + params: github.OrgsListForUserParams ): Promise { return this.ky - .get('/users/{username}/orgs') + .get(`/users/${params.username}/orgs`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56355,8 +73175,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.PackagesListPackagesForUserParams ): Promise { return this.ky - .get('/users/{username}/packages', { - searchParams: sanitizeSearchParams(params) + .get(`/users/${params.username}/packages`, { + searchParams: sanitizeSearchParams( + pick(params, 'package_type', 'visibility', 'page', 'per_page') + ) }) .json() } @@ -56374,10 +73196,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesGetPackageForUserParamsSchema }) async packagesGetPackageForUser( - _params: github.PackagesGetPackageForUserParams + params: github.PackagesGetPackageForUserParams ): Promise { return this.ky - .get('/users/{username}/packages/{package_type}/{package_name}') + .get( + `/users/${params.username}/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -56398,10 +73223,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesDeletePackageForUserParamsSchema }) async packagesDeletePackageForUser( - _params: github.PackagesDeletePackageForUserParams + params: github.PackagesDeletePackageForUserParams ): Promise { return this.ky - .delete('/users/{username}/packages/{package_type}/{package_name}') + .delete( + `/users/${params.username}/packages/${params.package_type}/${params.package_name}`, + {} + ) .json() } @@ -56434,9 +73262,9 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` ): Promise { return this.ky .post( - '/users/{username}/packages/{package_type}/{package_name}/restore', + `/users/${params.username}/packages/${params.package_type}/${params.package_name}/restore`, { - searchParams: sanitizeSearchParams(params) + searchParams: sanitizeSearchParams(pick(params, 'token')) } ) .json() @@ -56456,10 +73284,13 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` github.PackagesGetAllPackageVersionsForPackageOwnedByUserParamsSchema }) async packagesGetAllPackageVersionsForPackageOwnedByUser( - _params: github.PackagesGetAllPackageVersionsForPackageOwnedByUserParams + params: github.PackagesGetAllPackageVersionsForPackageOwnedByUserParams ): Promise { return this.ky - .get('/users/{username}/packages/{package_type}/{package_name}/versions') + .get( + `/users/${params.username}/packages/${params.package_type}/${params.package_name}/versions`, + {} + ) .json() } @@ -56476,11 +73307,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesGetPackageVersionForUserParamsSchema }) async packagesGetPackageVersionForUser( - _params: github.PackagesGetPackageVersionForUserParams + params: github.PackagesGetPackageVersionForUserParams ): Promise { return this.ky .get( - '/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/users/${params.username}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -56502,11 +73334,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesDeletePackageVersionForUserParamsSchema }) async packagesDeletePackageVersionForUser( - _params: github.PackagesDeletePackageVersionForUserParams + params: github.PackagesDeletePackageVersionForUserParams ): Promise { return this.ky .delete( - '/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}' + `/users/${params.username}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}`, + {} ) .json() } @@ -56536,11 +73369,12 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` inputSchema: github.PackagesRestorePackageVersionForUserParamsSchema }) async packagesRestorePackageVersionForUser( - _params: github.PackagesRestorePackageVersionForUserParams + params: github.PackagesRestorePackageVersionForUserParams ): Promise { return this.ky .post( - '/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore' + `/users/${params.username}/packages/${params.package_type}/${params.package_name}/versions/${params.package_version_id}/restore`, + {} ) .json() } @@ -56561,8 +73395,10 @@ OAuth app tokens and personal access tokens (classic) need the \`read:packages\` params: github.ProjectsListForUserParams ): Promise { return this.ky - .get('/users/{username}/projects', { - searchParams: sanitizeSearchParams(params) + .get(`/users/${params.username}/projects`, { + searchParams: sanitizeSearchParams( + pick(params, 'state', 'per_page', 'page') + ) }) .json() } @@ -56584,10 +73420,12 @@ given user, you will see private events. Otherwise, you'll only see public event inputSchema: github.ActivityListReceivedEventsForUserParamsSchema }) async activityListReceivedEventsForUser( - _params: github.ActivityListReceivedEventsForUserParams + params: github.ActivityListReceivedEventsForUserParams ): Promise { return this.ky - .get('/users/{username}/received_events') + .get(`/users/${params.username}/received_events`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56602,10 +73440,12 @@ given user, you will see private events. Otherwise, you'll only see public event inputSchema: github.ActivityListReceivedPublicEventsForUserParamsSchema }) async activityListReceivedPublicEventsForUser( - _params: github.ActivityListReceivedPublicEventsForUserParams + params: github.ActivityListReceivedPublicEventsForUserParams ): Promise { return this.ky - .get('/users/{username}/received_events/public') + .get(`/users/${params.username}/received_events/public`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56621,8 +73461,10 @@ given user, you will see private events. Otherwise, you'll only see public event params: github.ReposListForUserParams ): Promise { return this.ky - .get('/users/{username}/repos', { - searchParams: sanitizeSearchParams(params) + .get(`/users/${params.username}/repos`, { + searchParams: sanitizeSearchParams( + pick(params, 'type', 'sort', 'direction', 'per_page', 'page') + ) }) .json() } @@ -56644,10 +73486,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user\` scope to inputSchema: github.BillingGetGithubActionsBillingUserParamsSchema }) async billingGetGithubActionsBillingUser( - _params: github.BillingGetGithubActionsBillingUserParams + params: github.BillingGetGithubActionsBillingUserParams ): Promise { return this.ky - .get('/users/{username}/settings/billing/actions') + .get(`/users/${params.username}/settings/billing/actions`) .json() } @@ -56668,10 +73510,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user\` scope to inputSchema: github.BillingGetGithubPackagesBillingUserParamsSchema }) async billingGetGithubPackagesBillingUser( - _params: github.BillingGetGithubPackagesBillingUserParams + params: github.BillingGetGithubPackagesBillingUserParams ): Promise { return this.ky - .get('/users/{username}/settings/billing/packages') + .get(`/users/${params.username}/settings/billing/packages`) .json() } @@ -56692,10 +73534,10 @@ OAuth app tokens and personal access tokens (classic) need the \`user\` scope to inputSchema: github.BillingGetSharedStorageBillingUserParamsSchema }) async billingGetSharedStorageBillingUser( - _params: github.BillingGetSharedStorageBillingUserParams + params: github.BillingGetSharedStorageBillingUserParams ): Promise { return this.ky - .get('/users/{username}/settings/billing/shared-storage') + .get(`/users/${params.username}/settings/billing/shared-storage`) .json() } @@ -56708,10 +73550,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user\` scope to inputSchema: github.UsersListSocialAccountsForUserParamsSchema }) async usersListSocialAccountsForUser( - _params: github.UsersListSocialAccountsForUserParams + params: github.UsersListSocialAccountsForUserParams ): Promise { return this.ky - .get('/users/{username}/social_accounts') + .get(`/users/${params.username}/social_accounts`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56724,10 +73568,12 @@ OAuth app tokens and personal access tokens (classic) need the \`user\` scope to inputSchema: github.UsersListSshSigningKeysForUserParamsSchema }) async usersListSshSigningKeysForUser( - _params: github.UsersListSshSigningKeysForUserParams + params: github.UsersListSshSigningKeysForUserParams ): Promise { return this.ky - .get('/users/{username}/ssh_signing_keys') + .get(`/users/${params.username}/ssh_signing_keys`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } @@ -56748,10 +73594,14 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityListReposStarredByUserParamsSchema }) async activityListReposStarredByUser( - _params: github.ActivityListReposStarredByUserParams + params: github.ActivityListReposStarredByUserParams ): Promise { return this.ky - .get('/users/{username}/starred') + .get(`/users/${params.username}/starred`, { + searchParams: sanitizeSearchParams( + pick(params, 'sort', 'direction', 'per_page', 'page') + ) + }) .json() } @@ -56764,10 +73614,12 @@ This endpoint supports the following custom media types. For more information, s inputSchema: github.ActivityListReposWatchedByUserParamsSchema }) async activityListReposWatchedByUser( - _params: github.ActivityListReposWatchedByUserParams + params: github.ActivityListReposWatchedByUserParams ): Promise { return this.ky - .get('/users/{username}/subscriptions') + .get(`/users/${params.username}/subscriptions`, { + searchParams: sanitizeSearchParams(pick(params, 'per_page', 'page')) + }) .json() } diff --git a/packages/openapi-to-ts/readme.md b/packages/openapi-to-ts/readme.md index ac6750c..90d5c45 100644 --- a/packages/openapi-to-ts/readme.md +++ b/packages/openapi-to-ts/readme.md @@ -60,6 +60,7 @@ Some things you may want to tweak: - Fix github example issue with `nullable()` zod schema parameter - Fix github `json-schema-to-zod` example issue with string enum given default value `true` as a non-string boolean - Fix github `gists/get-revision` missing path parameter because of ref +- Fix github `activity_star_repo_for_authenticated_user` path seems incorrect ## License diff --git a/packages/openapi-to-ts/src/generate-ts-from-openapi.ts b/packages/openapi-to-ts/src/generate-ts-from-openapi.ts index d56d23d..5e8375d 100644 --- a/packages/openapi-to-ts/src/generate-ts-from-openapi.ts +++ b/packages/openapi-to-ts/src/generate-ts-from-openapi.ts @@ -199,7 +199,7 @@ export async function generateTSFromOpenAPI({ const operationResponseJSONSchemas: Record = {} - const operationParamsSources: Record = {} + const operationParamsSources: Record> = {} let operationParamsUnionSource: string | undefined // eslint-disable-next-line unicorn/consistent-function-scoping @@ -212,15 +212,21 @@ export async function generateTSFromOpenAPI({ const derefed = dereference(schema, parser.$refs, componentsToProcess) if (derefed?.properties) { for (const key of Object.keys(derefed.properties)) { - assert( - !operationParamsSources[key], - `Duplicate params key ${key} for operation ${operationName} from ${operationParamsSources[key]} and ${source}` - ) - operationParamsSources[key] = source + // assert( + // !operationParamsSources[key], + // `Duplicate params key ${key} for operation ${operationName} from ${operationParamsSources[key]} and ${source}` + // ) + operationParamsSources[key] = new Set([ + ...(operationParamsSources[key] || []), + source + ]) } } else if (derefed?.anyOf || derefed?.oneOf) { const componentName = getComponentDisplayName(schema.$ref) - operationParamsSources[componentName] = source + operationParamsSources[componentName] = new Set([ + ...(operationParamsSources[componentName] || []), + source + ]) // TODO: handle this case assert( @@ -237,11 +243,14 @@ export async function generateTSFromOpenAPI({ } for (const key of Object.keys(schema.properties)) { - assert( - !operationParamsSources[key], - `Duplicate params key ${key} for operation ${operationName} from ${operationParamsSources[key]} and ${source}` - ) - operationParamsSources[key] = source + // assert( + // !operationParamsSources[key], + // `Duplicate params key "${key}" for operation "${operationName}" from "${operationParamsSources[key]}" and "${source}"` + // ) + operationParamsSources[key] = new Set([ + ...(operationParamsSources[key] || []), + source + ]) } } @@ -255,7 +264,10 @@ export async function generateTSFromOpenAPI({ if (schema.anyOf || schema.oneOf) { operationParamsJSONSchema.anyOf = schema.anyOf operationParamsJSONSchema.oneOf = schema.oneOf - operationParamsSources[schema.title || '__union__'] = source + operationParamsSources[schema.title || '__union__'] = new Set([ + ...(operationParamsSources[schema.title || '__union__'] || []), + source + ]) // TODO: handle this case assert( @@ -311,7 +323,10 @@ export async function generateTSFromOpenAPI({ } if (operation.parameters) { - const params = convertParametersToJSONSchema(operation.parameters) + const parameters = operation.parameters.map((param) => + dereference(param, parser.$refs, componentsToProcess) + ) + const params = convertParametersToJSONSchema(parameters) if (params.body) { addJSONSchemaParams(params.body, 'body') @@ -458,28 +473,28 @@ export async function generateTSFromOpenAPI({ // ) // ) - const queryParams = Object.keys(operationParamsSources).filter( - (key) => operationParamsSources[key] === 'query' + const queryParams = Object.keys(operationParamsSources).filter((key) => + operationParamsSources[key]?.has('query') ) const hasQueryParams = queryParams.length > 0 - const bodyParams = Object.keys(operationParamsSources).filter( - (key) => operationParamsSources[key] === 'body' + const bodyParams = Object.keys(operationParamsSources).filter((key) => + operationParamsSources[key]?.has('body') ) const hasBodyParams = bodyParams.length > 0 - const formDataParams = Object.keys(operationParamsSources).filter( - (key) => operationParamsSources[key] === 'formData' + const formDataParams = Object.keys(operationParamsSources).filter((key) => + operationParamsSources[key]?.has('formData') ) const hasFormDataParams = formDataParams.length > 0 - const pathParams = Object.keys(operationParamsSources).filter( - (key) => operationParamsSources[key] === 'path' + const pathParams = Object.keys(operationParamsSources).filter((key) => + operationParamsSources[key]?.has('path') ) const hasPathParams = pathParams.length > 0 - const headersParams = Object.keys(operationParamsSources).filter( - (key) => operationParamsSources[key] === 'headers' + const headersParams = Object.keys(operationParamsSources).filter((key) => + operationParamsSources[key]?.has('headers') ) const hasHeadersParams = headersParams.length > 0 diff --git a/packages/openapi-to-ts/src/utils.ts b/packages/openapi-to-ts/src/utils.ts index d3d4e25..bf62c67 100644 --- a/packages/openapi-to-ts/src/utils.ts +++ b/packages/openapi-to-ts/src/utils.ts @@ -123,6 +123,10 @@ function createParserOverride({ withJsdocs: boolean }): ParserOverride { const jsonSchemaToZodParserOverride: ParserOverride = (schema, _refs) => { + if ('nullable' in schema && schema.nullable) { + delete schema.nullable + } + if ('$ref' in schema) { const ref = schema.$ref as string assert(ref, `Invalid schema: $ref not found for ${schema.$ref}`)