diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 076d2adcfe1..3d63d432e3e 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "736baa369515112b9bfb0e87033d2fcb", + "specHash": "7714c88ff6c09a4c649c225f5b2ccf5c", "generatedFiles": { "files": [ { @@ -176,7 +176,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php", - "hash": "a1dcc0a44452ab6fad5737d43ba39842" + "hash": "386b37888cd98a3d5b7c662a13f4791f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actor.php", @@ -1328,7 +1328,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php", - "hash": "899ec278f99c532b143ee96145f5c9b3" + "hash": "348589b94872ff7644e761e8f06af89f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php", @@ -2380,11 +2380,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php", - "hash": "e770c61ba3cd2bae71c8de2303438007" + "hash": "43c26624427251630964c804be9e6f56" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php", - "hash": "1639af1d6203d150f0a35175568c3a1b" + "hash": "3b3dc9976f6194aa462e67637e8f0948" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php", @@ -2392,11 +2392,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php", - "hash": "5d19dc504f0416e3995dfd8ef831e4f0" + "hash": "2997a7cef6ddb159c1ccf72ad8163295" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php", - "hash": "0375b023e27b047c1d78f8e6c2f20435" + "hash": "18e4a8365529d37aa687fdb7d77b4720" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php", @@ -11640,7 +11640,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertWebhook.php", - "hash": "fe0d103a81a472983ff13d4cae420c93" + "hash": "f9f8eb773139be21112db032ab451a54" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet649F32EB\/TietC13659D6\/Tiet0B408A31\/TietF85C8E0E.php", @@ -26580,7 +26580,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php", - "hash": "ac1c7ca4e1ae4a851dd800efea469f4a" + "hash": "cfe07a6012b5e29f1e93599e174a92ec" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php", @@ -27520,7 +27520,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperties\/Request\/ApplicationJson.php", - "hash": "fcb295de0733f13a315c82975d0ff0c2" + "hash": "a356ad5dc76d7a79fe57d9012328096c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperty\/Request\/ApplicationJson.php", @@ -27536,7 +27536,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Schema\/CustomPropertyName.php", - "hash": "c94db273967ae7b315148f77805720d2" + "hash": "0558f430b582d0caa403c714b18a62ef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Values.php", @@ -27548,7 +27548,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php", - "hash": "89e712c9fe306ac63ced73f498507fad" + "hash": "7554977360c7997c4d90ab091ca1200e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php", @@ -27556,7 +27556,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php", - "hash": "0b33151d738be949b5980fcf2110bd3c" + "hash": "c47f012f7e0eb0de2fc68cc18b2350d3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php", @@ -27964,7 +27964,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php", - "hash": "bc2cd6414bc89bd27e977edabb216bf0" + "hash": "3c29e7bb6806ab4516aa54f228c67c1e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php", @@ -28168,11 +28168,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php", - "hash": "41031e90d7d3dd3dd46701768db730dc" + "hash": "c2568564ede71126cad1740b3f0bebc0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php", - "hash": "c33a0cfe0907566dd9167c557efe208f" + "hash": "9e856f413319efb8355beee2a0904e16" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php", @@ -28344,11 +28344,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationRole.php", - "hash": "40d87224b207990f3aa120bbec4598c0" + "hash": "16ab02bd02f8300f33e907a5f82fa658" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListOrgRoles\/Response\/ApplicationJson\/Ok.php", - "hash": "8b5a1dd95c1ea54ffba3a89f7bd6083f" + "hash": "fbda0b34354dfade04cf1d2c035abec6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles.php", @@ -28356,7 +28356,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles\/RoleId.php", - "hash": "2bb0b95323a192616b1123eef3f13262" + "hash": "5c2414d05ee6a2f3cd31be268970e4d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/SecurityAdvisories\/CreateFork.php", @@ -28464,7 +28464,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php", - "hash": "b2b401a66cdb2f6ff46c524ac8d31f86" + "hash": "e8d1522701abf91943c343ff988121f3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php", @@ -29432,11 +29432,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php", - "hash": "3894b060697253081cbcafe9e322e237" + "hash": "15b25bdaa95891a560087777f3c7c2d7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/UserRoleAssignment.php", - "hash": "e416753340bfc0688094d55c8f8b225d" + "hash": "7c1c6eaaf6d880168e7978e794fb5682" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ProjectsV2SingleSelectOption.php", @@ -30080,7 +30080,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CustomProperty.php", - "hash": "61c40f244c85c1f01567e8d0b7d6f8b0" + "hash": "12c68f4bc209122d4667d6560928f581" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningPushProtectionBypassReason.php", @@ -30464,7 +30464,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertPubliclyLeaked.php", - "hash": "3fbcfa11f564b604e2da1cb764643614" + "hash": "3f71effbea1adf3ff8e5e0acdd960c0b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet840A0FDF\/Tiet2788886F\/Tiet3E288C76\/Tiet836AAE9A.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles/RoleId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles/RoleId.php index fa4e9c7df41..9f754398578 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles/RoleId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles/RoleId.php @@ -89,6 +89,28 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga after_description: + $value = $payload['base_role'] ?? null; + + if ($value === null) { + $properties['baseRole'] = null; + goto after_baseRole; + } + + $properties['baseRole'] = $value; + + after_baseRole: + + $value = $payload['source'] ?? null; + + if ($value === null) { + $properties['source'] = null; + goto after_source; + } + + $properties['source'] = $value; + + after_source: + $value = $payload['permissions'] ?? null; if ($value === null) { @@ -648,6 +670,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_description: $result['description'] = $description; + $baseRole = $object->baseRole; + + if ($baseRole === null) { + goto after_baseRole; + } + + after_baseRole: $result['base_role'] = $baseRole; + + $source = $object->source; + + if ($source === null) { + goto after_source; + } + + after_source: $result['source'] = $source; + $permissions = $object->permissions; static $permissionsSerializer0; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php index 343ab0975c5..dd4df6ccb91 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php @@ -72,6 +72,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cust after_url: + $value = $payload['source_type'] ?? null; + + if ($value === null) { + $properties['sourceType'] = null; + goto after_sourceType; + } + + $properties['sourceType'] = $value; + + after_sourceType: + $value = $payload['value_type'] ?? null; if ($value === null) { @@ -326,6 +337,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_url: $result['url'] = $url; + $sourceType = $object->sourceType; + + if ($sourceType === null) { + goto after_sourceType; + } + + after_sourceType: $result['source_type'] = $sourceType; + $valueType = $object->valueType; after_valueType: $result['value_type'] = $valueType; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php index 38b1e5d675e..0afe0e9c5c9 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php @@ -259,6 +259,48 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassedAt: + $value = $payload['push_protection_bypass_request_reviewer'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewer'] = null; + goto after_pushProtectionBypassRequestReviewer; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pushProtectionBypassRequestReviewer'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pushProtectionBypassRequestReviewer'] = $value; + + after_pushProtectionBypassRequestReviewer: + + $value = $payload['push_protection_bypass_request_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestComment'] = null; + goto after_pushProtectionBypassRequestComment; + } + + $properties['pushProtectionBypassRequestComment'] = $value; + + after_pushProtectionBypassRequestComment: + + $value = $payload['push_protection_bypass_request_html_url'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestHtmlUrl'] = null; + goto after_pushProtectionBypassRequestHtmlUrl; + } + + $properties['pushProtectionBypassRequestHtmlUrl'] = $value; + + after_pushProtectionBypassRequestHtmlUrl: + $value = $payload['validity'] ?? null; if ($value === null) { @@ -858,6 +900,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_pushProtectionBypassedAt: $result['push_protection_bypassed_at'] = $pushProtectionBypassedAt; + $pushProtectionBypassRequestReviewer = $object->pushProtectionBypassRequestReviewer; + + if ($pushProtectionBypassRequestReviewer === null) { + goto after_pushProtectionBypassRequestReviewer; + } + + $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); + after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; + + if ($pushProtectionBypassRequestComment === null) { + goto after_pushProtectionBypassRequestComment; + } + + after_pushProtectionBypassRequestComment: $result['push_protection_bypass_request_comment'] = $pushProtectionBypassRequestComment; + + $pushProtectionBypassRequestHtmlUrl = $object->pushProtectionBypassRequestHtmlUrl; + + if ($pushProtectionBypassRequestHtmlUrl === null) { + goto after_pushProtectionBypassRequestHtmlUrl; + } + + after_pushProtectionBypassRequestHtmlUrl: $result['push_protection_bypass_request_html_url'] = $pushProtectionBypassRequestHtmlUrl; + $validity = $object->validity; if ($validity === null) { diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php index 526194958e7..913c2abf5be 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php @@ -217,6 +217,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cust after_url: + $value = $payload['source_type'] ?? null; + + if ($value === null) { + $properties['sourceType'] = null; + goto after_sourceType; + } + + $properties['sourceType'] = $value; + + after_sourceType: + $value = $payload['value_type'] ?? null; if ($value === null) { @@ -1338,6 +1349,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_url: $result['url'] = $url; + $sourceType = $object->sourceType; + + if ($sourceType === null) { + goto after_sourceType; + } + + after_sourceType: $result['source_type'] = $sourceType; + $valueType = $object->valueType; after_valueType: $result['value_type'] = $valueType; diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php index c754cfefb1b..b1fc6bd5fba 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlert.php @@ -425,6 +425,48 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassedAt: + $value = $payload['push_protection_bypass_request_reviewer'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewer'] = null; + goto after_pushProtectionBypassRequestReviewer; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pushProtectionBypassRequestReviewer'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pushProtectionBypassRequestReviewer'] = $value; + + after_pushProtectionBypassRequestReviewer: + + $value = $payload['push_protection_bypass_request_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestComment'] = null; + goto after_pushProtectionBypassRequestComment; + } + + $properties['pushProtectionBypassRequestComment'] = $value; + + after_pushProtectionBypassRequestComment: + + $value = $payload['push_protection_bypass_request_html_url'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestHtmlUrl'] = null; + goto after_pushProtectionBypassRequestHtmlUrl; + } + + $properties['pushProtectionBypassRequestHtmlUrl'] = $value; + + after_pushProtectionBypassRequestHtmlUrl: + $value = $payload['publicly_leaked'] ?? null; if ($value === null) { @@ -4579,6 +4621,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_pushProtectionBypassedAt: $result['push_protection_bypassed_at'] = $pushProtectionBypassedAt; + $pushProtectionBypassRequestReviewer = $object->pushProtectionBypassRequestReviewer; + + if ($pushProtectionBypassRequestReviewer === null) { + goto after_pushProtectionBypassRequestReviewer; + } + + $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); + after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; + + if ($pushProtectionBypassRequestComment === null) { + goto after_pushProtectionBypassRequestComment; + } + + after_pushProtectionBypassRequestComment: $result['push_protection_bypass_request_comment'] = $pushProtectionBypassRequestComment; + + $pushProtectionBypassRequestHtmlUrl = $object->pushProtectionBypassRequestHtmlUrl; + + if ($pushProtectionBypassRequestHtmlUrl === null) { + goto after_pushProtectionBypassRequestHtmlUrl; + } + + after_pushProtectionBypassRequestHtmlUrl: $result['push_protection_bypass_request_html_url'] = $pushProtectionBypassRequestHtmlUrl; + $publiclyLeaked = $object->publiclyLeaked; if ($publiclyLeaked === null) { diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php index a256f820056..3bdaeb5ee03 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php @@ -421,6 +421,48 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr after_pushProtectionBypassedAt: + $value = $payload['push_protection_bypass_request_reviewer'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestReviewer'] = null; + goto after_pushProtectionBypassRequestReviewer; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pushProtectionBypassRequestReviewer'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pushProtectionBypassRequestReviewer'] = $value; + + after_pushProtectionBypassRequestReviewer: + + $value = $payload['push_protection_bypass_request_comment'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestComment'] = null; + goto after_pushProtectionBypassRequestComment; + } + + $properties['pushProtectionBypassRequestComment'] = $value; + + after_pushProtectionBypassRequestComment: + + $value = $payload['push_protection_bypass_request_html_url'] ?? null; + + if ($value === null) { + $properties['pushProtectionBypassRequestHtmlUrl'] = null; + goto after_pushProtectionBypassRequestHtmlUrl; + } + + $properties['pushProtectionBypassRequestHtmlUrl'] = $value; + + after_pushProtectionBypassRequestHtmlUrl: + $value = $payload['publicly_leaked'] ?? null; if ($value === null) { @@ -3922,6 +3964,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema after_pushProtectionBypassedAt: $result['push_protection_bypassed_at'] = $pushProtectionBypassedAt; + $pushProtectionBypassRequestReviewer = $object->pushProtectionBypassRequestReviewer; + + if ($pushProtectionBypassRequestReviewer === null) { + goto after_pushProtectionBypassRequestReviewer; + } + + $pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer); + after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer; + + $pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment; + + if ($pushProtectionBypassRequestComment === null) { + goto after_pushProtectionBypassRequestComment; + } + + after_pushProtectionBypassRequestComment: $result['push_protection_bypass_request_comment'] = $pushProtectionBypassRequestComment; + + $pushProtectionBypassRequestHtmlUrl = $object->pushProtectionBypassRequestHtmlUrl; + + if ($pushProtectionBypassRequestHtmlUrl === null) { + goto after_pushProtectionBypassRequestHtmlUrl; + } + + after_pushProtectionBypassRequestHtmlUrl: $result['push_protection_bypass_request_html_url'] = $pushProtectionBypassRequestHtmlUrl; + $publiclyLeaked = $object->publiclyLeaked; if ($publiclyLeaked === null) { diff --git a/clients/GitHub/src/Schema/CustomProperty.php b/clients/GitHub/src/Schema/CustomProperty.php index 828375265fe..eb3dcdb10fd 100644 --- a/clients/GitHub/src/Schema/CustomProperty.php +++ b/clients/GitHub/src/Schema/CustomProperty.php @@ -25,6 +25,17 @@ "description": "The URL that can be used to fetch, update, or delete info about this property via the API.", "format": "uri" }, + "source_type": { + "enum": [ + "organization", + "enterprise" + ], + "type": "string", + "description": "The source type of the property", + "examples": [ + "organization" + ] + }, "value_type": { "enum": [ "string", @@ -103,6 +114,7 @@ public const SCHEMA_EXAMPLE_DATA = '{ "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -114,6 +126,7 @@ /** * propertyName: The name of the property * url: The URL that can be used to fetch, update, or delete info about this property via the API. + * sourceType: The source type of the property * valueType: The type of the value for the property * required: Whether the property is required. * defaultValue: Default value of the property @@ -123,7 +136,8 @@ * valuesEditableBy: Who can edit the values of the property */ public function __construct(#[MapFrom('property_name')] - public string $propertyName, public string|null $url, #[MapFrom('value_type')] + public string $propertyName, public string|null $url, #[MapFrom('source_type')] + public string|null $sourceType, #[MapFrom('value_type')] public string $valueType, public bool|null $required, #[MapFrom('default_value')] public string|array|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')] public array|null $allowedValues, #[MapFrom('values_editable_by')] diff --git a/clients/GitHub/src/Schema/Operations/Orgs/ListOrgRoles/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Orgs/ListOrgRoles/Response/ApplicationJson/Ok.php index 13cf03ad05f..b37de096373 100644 --- a/clients/GitHub/src/Schema/Operations/Orgs/ListOrgRoles/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Orgs/ListOrgRoles/Response/ApplicationJson/Ok.php @@ -45,6 +45,34 @@ ], "description": "A short description about who this role is for or what permissions it grants." }, + "base_role": { + "enum": [ + "read", + "triage", + "write", + "maintain", + "admin", + null + ], + "type": [ + "string", + "null" + ], + "description": "The system role from which this role inherits permissions." + }, + "source": { + "enum": [ + "Organization", + "Enterprise", + "Predefined", + null + ], + "type": [ + "string", + "null" + ], + "description": "Source answers the question, \\"where did this role come from?\\"" + }, "permissions": { "type": "array", "items": { @@ -253,6 +281,8 @@ "id": 2, "name": "generated", "description": "generated", + "base_role": "read", + "source": "Predefined", "permissions": [ "generated", "generated" @@ -288,6 +318,8 @@ "id": 2, "name": "generated", "description": "generated", + "base_role": "read", + "source": "Predefined", "permissions": [ "generated", "generated" diff --git a/clients/GitHub/src/Schema/OrganizationRole.php b/clients/GitHub/src/Schema/OrganizationRole.php index 403038e3195..3b769edd5b6 100644 --- a/clients/GitHub/src/Schema/OrganizationRole.php +++ b/clients/GitHub/src/Schema/OrganizationRole.php @@ -37,6 +37,34 @@ ], "description": "A short description about who this role is for or what permissions it grants." }, + "base_role": { + "enum": [ + "read", + "triage", + "write", + "maintain", + "admin", + null + ], + "type": [ + "string", + "null" + ], + "description": "The system role from which this role inherits permissions." + }, + "source": { + "enum": [ + "Organization", + "Enterprise", + "Predefined", + null + ], + "type": [ + "string", + "null" + ], + "description": "Source answers the question, \\"where did this role come from?\\"" + }, "permissions": { "type": "array", "items": { @@ -238,6 +266,8 @@ "id": 2, "name": "generated", "description": "generated", + "base_role": "read", + "source": "Predefined", "permissions": [ "generated", "generated" @@ -274,11 +304,14 @@ * id: The unique identifier of the role. * name: The name of the role. * description: A short description about who this role is for or what permissions it grants. + * baseRole: The system role from which this role inherits permissions. + * source: Source answers the question, "where did this role come from?" * permissions: A list of permissions included in this role. * createdAt: The date and time the role was created. * updatedAt: The date and time the role was last updated. */ - public function __construct(public int $id, public string $name, public string|null $description, public array $permissions, public Schema\SimpleUser|null $organization, #[MapFrom('created_at')] + public function __construct(public int $id, public string $name, public string|null $description, #[MapFrom('base_role')] + public string|null $baseRole, public string|null $source, public array $permissions, public Schema\SimpleUser|null $organization, #[MapFrom('created_at')] public string $createdAt, #[MapFrom('updated_at')] public string $updatedAt,) { diff --git a/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php b/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php index 8369be69dcf..6837bb2bd42 100644 --- a/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php +++ b/clients/GitHub/src/Schema/OrganizationSecretScanningAlert.php @@ -1011,6 +1011,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "resolution_comment": { "type": [ "string", @@ -1179,6 +1369,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "resolution_comment": "generated", "validity": "unknown", "publicly_leaked": false, @@ -1201,6 +1417,8 @@ * repository: A GitHub repository. * pushProtectionBypassed: Whether push protection was bypassed for the detected secret. * pushProtectionBypassedAt: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * pushProtectionBypassRequestComment: An optional comment when requesting a push protection bypass. + * pushProtectionBypassRequestHtmlUrl: The URL to a push protection bypass request. * resolutionComment: The comment that was optionally added when this alert was closed * validity: The token status as of the latest validity check. * publiclyLeaked: Whether the secret was publicly leaked. @@ -1217,7 +1435,10 @@ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $secretTypeDisplayName, public string|null $secret, public Schema\SimpleRepository|null $repository, #[MapFrom('push_protection_bypassed')] public bool|null $pushProtectionBypassed, #[MapFrom('push_protection_bypassed_by')] public Schema\SimpleUser|null $pushProtectionBypassedBy, #[MapFrom('push_protection_bypassed_at')] - public string|null $pushProtectionBypassedAt, #[MapFrom('resolution_comment')] + public string|null $pushProtectionBypassedAt, #[MapFrom('push_protection_bypass_request_reviewer')] + public Schema\SimpleUser|null $pushProtectionBypassRequestReviewer, #[MapFrom('push_protection_bypass_request_comment')] + public string|null $pushProtectionBypassRequestComment, #[MapFrom('push_protection_bypass_request_html_url')] + public string|null $pushProtectionBypassRequestHtmlUrl, #[MapFrom('resolution_comment')] public string|null $resolutionComment, public string|null $validity, #[MapFrom('publicly_leaked')] public bool|null $publiclyLeaked, #[MapFrom('multi_repo')] public bool|null $multiRepo,) diff --git a/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperties/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperties/Request/ApplicationJson.php index 43f76a89a08..3cbd9719e35 100644 --- a/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperties/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Orgs/CreateOrUpdateCustomProperties/Request/ApplicationJson.php @@ -33,6 +33,17 @@ "description": "The URL that can be used to fetch, update, or delete info about this property via the API.", "format": "uri" }, + "source_type": { + "enum": [ + "organization", + "enterprise" + ], + "type": "string", + "description": "The source type of the property", + "examples": [ + "organization" + ] + }, "value_type": { "enum": [ "string", @@ -117,6 +128,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -127,6 +139,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -137,6 +150,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -147,6 +161,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -157,6 +172,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -167,6 +183,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -177,6 +194,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -187,6 +205,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -197,6 +216,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -207,6 +227,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -217,6 +238,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -227,6 +249,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -237,6 +260,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -247,6 +271,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -257,6 +282,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -267,6 +293,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -277,6 +304,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -287,6 +315,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -297,6 +326,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -307,6 +337,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -317,6 +348,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -327,6 +359,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -337,6 +370,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -347,6 +381,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -357,6 +392,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -367,6 +403,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -377,6 +414,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -387,6 +425,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -397,6 +436,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -407,6 +447,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -417,6 +458,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -427,6 +469,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -437,6 +480,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -447,6 +491,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -457,6 +502,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -467,6 +513,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -477,6 +524,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -487,6 +535,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -497,6 +546,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -507,6 +557,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -517,6 +568,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -527,6 +579,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -537,6 +590,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -547,6 +601,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -557,6 +612,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -567,6 +623,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -577,6 +634,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -587,6 +645,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -597,6 +656,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -607,6 +667,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -617,6 +678,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -627,6 +689,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -637,6 +700,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -647,6 +711,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -657,6 +722,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -667,6 +733,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -677,6 +744,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -687,6 +755,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -697,6 +766,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -707,6 +777,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -717,6 +788,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -727,6 +799,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -737,6 +810,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -747,6 +821,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -757,6 +832,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -767,6 +843,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -777,6 +854,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -787,6 +865,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -797,6 +876,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -807,6 +887,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -817,6 +898,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -827,6 +909,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -837,6 +920,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -847,6 +931,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -857,6 +942,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -867,6 +953,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -877,6 +964,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -887,6 +975,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -897,6 +986,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -907,6 +997,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -917,6 +1008,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -927,6 +1019,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -937,6 +1030,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -947,6 +1041,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -957,6 +1052,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -967,6 +1063,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -977,6 +1074,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -987,6 +1085,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -997,6 +1096,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1007,6 +1107,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1017,6 +1118,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1027,6 +1129,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1037,6 +1140,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1047,6 +1151,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1057,6 +1162,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1067,6 +1173,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1077,6 +1184,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1087,6 +1195,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1097,6 +1206,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, @@ -1107,6 +1217,7 @@ { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, diff --git a/clients/GitHub/src/Schema/SecretScanningAlert.php b/clients/GitHub/src/Schema/SecretScanningAlert.php index 60a2a056a67..5312e328f95 100644 --- a/clients/GitHub/src/Schema/SecretScanningAlert.php +++ b/clients/GitHub/src/Schema/SecretScanningAlert.php @@ -467,6 +467,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "validity": { "enum": [ "active", @@ -558,6 +748,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "validity": "unknown", "publicly_leaked": false, "multi_repo": false @@ -579,6 +795,8 @@ * secret: The secret that was detected. * pushProtectionBypassed: Whether push protection was bypassed for the detected secret. * pushProtectionBypassedAt: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * pushProtectionBypassRequestComment: An optional comment when requesting a push protection bypass. + * pushProtectionBypassRequestHtmlUrl: The URL to a push protection bypass request. * validity: The token status as of the latest validity check. * publiclyLeaked: Whether the detected secret was publicly leaked. * multiRepo: Whether the detected secret was found in multiple repositories under the same organization or enterprise. @@ -595,7 +813,10 @@ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $secretTypeDisplayName, public string|null $secret, #[MapFrom('push_protection_bypassed')] public bool|null $pushProtectionBypassed, #[MapFrom('push_protection_bypassed_by')] public Schema\SimpleUser|null $pushProtectionBypassedBy, #[MapFrom('push_protection_bypassed_at')] - public string|null $pushProtectionBypassedAt, public string|null $validity, #[MapFrom('publicly_leaked')] + public string|null $pushProtectionBypassedAt, #[MapFrom('push_protection_bypass_request_reviewer')] + public Schema\SimpleUser|null $pushProtectionBypassRequestReviewer, #[MapFrom('push_protection_bypass_request_comment')] + public string|null $pushProtectionBypassRequestComment, #[MapFrom('push_protection_bypass_request_html_url')] + public string|null $pushProtectionBypassRequestHtmlUrl, public string|null $validity, #[MapFrom('publicly_leaked')] public bool|null $publiclyLeaked, #[MapFrom('multi_repo')] public bool|null $multiRepo,) { diff --git a/clients/GitHub/src/Schema/SecretScanningAlertWebhook.php b/clients/GitHub/src/Schema/SecretScanningAlertWebhook.php index 01ca4e63006..ee3247c78c5 100644 --- a/clients/GitHub/src/Schema/SecretScanningAlertWebhook.php +++ b/clients/GitHub/src/Schema/SecretScanningAlertWebhook.php @@ -466,6 +466,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -547,6 +737,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }'; @@ -566,6 +782,8 @@ * validity: The token status as of the latest validity check. * pushProtectionBypassed: Whether push protection was bypassed for the detected secret. * pushProtectionBypassedAt: The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + * pushProtectionBypassRequestComment: An optional comment when requesting a push protection bypass. + * pushProtectionBypassRequestHtmlUrl: The URL to a push protection bypass request. * publiclyLeaked: Whether the detected secret was publicly leaked. * multiRepo: Whether the detected secret was found in multiple repositories in the same organization or business. */ @@ -581,7 +799,10 @@ public function __construct(public int|null $number, #[MapFrom('created_at')] public string|null $secretTypeDisplayName, public string|null $validity, #[MapFrom('push_protection_bypassed')] public bool|null $pushProtectionBypassed, #[MapFrom('push_protection_bypassed_by')] public Schema\SimpleUser|null $pushProtectionBypassedBy, #[MapFrom('push_protection_bypassed_at')] - public string|null $pushProtectionBypassedAt, #[MapFrom('publicly_leaked')] + public string|null $pushProtectionBypassedAt, #[MapFrom('push_protection_bypass_request_reviewer')] + public Schema\SimpleUser|null $pushProtectionBypassRequestReviewer, #[MapFrom('push_protection_bypass_request_comment')] + public string|null $pushProtectionBypassRequestComment, #[MapFrom('push_protection_bypass_request_html_url')] + public string|null $pushProtectionBypassRequestHtmlUrl, #[MapFrom('publicly_leaked')] public bool|null $publiclyLeaked, #[MapFrom('multi_repo')] public bool|null $multiRepo,) { diff --git a/clients/GitHub/src/Schema/TeamRoleAssignment.php b/clients/GitHub/src/Schema/TeamRoleAssignment.php index b233e979708..b220ff8cc87 100644 --- a/clients/GitHub/src/Schema/TeamRoleAssignment.php +++ b/clients/GitHub/src/Schema/TeamRoleAssignment.php @@ -26,6 +26,18 @@ ], "type": "object", "properties": { + "assignment": { + "enum": [ + "direct", + "indirect", + "mixed" + ], + "type": "string", + "description": "Determines if the team has a direct, indirect, or mixed relationship to a role", + "examples": [ + "direct" + ] + }, "id": { "type": "integer" }, @@ -222,6 +234,7 @@ public const SCHEMA_TITLE = 'A Role Assignment for a Team'; public const SCHEMA_DESCRIPTION = 'The Relationship a Team has with a role.'; public const SCHEMA_EXAMPLE_DATA = '{ + "assignment": "direct", "id": 2, "node_id": "generated", "name": "generated", @@ -258,7 +271,10 @@ } }'; - public function __construct(public int $id, #[MapFrom('node_id')] + /** + * assignment: Determines if the team has a direct, indirect, or mixed relationship to a role + */ + public function __construct(public string|null $assignment, public int $id, #[MapFrom('node_id')] public string $nodeId, public string $name, public string $slug, public string|null $description, public string|null $privacy, #[MapFrom('notification_setting')] public string|null $notificationSetting, public string $permission, public Schema\TeamRoleAssignment\Permissions|null $permissions, public string $url, #[MapFrom('html_url')] public string $htmlUrl, #[MapFrom('members_url')] diff --git a/clients/GitHub/src/Schema/UserRoleAssignment.php b/clients/GitHub/src/Schema/UserRoleAssignment.php index dc0401d4d35..429ded07ff3 100644 --- a/clients/GitHub/src/Schema/UserRoleAssignment.php +++ b/clients/GitHub/src/Schema/UserRoleAssignment.php @@ -32,6 +32,133 @@ ], "type": "object", "properties": { + "assignment": { + "enum": [ + "direct", + "indirect", + "mixed" + ], + "type": "string", + "description": "Determines if the user has a direct, indirect, or mixed relationship to a role", + "examples": [ + "direct" + ] + }, + "inherited_from": { + "type": "array", + "items": { + "title": "Team Simple", + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier of the team", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "type": "string", + "description": "URL for the team", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/members{\\/member}" + ] + }, + "name": { + "type": "string", + "description": "Name of the team", + "examples": [ + "Justice League" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Description of the team", + "examples": [ + "A great team." + ] + }, + "permission": { + "type": "string", + "description": "Permission that the team will have for its repositories", + "examples": [ + "admin" + ] + }, + "privacy": { + "type": "string", + "description": "The level of privacy this team should have", + "examples": [ + "closed" + ] + }, + "notification_setting": { + "type": "string", + "description": "The notification setting the team has set", + "examples": [ + "notifications_enabled" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/orgs\\/rails\\/teams\\/core" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/repos" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "ldap_dn": { + "type": "string", + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "examples": [ + "uid=example,ou=users,dc=github,dc=com" + ] + } + }, + "description": "Groups of organization members that gives permissions on specified repositories." + }, + "description": "Team the user has gotten the role through" + }, "name": { "type": [ "string", @@ -178,6 +305,39 @@ public const SCHEMA_TITLE = 'A Role Assignment for a User'; public const SCHEMA_DESCRIPTION = 'The Relationship a User has with a role.'; public const SCHEMA_EXAMPLE_DATA = '{ + "assignment": "direct", + "inherited_from": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1", + "members_url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/members{\\/member}", + "name": "Justice League", + "description": "A great team.", + "permission": "admin", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "html_url": "https:\\/\\/github.com\\/orgs\\/rails\\/teams\\/core", + "repositories_url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/repos", + "slug": "justice-league", + "ldap_dn": "uid=example,ou=users,dc=github,dc=com" + }, + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1", + "members_url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/members{\\/member}", + "name": "Justice League", + "description": "A great team.", + "permission": "admin", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "html_url": "https:\\/\\/github.com\\/orgs\\/rails\\/teams\\/core", + "repositories_url": "https:\\/\\/api.github.com\\/organizations\\/1\\/team\\/1\\/repos", + "slug": "justice-league", + "ldap_dn": "uid=example,ou=users,dc=github,dc=com" + } + ], "name": "generated", "email": "generated", "login": "octocat", @@ -202,7 +362,12 @@ "user_view_type": "public" }'; - public function __construct(public string|null $name, public string|null $email, public string $login, public int $id, #[MapFrom('node_id')] + /** + * assignment: Determines if the user has a direct, indirect, or mixed relationship to a role + * inheritedFrom: Team the user has gotten the role through + */ + public function __construct(public string|null $assignment, #[MapFrom('inherited_from')] + public array|null $inheritedFrom, public string|null $name, public string|null $email, public string $login, public int $id, #[MapFrom('node_id')] public string $nodeId, #[MapFrom('avatar_url')] public string $avatarUrl, #[MapFrom('gravatar_id')] public string|null $gravatarId, public string $url, #[MapFrom('html_url')] diff --git a/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php b/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php index 25c693df422..af7242148b8 100644 --- a/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php +++ b/clients/GitHub/src/Schema/WebhookCustomPropertyCreated.php @@ -39,6 +39,17 @@ "description": "The URL that can be used to fetch, update, or delete info about this property via the API.", "format": "uri" }, + "source_type": { + "enum": [ + "organization", + "enterprise" + ], + "type": "string", + "description": "The source type of the property", + "examples": [ + "organization" + ] + }, "value_type": { "enum": [ "string", @@ -503,6 +514,7 @@ "definition": { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, diff --git a/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php b/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php index c01cf1dc55a..feac86eec22 100644 --- a/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php +++ b/clients/GitHub/src/Schema/WebhookCustomPropertyUpdated.php @@ -39,6 +39,17 @@ "description": "The URL that can be used to fetch, update, or delete info about this property via the API.", "format": "uri" }, + "source_type": { + "enum": [ + "organization", + "enterprise" + ], + "type": "string", + "description": "The source type of the property", + "examples": [ + "organization" + ] + }, "value_type": { "enum": [ "string", @@ -503,6 +514,7 @@ "definition": { "property_name": "generated", "url": "https:\\/\\/example.com\\/", + "source_type": "organization", "value_type": "single_select", "required": false, "default_value": null, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertCreated.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertCreated.php index 691e0829ae4..c0f890bb82e 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertCreated.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertCreated.php @@ -480,6 +480,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2436,6 +2626,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertLocationCreated.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertLocationCreated.php index e01b49fc43d..dbb23584176 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertLocationCreated.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertLocationCreated.php @@ -481,6 +481,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2695,6 +2885,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertPubliclyLeaked.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertPubliclyLeaked.php index 75cea2dbec4..3746696edb2 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertPubliclyLeaked.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertPubliclyLeaked.php @@ -480,6 +480,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2436,6 +2626,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertReopened.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertReopened.php index 2da6fdbd616..de89ce441ae 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertReopened.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertReopened.php @@ -480,6 +480,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2436,6 +2626,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertResolved.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertResolved.php index c39641370aa..e939a2d7312 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertResolved.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertResolved.php @@ -480,6 +480,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2436,6 +2626,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/clients/GitHub/src/Schema/WebhookSecretScanningAlertValidated.php b/clients/GitHub/src/Schema/WebhookSecretScanningAlertValidated.php index 3fb2e5ab4b2..9442f3be040 100644 --- a/clients/GitHub/src/Schema/WebhookSecretScanningAlertValidated.php +++ b/clients/GitHub/src/Schema/WebhookSecretScanningAlertValidated.php @@ -480,6 +480,196 @@ "description": "The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", "format": "date-time" }, + "push_protection_bypass_request_reviewer": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/github.com\\/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\\"2020-07-09T00:17:55Z\\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "description": "A GitHub user." + } + ] + }, + "push_protection_bypass_request_comment": { + "type": [ + "string", + "null" + ], + "description": "An optional comment when requesting a push protection bypass." + }, + "push_protection_bypass_request_html_url": { + "type": [ + "string", + "null" + ], + "description": "The URL to a push protection bypass request.", + "format": "uri" + }, "publicly_leaked": { "type": [ "boolean", @@ -2436,6 +2626,32 @@ "user_view_type": "public" }, "push_protection_bypassed_at": "1970-01-01T00:00:00+00:00", + "push_protection_bypass_request_reviewer": { + "name": "generated", + "email": "generated", + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif", + "gravatar_id": "41d064eb2195891e12d0413f63227ea7", + "url": "https:\\/\\/api.github.com\\/users\\/octocat", + "html_url": "https:\\/\\/github.com\\/octocat", + "followers_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/followers", + "following_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}", + "gists_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}", + "starred_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}", + "subscriptions_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions", + "organizations_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/orgs", + "repos_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/repos", + "events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}", + "received_events_url": "https:\\/\\/api.github.com\\/users\\/octocat\\/received_events", + "type": "User", + "site_admin": false, + "starred_at": "\\"2020-07-09T00:17:55Z\\"", + "user_view_type": "public" + }, + "push_protection_bypass_request_comment": "generated", + "push_protection_bypass_request_html_url": "https:\\/\\/example.com\\/", "publicly_leaked": false, "multi_repo": false }, diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index dce3ddc783b..a47ddac69ae 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -731,8 +731,6 @@ paths: Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted. - When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported. - You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. tags: - apps @@ -37784,10 +37782,12 @@ paths: "/repos/{owner}/{repo}/releases/assets/{asset_id}": get: summary: Get a release asset - description: To download the asset's binary content, 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. + description: "To download the asset's binary content:\n\n- If within a browser, + fetch the location specified in the `browser_download_url` key provided in + the response.\n- Alternatively, set the `Accept` header of the request to + \n [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). + \n The API will either redirect the client to the location, or stream it + directly if possible.\n API clients should handle both a `200` or `302` response." tags: - repos operationId: repos/get-release-asset @@ -70057,6 +70057,21 @@ components: format: date-time description: 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' + push_protection_bypass_request_reviewer: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_comment: + type: + - string + - 'null' + description: An optional comment when requesting a push protection bypass. + push_protection_bypass_request_html_url: + type: + - string + - 'null' + format: uri + description: The URL to a push protection bypass request. resolution_comment: type: - string @@ -74574,6 +74589,28 @@ components: type: - string - 'null' + base_role: + type: + - string + - 'null' + description: The system role from which this role inherits permissions. + enum: + - read + - triage + - write + - maintain + - admin + - + source: + type: + - string + - 'null' + description: Source answers the question, "where did this role come from?" + enum: + - Organization + - Enterprise + - Predefined + - permissions: description: A list of permissions included in this role. type: array @@ -74603,6 +74640,16 @@ components: description: The Relationship a Team has with a role. type: object properties: + assignment: + type: string + description: Determines if the team has a direct, indirect, or mixed relationship + to a role + enum: + - direct + - indirect + - mixed + examples: + - direct id: type: integer node_id: @@ -74674,6 +74721,21 @@ components: description: The Relationship a User has with a role. type: object properties: + assignment: + type: string + description: Determines if the user has a direct, indirect, or mixed relationship + to a role + enum: + - direct + - indirect + - mixed + examples: + - direct + inherited_from: + description: Team the user has gotten the role through + type: array + items: + "$ref": "#/components/schemas/team-simple" name: type: - string @@ -75156,6 +75218,14 @@ components: format: uri description: The URL that can be used to fetch, update, or delete info about this property via the API. + source_type: + type: string + description: The source type of the property + enum: + - organization + - enterprise + examples: + - organization value_type: type: string enum: @@ -88775,6 +88845,21 @@ components: format: date-time description: 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' + push_protection_bypass_request_reviewer: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_comment: + type: + - string + - 'null' + description: An optional comment when requesting a push protection bypass. + push_protection_bypass_request_html_url: + type: + - string + - 'null' + format: uri + description: The URL to a push protection bypass request. validity: type: string description: The token status as of the latest validity check. @@ -101245,6 +101330,21 @@ components: format: date-time description: 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' + push_protection_bypass_request_reviewer: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/simple-user" + push_protection_bypass_request_comment: + type: + - string + - 'null' + description: An optional comment when requesting a push protection bypass. + push_protection_bypass_request_html_url: + type: + - string + - 'null' + format: uri + description: The URL to a push protection bypass request. publicly_leaked: type: - boolean @@ -201972,6 +202072,27 @@ components: site_admin: true push_protection_bypassed: true push_protection_bypassed_at: '2020-11-06T21:48:51Z' + push_protection_bypass_request_reviewer: + login: octocat + id: 3 + node_id: MDQ6VXNlcjI= + avatar_url: https://alambic.github.com/avatars/u/3? + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: true + push_protection_bypass_request_comment: Example comment + push_protection_bypass_request_html_url: https://github.com/owner/repo/secret_scanning_exemptions/1 resolution_comment: Example comment validity: active publicly_leaked: false @@ -202056,6 +202177,9 @@ components: push_protection_bypassed_by: push_protection_bypassed: false push_protection_bypassed_at: + push_protection_bypass_request_reviewer: + push_protection_bypass_request_comment: + push_protection_bypass_request_html_url: resolution_comment: validity: unknown publicly_leaked: false @@ -206820,6 +206944,7 @@ components: value: - property_name: environment url: https://api.github.com/orgs/github/properties/schema/environment + source_type: organization value_type: single_select required: true default_value: production @@ -206830,15 +206955,18 @@ components: values_editable_by: org_actors - property_name: service url: https://api.github.com/orgs/github/properties/schema/service + source_type: organization value_type: string - property_name: team url: https://api.github.com/orgs/github/properties/schema/team + source_type: organization value_type: string description: Team owning the repository custom-property: value: property_name: environment url: https://api.github.com/orgs/github/properties/schema/environment + source_type: organization value_type: single_select required: true default_value: production @@ -219575,6 +219703,27 @@ components: site_admin: true push_protection_bypassed: true push_protection_bypassed_at: '2020-11-06T21:48:51Z' + push_protection_bypass_request_reviewer: + login: octocat + id: 3 + node_id: MDQ6VXNlcjI= + avatar_url: https://alambic.github.com/avatars/u/3? + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: true + push_protection_bypass_request_comment: Example comment + push_protection_bypass_request_html_url: https://github.com/owner/repo/secret_scanning_exemptions/1 resolution_comment: Example comment validity: inactive publicly_leaked: false @@ -219594,6 +219743,9 @@ components: push_protection_bypassed_by: push_protection_bypassed: false push_protection_bypassed_at: + push_protection_bypass_request_reviewer: + push_protection_bypass_request_comment: + push_protection_bypass_request_html_url: resolution_comment: validity: unknown publicly_leaked: false @@ -219615,6 +219767,9 @@ components: push_protection_bypassed_by: push_protection_bypassed: false push_protection_bypassed_at: + push_protection_bypass_request_reviewer: + push_protection_bypass_request_comment: + push_protection_bypass_request_html_url: resolution_comment: validity: unknown publicly_leaked: false @@ -219654,6 +219809,9 @@ components: push_protection_bypassed: false push_protection_bypassed_by: push_protection_bypassed_at: + push_protection_bypass_request_reviewer: + push_protection_bypass_request_comment: + push_protection_bypass_request_html_url: resolution_comment: Example comment validity: unknown publicly_leaked: false