diff --git a/cache/api.github.com.json b/cache/api.github.com.json index 42d2332..cb36919 100644 --- a/cache/api.github.com.json +++ b/cache/api.github.com.json @@ -129,6 +129,10 @@ "name": "hosted-compute", "description": "Manage hosted compute networking resources." }, + { + "name": "credentials", + "description": "Revoke compromised or leaked GitHub credentials." + }, { "name": "campaigns", "description": "Endpoints to manage campaigns via the REST API." @@ -21301,6 +21305,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -40961,7 +40973,7 @@ } }, "secret-scanning-alert-resolution-comment": { - "description": "An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.", "type": ["string", "null"] }, "secret-scanning-location-commit": { @@ -43322,6 +43334,64 @@ }, "required": ["key", "id"] }, + "billing-usage-report-user": { + "type": "object", + "properties": { + "usageItems": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Date of the usage line item." + }, + "product": { "type": "string", "description": "Product name." }, + "sku": { "type": "string", "description": "SKU name." }, + "quantity": { + "type": "integer", + "description": "Quantity of the usage line item." + }, + "unitType": { + "type": "string", + "description": "Unit type of the usage line item." + }, + "pricePerUnit": { + "type": "number", + "description": "Price per unit of the usage line item." + }, + "grossAmount": { + "type": "number", + "description": "Gross amount of the usage line item." + }, + "discountAmount": { + "type": "number", + "description": "Discount amount of the usage line item." + }, + "netAmount": { + "type": "number", + "description": "Net amount of the usage line item." + }, + "repositoryName": { + "type": "string", + "description": "Name of the repository." + } + }, + "required": [ + "date", + "product", + "sku", + "quantity", + "unitType", + "pricePerUnit", + "grossAmount", + "discountAmount", + "netAmount" + ] + } + } + } + }, "enterprise-webhooks": { "title": "Enterprise", "description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that's part of an enterprise account. For more information,\nsee \"[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts).\"", @@ -62231,7 +62301,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -67099,31 +67170,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -127348,6 +127398,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -154078,6 +154129,24 @@ } ] }, + "billing-usage-report-user": { + "value": { + "usageItems": [ + { + "date": "2023-08-01", + "product": "Actions", + "sku": "Actions Linux", + "quantity": 100, + "unitType": "minutes", + "pricePerUnit": 0.008, + "grossAmount": 0.8, + "discountAmount": 0, + "netAmount": 0.8, + "repositoryName": "user/example" + } + ] + } + }, "check-run-completed": { "value": { "action": "completed", @@ -155830,6 +155899,20 @@ "description": "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.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -155875,7 +155958,7 @@ "secret-scanning-alert-secret-type": { "name": "secret_type", "in": "query", - "description": "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.", + "description": "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/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", "required": false, "schema": { "type": "string" } }, @@ -157086,6 +157169,14 @@ } } }, + "internal_error": { + "description": "Internal Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, "conflict": { "description": "Conflict", "content": { @@ -157153,14 +157244,6 @@ } } }, - "internal_error": { - "description": "Internal Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/basic-error" } - } - } - }, "actions_runner_jitconfig": { "description": "Response", "content": { @@ -157290,6 +157373,14 @@ } } }, + "unprocessable_analysis": { + "description": "Response if analysis could not be processed", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, "found": { "description": "Found" }, "code_scanning_conflict": { "description": "Response if there is already a validation run in progress with a different default setup configuration", @@ -157322,6 +157413,21 @@ "schema": { "$ref": "#/components/schemas/basic-error" } } } + }, + "billing_usage_report_user": { + "description": "Response when getting a billing usage report", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/billing-usage-report-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/billing-usage-report-user" + } + } + } + } } }, "headers": { diff --git a/cache/ghec.json b/cache/ghec.json index d351b4c..b9d5461 100644 --- a/cache/ghec.json +++ b/cache/ghec.json @@ -139,6 +139,10 @@ { "name": "campaigns", "description": "Endpoints to manage campaigns via the REST API." + }, + { + "name": "credentials", + "description": "Revoke compromised or leaked GitHub credentials." } ], "servers": [{ "url": "https://api.github.com" }], @@ -22583,6 +22587,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -31403,6 +31415,137 @@ }, "required": ["key_id", "key"] }, + "secret-scanning-dismissal-request": { + "title": "Secret scanning alert dismissal request", + "description": "A dismissal request made by a user asking to close a secret scanning alert in this repository.", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the dismissal request." + }, + "number": { + "type": "integer", + "description": "The number uniquely identifying the dismissal request within its repository." + }, + "repository": { + "type": "object", + "description": "The repository the dismissal request is for.", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the repository the dismissal request is for." + }, + "name": { + "type": "string", + "description": "The name of the repository the dismissal request is for." + }, + "full_name": { + "type": "string", + "description": "The full name of the repository the dismissal request is for." + } + } + }, + "organization": { + "type": "object", + "description": "The organization associated with the repository the dismissal request is for.", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the organization." + }, + "name": { + "type": "string", + "description": "The name of the organization." + } + } + }, + "requester": { + "type": "object", + "description": "The user who requested the dismissal.", + "properties": { + "actor_id": { + "type": "integer", + "description": "The ID of the GitHub user who requested the dismissal." + }, + "actor_name": { + "type": "string", + "description": "The name of the GitHub user who requested the dismissal." + } + } + }, + "request_type": { + "type": "string", + "description": "The type of request." + }, + "data": { + "type": ["array", "null"], + "description": "Data describing the secret alert that is being requested to be dismissed.", + "items": { + "type": "object", + "properties": { + "secret_type": { + "type": "string", + "description": "The type of secret that secret scanning detected." + }, + "alert_number": { + "type": "string", + "description": "The number of the secret scanning alert that was detected." + }, + "reason": { + "type": "string", + "description": "The reason the user provided for requesting the dismissal.", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + } + } + } + }, + "resource_identifier": { + "type": "string", + "description": "The number of the secret scanning alert that was detected.", + "examples": [1234] + }, + "status": { + "type": "string", + "description": "The status of the dismissal request.", + "enum": ["pending", "denied", "approved", "cancelled", "expired"] + }, + "requester_comment": { + "type": ["string", "null"], + "description": "The comment the requester provided when creating the dismissal request." + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "The date and time the dismissal request will expire." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "The date and time the dismissal request was created." + }, + "responses": { + "type": ["array", "null"], + "description": "The responses to the dismissal request.", + "items": { "$ref": "#/components/schemas/bypass-response" } + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1" + ] + }, + "html_url": { + "type": "string", + "description": "The URL to view the dismissal request in a browser.", + "format": "uri", + "examples": [ + "https://github.com/octo-org/smile/security/secret-scanning/17" + ] + } + } + }, "package": { "title": "Package", "description": "A software package", @@ -44048,7 +44191,7 @@ } }, "secret-scanning-alert-resolution-comment": { - "description": "An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.", "type": ["string", "null"] }, "secret-scanning-location-commit": { @@ -47107,6 +47250,64 @@ }, "required": ["key", "id"] }, + "billing-usage-report-user": { + "type": "object", + "properties": { + "usageItems": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Date of the usage line item." + }, + "product": { "type": "string", "description": "Product name." }, + "sku": { "type": "string", "description": "SKU name." }, + "quantity": { + "type": "integer", + "description": "Quantity of the usage line item." + }, + "unitType": { + "type": "string", + "description": "Unit type of the usage line item." + }, + "pricePerUnit": { + "type": "number", + "description": "Price per unit of the usage line item." + }, + "grossAmount": { + "type": "number", + "description": "Gross amount of the usage line item." + }, + "discountAmount": { + "type": "number", + "description": "Discount amount of the usage line item." + }, + "netAmount": { + "type": "number", + "description": "Net amount of the usage line item." + }, + "repositoryName": { + "type": "string", + "description": "Name of the repository." + } + }, + "required": [ + "date", + "product", + "sku", + "quantity", + "unitType", + "pricePerUnit", + "grossAmount", + "discountAmount", + "netAmount" + ] + } + } + } + }, "enterprise-webhooks": { "title": "Enterprise", "description": "An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that's part of an enterprise account. For more information,\nsee \"[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts).\"", @@ -48169,6 +48370,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -66451,7 +66657,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -71319,31 +71526,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -131568,6 +131754,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -138532,6 +138719,72 @@ "selected_repositories_url": "https://api.github.com/orgs/octo-org/dependabot/secrets/NPM_TOKEN/repositories" } }, + "secret-scanning-dismissal-request-items": { + "value": [ + { + "id": 21, + "number": 42, + "repository": { + "id": 1, + "name": "smile", + "full_name": "octo-org/smile" + }, + "organization": { "id": 1, "name": "octo-org" }, + "requester": { "actor_id": 12, "actor_name": "monalisa" }, + "request_type": "secret_scanning_closure", + "data": [ + { + "secret_type": "adafruit_io_key", + "alert_number": 17, + "reason": "false_positive" + } + ], + "resource_identifier": 17, + "status": "denied", + "requester_comment": "Test token used in the readme as an example", + "expires_at": "2024-07-08T08:43:03Z", + "created_at": "2024-07-01T08:43:03Z", + "responses": [ + { + "id": 42, + "reviewer": { "actor_id": 4, "actor_name": "octocat" }, + "status": "denied", + "created_at": "2024-07-02T08:43:04Z" + } + ], + "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21", + "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17" + }, + { + "id": 22, + "number": 43, + "repository": { + "id": 1, + "name": "smile", + "full_name": "octo-org/smile" + }, + "organization": { "id": 1, "name": "octo-org" }, + "requester": { "actor_id": 12, "actor_name": "monalisa" }, + "request_type": "secret_scanning_closure", + "data": [{ "secret_type": "adafruit_io_key", "alert_number": 19 }], + "resource_identifier": 19, + "status": "denied", + "requester_comment": "Test token used in the readme as an example", + "expires_at": "2024-07-08T08:43:03Z", + "created_at": "2024-07-01T08:43:03Z", + "responses": [ + { + "id": 46, + "reviewer": { "actor_id": 4, "actor_name": "octocat" }, + "status": "approved", + "created_at": "2024-07-02T08:43:04Z" + } + ], + "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/22", + "html_url": "https://github.com/octo-org/smile/security/secret-scanning/19" + } + ] + }, "packages-for-org": { "value": [ { @@ -149404,6 +149657,42 @@ "log_url": "https://example.com/deployment/42/output" } }, + "secret-scanning-dismissal-request-item": { + "value": { + "id": 21, + "number": 42, + "repository": { + "id": 1, + "name": "smile", + "full_name": "octo-org/smile" + }, + "organization": { "id": 1, "name": "octo-org" }, + "requester": { "actor_id": 12, "actor_name": "monalisa" }, + "request_type": "secret_scanning_closure", + "data": [ + { + "secret_type": "adafruit_io_key", + "alert_number": 17, + "reason": "false_positive" + } + ], + "resource_identifier": 17, + "status": "denied", + "requester_comment": "Test token used in the readme as an example", + "expires_at": "2024-07-08T08:43:03Z", + "created_at": "2024-07-01T08:43:03Z", + "responses": [ + { + "id": 42, + "reviewer": { "actor_id": 4, "actor_name": "octocat" }, + "status": "denied", + "created_at": "2024-07-02T08:43:04Z" + } + ], + "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/21", + "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17" + } + }, "environments": { "value": { "total_count": 1, @@ -159470,6 +159759,24 @@ } ] }, + "billing-usage-report-user": { + "value": { + "usageItems": [ + { + "date": "2023-08-01", + "product": "Actions", + "sku": "Actions Linux", + "quantity": 100, + "unitType": "minutes", + "pricePerUnit": 0.008, + "grossAmount": 0.8, + "discountAmount": 0, + "netAmount": 0.8, + "repositoryName": "user/example" + } + ] + } + }, "check-run-completed": { "value": { "action": "completed", @@ -161382,6 +161689,20 @@ "description": "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.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -161417,6 +161738,13 @@ "required": false, "schema": { "type": "integer", "minimum": 1, "maximum": 100 } }, + "username": { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, "network-configuration-id": { "name": "network_configuration_id", "description": "Unique identifier of the hosted compute network configuration.", @@ -161455,7 +161783,7 @@ "secret-scanning-alert-secret-type": { "name": "secret_type", "in": "query", - "description": "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//enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", + "description": "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.", "required": false, "schema": { "type": "string" } }, @@ -161501,7 +161829,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security feature to get GitHub Advanced Security active committers for.", + "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", "required": false, "schema": { "type": "string", @@ -161710,13 +162038,6 @@ "required": false, "schema": { "type": "string" } }, - "username": { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, "repository-name-in-query": { "name": "repository_name", "description": "The name of the repository to filter on.", @@ -161730,6 +162051,25 @@ "required": true, "schema": { "type": "integer" } }, + "dismissal-request-status": { + "name": "request_status", + "description": "The status of the dismissal request to filter on. When specified, only requests with this status will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "completed", + "cancelled", + "approved", + "expired", + "denied", + "open", + "all" + ], + "default": "all" + } + }, "group-id": { "name": "group_id", "description": "The unique identifier of the group.", @@ -162703,6 +163043,14 @@ } } }, + "internal_error": { + "description": "Internal Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, "actions_runner_jitconfig": { "description": "Response", "content": { @@ -162776,14 +163124,6 @@ } } }, - "internal_error": { - "description": "Internal Error", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/basic-error" } - } - } - }, "service_unavailable": { "description": "Service unavailable", "content": { @@ -162969,6 +163309,14 @@ } } }, + "unprocessable_analysis": { + "description": "Response if analysis could not be processed", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, "found": { "description": "Found" }, "code_scanning_conflict": { "description": "Response if there is already a validation run in progress with a different default setup configuration", @@ -163072,6 +163420,21 @@ "schema": { "$ref": "#/components/schemas/scim-error" } } } + }, + "billing_usage_report_user": { + "description": "Response when getting a billing usage report", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/billing-usage-report-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/billing-usage-report-user" + } + } + } + } } }, "headers": { diff --git a/cache/ghes-3.13.json b/cache/ghes-3.13.json index d579df9..646ea25 100644 --- a/cache/ghes-3.13.json +++ b/cache/ghes-3.13.json @@ -22749,6 +22749,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -60107,7 +60115,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -64975,31 +64984,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -121133,6 +121121,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -145588,6 +145577,20 @@ "description": "A comma-separated list of package names. If specified, only alerts for these packages will be returned.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -145662,16 +145665,6 @@ "required": false, "schema": { "type": "string" } }, - "advanced-security-product": { - "name": "advanced_security_product", - "in": "query", - "description": "The security feature to get GitHub Advanced Security active committers for.", - "required": false, - "schema": { - "type": "string", - "enum": ["code_security", "secret_protection"] - } - }, "enterprise-security-product": { "name": "security_product", "in": "path", diff --git a/cache/ghes-3.14.json b/cache/ghes-3.14.json index 6cc3b6f..b3f7c76 100644 --- a/cache/ghes-3.14.json +++ b/cache/ghes-3.14.json @@ -23124,6 +23124,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -43399,6 +43407,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -61352,7 +61365,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -66220,31 +66234,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -122413,6 +122406,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -146977,6 +146971,20 @@ "description": "A comma-separated list of package names. If specified, only alerts for these packages will be returned.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -147051,16 +147059,6 @@ "required": false, "schema": { "type": "string" } }, - "advanced-security-product": { - "name": "advanced_security_product", - "in": "query", - "description": "The security feature to get GitHub Advanced Security active committers for.", - "required": false, - "schema": { - "type": "string", - "enum": ["code_security", "secret_protection"] - } - }, "enterprise-security-product": { "name": "security_product", "in": "path", diff --git a/cache/ghes-3.15.json b/cache/ghes-3.15.json index 10ef6fe..58ac0a6 100644 --- a/cache/ghes-3.15.json +++ b/cache/ghes-3.15.json @@ -23134,6 +23134,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -43473,6 +43481,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -61441,7 +61454,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -66309,31 +66323,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -122502,6 +122495,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -147168,6 +147162,20 @@ "description": "A comma-separated list of package names. If specified, only alerts for these packages will be returned.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -147213,7 +147221,7 @@ "secret-scanning-alert-secret-type": { "name": "secret_type", "in": "query", - "description": "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-server@3.15/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", + "description": "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-server@3.15/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", "required": false, "schema": { "type": "string" } }, @@ -147242,16 +147250,6 @@ "required": false, "schema": { "type": "string" } }, - "advanced-security-product": { - "name": "advanced_security_product", - "in": "query", - "description": "The security feature to get GitHub Advanced Security active committers for.", - "required": false, - "schema": { - "type": "string", - "enum": ["code_security", "secret_protection"] - } - }, "enterprise-security-product": { "name": "security_product", "in": "path", diff --git a/cache/ghes-3.16.json b/cache/ghes-3.16.json index 18f441e..93ff021 100644 --- a/cache/ghes-3.16.json +++ b/cache/ghes-3.16.json @@ -23594,6 +23594,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -41231,7 +41239,7 @@ } }, "secret-scanning-alert-resolution-comment": { - "description": "An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + "description": "An optional comment when closing or reopening an alert. Cannot be updated or deleted.", "type": ["string", "null"] }, "secret-scanning-location-commit": { @@ -44465,6 +44473,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -62457,7 +62470,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -67325,31 +67339,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", @@ -123593,6 +123586,7 @@ "cookie": "https://github.githubassets.com/images/icons/emoji/unicode/1f36a.png?v8", "cool": "https://github.githubassets.com/images/icons/emoji/unicode/1f192.png?v8", "cop": "https://github.githubassets.com/images/icons/emoji/unicode/1f46e.png?v8", + "copilot": "https://github.githubassets.com/images/icons/emoji/copilot.png?v8", "copyright": "https://github.githubassets.com/images/icons/emoji/unicode/00a9.png?v8", "corn": "https://github.githubassets.com/images/icons/emoji/unicode/1f33d.png?v8", "costa_rica": "https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f7.png?v8", @@ -148522,6 +148516,20 @@ "description": "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.", "schema": { "type": "string" } }, + "dependabot-alert-comma-separated-has": { + "name": "has", + "in": "query", + "description": "Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.\nMultiple `has` filters can be passed to filter for alerts that have all of the values. Currently, only `patch` is supported.", + "schema": { + "oneOf": [ + { "type": "string" }, + { + "type": "array", + "items": { "type": "string", "enum": ["patch"] } + } + ] + } + }, "dependabot-alert-scope": { "name": "scope", "in": "query", @@ -148567,7 +148575,7 @@ "secret-scanning-alert-secret-type": { "name": "secret_type", "in": "query", - "description": "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-server@3.16/enterprise-cloud@latest/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", + "description": "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-server@3.16/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)\" for a complete list of secret types.", "required": false, "schema": { "type": "string" } }, @@ -148610,16 +148618,6 @@ "required": false, "schema": { "type": "boolean", "default": false } }, - "advanced-security-product": { - "name": "advanced_security_product", - "in": "query", - "description": "The security feature to get GitHub Advanced Security active committers for.", - "required": false, - "schema": { - "type": "string", - "enum": ["code_security", "secret_protection"] - } - }, "enterprise-security-product": { "name": "security_product", "in": "path", diff --git a/packages/openapi-webhooks-types-ghec/types.d.ts b/packages/openapi-webhooks-types-ghec/types.d.ts index 3e2a13f..6105248 100644 --- a/packages/openapi-webhooks-types-ghec/types.d.ts +++ b/packages/openapi-webhooks-types-ghec/types.d.ts @@ -3829,6 +3829,11 @@ export interface components { type?: "secret_scanning_closure"; /** @description The data related to the secret scanning alerts that have dismissal requests. */ data?: { + /** + * @description The reason for the dismissal request + * @enum {string} + */ + reason?: "fixed_later" | "false_positive" | "tests" | "revoked"; /** @description The type of secret that was detected */ secret_type?: string; /** @description The number of the alert that was detected */ @@ -7671,6 +7676,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -14338,6 +14348,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -17300,7 +17311,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -17344,7 +17355,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17386,7 +17397,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -17396,19 +17407,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -17427,13 +17438,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -17501,7 +17512,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -17697,7 +17708,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -17711,7 +17722,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -17727,16 +17738,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17774,6 +17785,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks-types-ghes-3.13/types.d.ts b/packages/openapi-webhooks-types-ghes-3.13/types.d.ts index 52f4020..669e4cc 100644 --- a/packages/openapi-webhooks-types-ghes-3.13/types.d.ts +++ b/packages/openapi-webhooks-types-ghes-3.13/types.d.ts @@ -6801,6 +6801,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -13478,6 +13483,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -16440,7 +16446,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -16484,7 +16490,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16526,7 +16532,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -16536,19 +16542,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -16567,13 +16573,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -16641,7 +16647,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -16837,7 +16843,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -16851,7 +16857,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -16867,16 +16873,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16914,6 +16920,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks-types-ghes-3.14/types.d.ts b/packages/openapi-webhooks-types-ghes-3.14/types.d.ts index 42d1cd0..28fe511 100644 --- a/packages/openapi-webhooks-types-ghes-3.14/types.d.ts +++ b/packages/openapi-webhooks-types-ghes-3.14/types.d.ts @@ -3417,6 +3417,11 @@ export interface components { type?: "secret_scanning_closure"; /** @description The data related to the secret scanning alerts that have dismissal requests. */ data?: { + /** + * @description The reason for the dismissal request + * @enum {string} + */ + reason?: "fixed_later" | "false_positive" | "tests" | "revoked"; /** @description The type of secret that was detected */ secret_type?: string; /** @description The number of the alert that was detected */ @@ -7131,6 +7136,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -13808,6 +13818,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -16770,7 +16781,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -16814,7 +16825,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16856,7 +16867,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -16866,19 +16877,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -16897,13 +16908,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -16971,7 +16982,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -17167,7 +17178,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -17181,7 +17192,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -17197,16 +17208,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17244,6 +17255,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks-types-ghes-3.15/types.d.ts b/packages/openapi-webhooks-types-ghes-3.15/types.d.ts index eb99709..d269ccb 100644 --- a/packages/openapi-webhooks-types-ghes-3.15/types.d.ts +++ b/packages/openapi-webhooks-types-ghes-3.15/types.d.ts @@ -3431,6 +3431,11 @@ export interface components { type?: "secret_scanning_closure"; /** @description The data related to the secret scanning alerts that have dismissal requests. */ data?: { + /** + * @description The reason for the dismissal request + * @enum {string} + */ + reason?: "fixed_later" | "false_positive" | "tests" | "revoked"; /** @description The type of secret that was detected */ secret_type?: string; /** @description The number of the alert that was detected */ @@ -7150,6 +7155,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -13832,6 +13842,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -16794,7 +16805,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -16838,7 +16849,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16880,7 +16891,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -16890,19 +16901,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -16921,13 +16932,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -16995,7 +17006,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -17191,7 +17202,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -17205,7 +17216,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -17221,16 +17232,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17268,6 +17279,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks-types-ghes-3.16/types.d.ts b/packages/openapi-webhooks-types-ghes-3.16/types.d.ts index 0e1d669..98b0739 100644 --- a/packages/openapi-webhooks-types-ghes-3.16/types.d.ts +++ b/packages/openapi-webhooks-types-ghes-3.16/types.d.ts @@ -3498,6 +3498,11 @@ export interface components { type?: "secret_scanning_closure"; /** @description The data related to the secret scanning alerts that have dismissal requests. */ data?: { + /** + * @description The reason for the dismissal request + * @enum {string} + */ + reason?: "fixed_later" | "false_positive" | "tests" | "revoked"; /** @description The type of secret that was detected */ secret_type?: string; /** @description The number of the alert that was detected */ @@ -7224,6 +7229,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -13911,6 +13921,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -16873,7 +16884,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -16917,7 +16928,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16959,7 +16970,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -16969,19 +16980,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -17000,13 +17011,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -17074,7 +17085,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -17270,7 +17281,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -17284,7 +17295,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -17300,16 +17311,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17347,6 +17358,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks-types/types.d.ts b/packages/openapi-webhooks-types/types.d.ts index 049d40c..63ba494 100644 --- a/packages/openapi-webhooks-types/types.d.ts +++ b/packages/openapi-webhooks-types/types.d.ts @@ -7136,6 +7136,11 @@ export interface components { starred_at?: string; /** @description Whether anonymous git access is enabled for this repository */ anonymous_access_enabled?: boolean; + /** @description The status of the code search index for this repository */ + code_search_index_status?: { + lexical_search_ok?: boolean; + lexical_commit_sha?: string; + }; }; /** * Link @@ -13766,6 +13771,7 @@ export interface components { type?: "Bot" | "User" | "Organization"; /** Format: uri */ url?: string; + user_view_type?: string; } | null)[]; /** * AuthorAssociation @@ -16723,7 +16729,7 @@ export interface components { */ old_issue: { /** @enum {string|null} */ - active_lock_reason: + active_lock_reason?: | "resolved" | "off-topic" | "too heated" @@ -16767,7 +16773,7 @@ export interface components { url?: string; user_view_type?: string; } | null; - assignees: ({ + assignees?: ({ /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -16809,7 +16815,7 @@ export interface components { * @description How the author is associated with the repository. * @enum {string} */ - author_association: + author_association?: | "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" @@ -16819,19 +16825,19 @@ export interface components { | "NONE" | "OWNER"; /** @description Contents of the issue */ - body: string | null; + body?: string | null; /** Format: date-time */ - closed_at: string | null; - comments: number; + closed_at?: string | null; + comments?: number; /** Format: uri */ - comments_url: string; + comments_url?: string; /** Format: date-time */ - created_at: string; + created_at?: string; draft?: boolean; /** Format: uri */ - events_url: string; + events_url?: string; /** Format: uri */ - html_url: string; + html_url?: string; /** Format: int64 */ id: number; labels?: { @@ -16850,13 +16856,13 @@ export interface components { url: string; }[]; /** Format: uri-template */ - labels_url: string; + labels_url?: string; locked?: boolean; /** * Milestone * @description A collection of related issues and pull requests. */ - milestone: { + milestone?: { /** Format: date-time */ closed_at: string | null; closed_issues: number; @@ -16924,7 +16930,7 @@ export interface components { /** Format: uri */ url: string; } | null; - node_id: string; + node_id?: string; number: number; /** * App @@ -17120,7 +17126,7 @@ export interface components { url?: string; }; /** Reactions */ - reactions: { + reactions?: { "+1": number; "-1": number; confused: number; @@ -17134,7 +17140,7 @@ export interface components { url: string; }; /** Format: uri */ - repository_url: string; + repository_url?: string; /** Sub-issues Summary */ sub_issues_summary?: { total: number; @@ -17150,16 +17156,16 @@ export interface components { /** Format: uri */ timeline_url?: string; /** @description Title of the issue */ - title: string; + title?: string; /** Format: date-time */ - updated_at: string; + updated_at?: string; /** * Format: uri * @description URL for the issue */ - url: string; + url?: string; /** User */ - user: { + user?: { /** Format: uri */ avatar_url?: string; deleted?: boolean; @@ -17197,6 +17203,7 @@ export interface components { url?: string; user_view_type?: string; } | null; + type?: components["schemas"]["issue-type"]; } | null; /** * Repository diff --git a/packages/openapi-webhooks/generated/api.github.com.json b/packages/openapi-webhooks/generated/api.github.com.json index a1dc0b6..b8880a5 100644 --- a/packages/openapi-webhooks/generated/api.github.com.json +++ b/packages/openapi-webhooks/generated/api.github.com.json @@ -129,6 +129,10 @@ "name": "hosted-compute", "description": "Manage hosted compute networking resources." }, + { + "name": "credentials", + "description": "Revoke compromised or leaked GitHub credentials." + }, { "name": "campaigns", "description": "Endpoints to manage campaigns via the REST API." @@ -28885,6 +28889,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -38396,7 +38408,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -43341,31 +43354,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", diff --git a/packages/openapi-webhooks/generated/ghec.json b/packages/openapi-webhooks/generated/ghec.json index 9b32a9b..1f51f9c 100644 --- a/packages/openapi-webhooks/generated/ghec.json +++ b/packages/openapi-webhooks/generated/ghec.json @@ -139,6 +139,10 @@ { "name": "campaigns", "description": "Endpoints to manage campaigns via the REST API." + }, + { + "name": "credentials", + "description": "Revoke compromised or leaked GitHub credentials." } ], "servers": [{ "url": "https://api.github.com" }], @@ -24024,6 +24028,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -30820,6 +30829,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -40368,7 +40385,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -45318,31 +45336,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", diff --git a/packages/openapi-webhooks/generated/ghes-3.13.json b/packages/openapi-webhooks/generated/ghes-3.13.json index 226fc0b..cb5adc7 100644 --- a/packages/openapi-webhooks/generated/ghes-3.13.json +++ b/packages/openapi-webhooks/generated/ghes-3.13.json @@ -29974,6 +29974,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -39538,7 +39546,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -44488,31 +44497,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", diff --git a/packages/openapi-webhooks/generated/ghes-3.14.json b/packages/openapi-webhooks/generated/ghes-3.14.json index eb8ef09..299eef6 100644 --- a/packages/openapi-webhooks/generated/ghes-3.14.json +++ b/packages/openapi-webhooks/generated/ghes-3.14.json @@ -24236,6 +24236,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -30819,6 +30824,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -40383,7 +40396,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -45333,31 +45347,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", diff --git a/packages/openapi-webhooks/generated/ghes-3.15.json b/packages/openapi-webhooks/generated/ghes-3.15.json index dd979d6..e4ebd01 100644 --- a/packages/openapi-webhooks/generated/ghes-3.15.json +++ b/packages/openapi-webhooks/generated/ghes-3.15.json @@ -24261,6 +24261,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -30854,6 +30859,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -40423,7 +40436,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -45373,31 +45387,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository", diff --git a/packages/openapi-webhooks/generated/ghes-3.16.json b/packages/openapi-webhooks/generated/ghes-3.16.json index 243f7e7..4104dc0 100644 --- a/packages/openapi-webhooks/generated/ghes-3.16.json +++ b/packages/openapi-webhooks/generated/ghes-3.16.json @@ -24757,6 +24757,11 @@ "items": { "type": "object", "properties": { + "reason": { + "type": "string", + "description": "The reason for the dismissal request", + "enum": ["fixed_later", "false_positive", "tests", "revoked"] + }, "secret_type": { "type": "string", "description": "The type of secret that was detected" @@ -31361,6 +31366,14 @@ "anonymous_access_enabled": { "type": "boolean", "description": "Whether anonymous git access is enabled for this repository" + }, + "code_search_index_status": { + "type": "object", + "description": "The status of the code search index for this repository", + "properties": { + "lexical_search_ok": { "type": "boolean" }, + "lexical_commit_sha": { "type": "string" } + } } }, "required": [ @@ -40935,7 +40948,8 @@ "type": "string", "enum": ["Bot", "User", "Organization"] }, - "url": { "type": "string", "format": "uri" } + "url": { "type": "string", "format": "uri" }, + "user_view_type": { "type": "string" } }, "required": ["login", "id"] } @@ -45885,31 +45899,10 @@ "user_view_type": { "type": "string" } }, "required": ["login", "id"] - } + }, + "type": { "$ref": "#/components/schemas/issue-type" } }, - "required": [ - "url", - "repository_url", - "labels_url", - "comments_url", - "events_url", - "html_url", - "id", - "node_id", - "number", - "title", - "user", - "assignees", - "milestone", - "comments", - "created_at", - "updated_at", - "closed_at", - "author_association", - "active_lock_reason", - "body", - "reactions" - ] + "required": ["id", "number"] }, "old_repository": { "title": "Repository",