@octokit/openapi 16.2.0 → 16.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "16.2.0",
4
+ "version": "16.4.0",
5
5
  "title": "GitHub's official OpenAPI spec + Octokit extension",
6
6
  "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
7
7
  "license": {
@@ -3839,7 +3839,7 @@
3839
3839
  "/app/installations/{installation_id}/access_tokens": {
3840
3840
  "post": {
3841
3841
  "summary": "Create an installation access token for an app",
3842
- "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. \n\nOptionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.\n\nOptionally, 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.\n\nWhen 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. \n\nYou must use a [JWT](https://docs.github.com/enterprise-server@3.12/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
3842
+ "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.\n\nOptionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.\n\nOptionally, 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.\n\nWhen 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.\n\nYou must use a [JWT](https://docs.github.com/enterprise-server@3.12/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
3843
3843
  "tags": [
3844
3844
  "apps"
3845
3845
  ],
@@ -10794,6 +10794,360 @@
10794
10794
  "x-octokit": {}
10795
10795
  }
10796
10796
  },
10797
+ "/manage/v1/config/apply": {
10798
+ "get": {
10799
+ "summary": "Get the status of a ghe-config-apply run",
10800
+ "description": "Displays the current status of `ghe-config-apply` in the environment or the status of a historical run by ID.",
10801
+ "operationId": "enterprise-admin/get-manage-settings",
10802
+ "tags": [
10803
+ "enterprise-admin"
10804
+ ],
10805
+ "externalDocs": {
10806
+ "description": "API method documentation",
10807
+ "url": "https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/manage-ghes#get-config-apply-status"
10808
+ },
10809
+ "parameters": [
10810
+ {
10811
+ "name": "run_id",
10812
+ "description": "The unique run ID of the `ghe-config-apply` run.",
10813
+ "in": "query",
10814
+ "required": false,
10815
+ "schema": {
10816
+ "type": "string"
10817
+ }
10818
+ }
10819
+ ],
10820
+ "servers": [
10821
+ {
10822
+ "url": "{protocol}://{hostname}",
10823
+ "variables": {
10824
+ "hostname": {
10825
+ "default": "HOSTNAME",
10826
+ "description": "Self-hosted Enterprise Server hostname"
10827
+ },
10828
+ "protocol": {
10829
+ "default": "http",
10830
+ "description": "Self-hosted Enterprise Server protocol"
10831
+ }
10832
+ }
10833
+ }
10834
+ ],
10835
+ "responses": {
10836
+ "200": {
10837
+ "description": "Response",
10838
+ "content": {
10839
+ "application/json": {
10840
+ "schema": {
10841
+ "type": "object",
10842
+ "properties": {
10843
+ "running": {
10844
+ "type": "boolean",
10845
+ "description": "Whether the ghe-config-apply run is still running in the environment"
10846
+ },
10847
+ "successful": {
10848
+ "type": "boolean",
10849
+ "description": "Whether the ghe-config-apply run was successful in the environment"
10850
+ },
10851
+ "nodes": {
10852
+ "type": "array",
10853
+ "items": {
10854
+ "type": "object",
10855
+ "properties": {
10856
+ "run_id": {
10857
+ "type": "string",
10858
+ "description": "The unique Run ID of the ghe-config-apply run on the host"
10859
+ },
10860
+ "hostname": {
10861
+ "type": "string",
10862
+ "description": "The hostname of the node"
10863
+ },
10864
+ "running": {
10865
+ "type": "boolean",
10866
+ "description": "Whether the ghe-config-apply run is still running on the host"
10867
+ },
10868
+ "successful": {
10869
+ "type": "boolean",
10870
+ "description": "Whether the ghe-config-apply run was successful on the host"
10871
+ }
10872
+ }
10873
+ }
10874
+ }
10875
+ }
10876
+ },
10877
+ "examples": {
10878
+ "default": {
10879
+ "value": {
10880
+ "running": true,
10881
+ "successful": false,
10882
+ "nodes": [
10883
+ {
10884
+ "run_id": "d34db33f",
10885
+ "hostname": "ghes-01.lan",
10886
+ "running": true,
10887
+ "successful": false
10888
+ }
10889
+ ]
10890
+ }
10891
+ }
10892
+ }
10893
+ }
10894
+ }
10895
+ },
10896
+ "400": {
10897
+ "description": "Bad request"
10898
+ },
10899
+ "401": {
10900
+ "description": "Unauthorized"
10901
+ }
10902
+ },
10903
+ "x-github": {
10904
+ "githubCloudOnly": false,
10905
+ "enabledForGitHubApps": false,
10906
+ "category": "enterprise-admin",
10907
+ "subcategory": "manage-ghes"
10908
+ },
10909
+ "x-octokit": {}
10910
+ },
10911
+ "post": {
10912
+ "summary": "Trigger a ghe-config-apply run",
10913
+ "description": "Triggers a run of `ghe-config-apply` from the `ghes-manage` agent on your Nomad Delegate instance.\nYou can provide a run ID or allow one to be generated randomly.",
10914
+ "operationId": "enterprise-admin/get-manage-settings",
10915
+ "tags": [
10916
+ "enterprise-admin"
10917
+ ],
10918
+ "externalDocs": {
10919
+ "description": "API method documentation",
10920
+ "url": "https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/manage-ghes#run-config-apply"
10921
+ },
10922
+ "requestBody": {
10923
+ "required": false,
10924
+ "content": {
10925
+ "application/json": {
10926
+ "schema": {
10927
+ "type": "object",
10928
+ "properties": {
10929
+ "run_id": {
10930
+ "type": "string",
10931
+ "description": "The run ID to execute `ghe-config-apply` with. If not provided, a run ID will be generated randomly."
10932
+ }
10933
+ }
10934
+ },
10935
+ "examples": {
10936
+ "default": {
10937
+ "value": {
10938
+ "run_id": "d34db33f"
10939
+ }
10940
+ }
10941
+ }
10942
+ }
10943
+ }
10944
+ },
10945
+ "servers": [
10946
+ {
10947
+ "url": "{protocol}://{hostname}",
10948
+ "variables": {
10949
+ "hostname": {
10950
+ "default": "HOSTNAME",
10951
+ "description": "Self-hosted Enterprise Server hostname"
10952
+ },
10953
+ "protocol": {
10954
+ "default": "http",
10955
+ "description": "Self-hosted Enterprise Server protocol"
10956
+ }
10957
+ }
10958
+ }
10959
+ ],
10960
+ "responses": {
10961
+ "200": {
10962
+ "description": "Response",
10963
+ "content": {
10964
+ "application/json": {
10965
+ "schema": {
10966
+ "type": "object",
10967
+ "properties": {
10968
+ "run_id": {
10969
+ "type": "string",
10970
+ "description": "Run ID the job was launched with"
10971
+ }
10972
+ }
10973
+ },
10974
+ "examples": {
10975
+ "default": {
10976
+ "value": {
10977
+ "run_id": "d34db33f"
10978
+ }
10979
+ }
10980
+ }
10981
+ }
10982
+ }
10983
+ },
10984
+ "400": {
10985
+ "description": "Bad request"
10986
+ },
10987
+ "401": {
10988
+ "description": "Unauthorized"
10989
+ }
10990
+ },
10991
+ "x-github": {
10992
+ "githubCloudOnly": false,
10993
+ "enabledForGitHubApps": false,
10994
+ "category": "enterprise-admin",
10995
+ "subcategory": "manage-ghes"
10996
+ },
10997
+ "x-octokit": {}
10998
+ }
10999
+ },
11000
+ "/manage/v1/config/apply/events": {
11001
+ "get": {
11002
+ "summary": "List events from ghe-config-apply",
11003
+ "description": "Lists events from an in-process `ghe-config-apply` run on your Github Enterprise Server instance.",
11004
+ "operationId": "enterprise-admin/get-manage-settings",
11005
+ "tags": [
11006
+ "enterprise-admin"
11007
+ ],
11008
+ "externalDocs": {
11009
+ "description": "API method documentation",
11010
+ "url": "https://docs.github.com/enterprise-server@3.12/rest/enterprise-admin/manage-ghes#get-config-apply-events"
11011
+ },
11012
+ "parameters": [
11013
+ {
11014
+ "name": "last_request_id",
11015
+ "description": "The unique ID of the last response from a host, used for pagination.",
11016
+ "in": "query",
11017
+ "required": false,
11018
+ "schema": {
11019
+ "type": "string"
11020
+ }
11021
+ }
11022
+ ],
11023
+ "servers": [
11024
+ {
11025
+ "url": "{protocol}://{hostname}",
11026
+ "variables": {
11027
+ "hostname": {
11028
+ "default": "HOSTNAME",
11029
+ "description": "Self-hosted Enterprise Server hostname"
11030
+ },
11031
+ "protocol": {
11032
+ "default": "http",
11033
+ "description": "Self-hosted Enterprise Server protocol"
11034
+ }
11035
+ }
11036
+ }
11037
+ ],
11038
+ "responses": {
11039
+ "200": {
11040
+ "description": "Response",
11041
+ "content": {
11042
+ "application/json": {
11043
+ "schema": {
11044
+ "type": "object",
11045
+ "properties": {
11046
+ "nodes": {
11047
+ "type": "array",
11048
+ "items": {
11049
+ "type": "object",
11050
+ "properties": {
11051
+ "node": {
11052
+ "type": "string",
11053
+ "description": "Hostname of the node"
11054
+ },
11055
+ "last_request_id": {
11056
+ "type": "string",
11057
+ "description": "Unique ID of the last response from a host used for pagination"
11058
+ },
11059
+ "events": {
11060
+ "type": "array",
11061
+ "items": {
11062
+ "type": "object",
11063
+ "properties": {
11064
+ "timestamp": {
11065
+ "type": "string"
11066
+ },
11067
+ "severity_text": {
11068
+ "type": "string"
11069
+ },
11070
+ "body": {
11071
+ "type": "string"
11072
+ },
11073
+ "event_name": {
11074
+ "type": "string"
11075
+ },
11076
+ "topology": {
11077
+ "type": "string"
11078
+ },
11079
+ "hostname": {
11080
+ "type": "string"
11081
+ },
11082
+ "config_run_id": {
11083
+ "type": "string"
11084
+ },
11085
+ "trace_id": {
11086
+ "type": "string"
11087
+ },
11088
+ "span_id": {
11089
+ "type": "string"
11090
+ },
11091
+ "span_parent_id": {
11092
+ "type": "string"
11093
+ },
11094
+ "span_depth": {
11095
+ "type": "integer"
11096
+ }
11097
+ }
11098
+ }
11099
+ }
11100
+ }
11101
+ }
11102
+ }
11103
+ }
11104
+ },
11105
+ "examples": {
11106
+ "default": {
11107
+ "value": {
11108
+ "nodes": [
11109
+ {
11110
+ "node": "ghes-01.lan",
11111
+ "last_request_id": "387cd628c06d606700e79be368e5e574:0cde553750689c76:0000000000000000",
11112
+ "events": [
11113
+ {
11114
+ "timestamp": "2023-01-01T13:00:00+00:00",
11115
+ "severity_text": "INFO",
11116
+ "body": "Validating services",
11117
+ "event_name": "Enterprise::ConfigApply::PhaseValidation#config_phase_validation",
11118
+ "topology": "multinode",
11119
+ "hostname": "ghes-01.lan",
11120
+ "config_run_id": "d34db33f",
11121
+ "trace_id": "387cd628c06d606700e79be368e5e574",
11122
+ "span_id": "0cde553750689c76",
11123
+ "span_parent_id": 0,
11124
+ "span_depth": 0
11125
+ }
11126
+ ]
11127
+ }
11128
+ ]
11129
+ }
11130
+ }
11131
+ }
11132
+ }
11133
+ }
11134
+ },
11135
+ "400": {
11136
+ "description": "Bad request"
11137
+ },
11138
+ "401": {
11139
+ "description": "Unauthorized"
11140
+ }
11141
+ },
11142
+ "x-github": {
11143
+ "githubCloudOnly": false,
11144
+ "enabledForGitHubApps": false,
11145
+ "category": "enterprise-admin",
11146
+ "subcategory": "manage-ghes"
11147
+ },
11148
+ "x-octokit": {}
11149
+ }
11150
+ },
10797
11151
  "/manage/v1/config/init": {
10798
11152
  "post": {
10799
11153
  "summary": "Initialize instance configuration with license upload",
@@ -17300,7 +17654,7 @@
17300
17654
  "/orgs/{org}/hooks": {
17301
17655
  "get": {
17302
17656
  "summary": "List organization webhooks",
17303
- "description": "You must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17657
+ "description": "You must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17304
17658
  "tags": [
17305
17659
  "orgs"
17306
17660
  ],
@@ -17358,7 +17712,7 @@
17358
17712
  },
17359
17713
  "post": {
17360
17714
  "summary": "Create an organization webhook",
17361
- "description": "Create a hook that posts payloads in JSON format.\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or \nedit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17715
+ "description": "Create a hook that posts payloads in JSON format.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or\nedit webhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17362
17716
  "tags": [
17363
17717
  "orgs"
17364
17718
  ],
@@ -17495,7 +17849,7 @@
17495
17849
  "/orgs/{org}/hooks/{hook_id}": {
17496
17850
  "get": {
17497
17851
  "summary": "Get an organization webhook",
17498
- "description": "Returns a webhook configured in an organization. To get only the webhook\n`config` properties, see \"[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization). \n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17852
+ "description": "Returns a webhook configured in an organization. To get only the webhook\n`config` properties, see \"[Get a webhook configuration for an organization](/rest/orgs/webhooks#get-a-webhook-configuration-for-an-organization).\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17499
17853
  "tags": [
17500
17854
  "orgs"
17501
17855
  ],
@@ -17542,7 +17896,7 @@
17542
17896
  },
17543
17897
  "patch": {
17544
17898
  "summary": "Update an organization webhook",
17545
- "description": "Updates a webhook configured in an organization. When you update a webhook,\nthe `secret` will be overwritten. If you previously had a `secret` set, you must\nprovide the same `secret` or set a new `secret` or the secret will be removed. If\nyou are only updating individual webhook `config` properties, use \"[Update a webhook\nconfiguration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)\". \n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17899
+ "description": "Updates a webhook configured in an organization. When you update a webhook,\nthe `secret` will be overwritten. If you previously had a `secret` set, you must\nprovide the same `secret` or set a new `secret` or the secret will be removed. If\nyou are only updating individual webhook `config` properties, use \"[Update a webhook\nconfiguration for an organization](/rest/orgs/webhooks#update-a-webhook-configuration-for-an-organization)\".\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17546
17900
  "tags": [
17547
17901
  "orgs"
17548
17902
  ],
@@ -17654,7 +18008,7 @@
17654
18008
  },
17655
18009
  "delete": {
17656
18010
  "summary": "Delete an organization webhook",
17657
- "description": "You must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18011
+ "description": "You must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17658
18012
  "tags": [
17659
18013
  "orgs"
17660
18014
  ],
@@ -17691,7 +18045,7 @@
17691
18045
  "/orgs/{org}/hooks/{hook_id}/config": {
17692
18046
  "get": {
17693
18047
  "summary": "Get a webhook configuration for an organization",
17694
- "description": "Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use \"[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook).\"\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18048
+ "description": "Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use \"[Get an organization webhook ](/rest/orgs/webhooks#get-an-organization-webhook).\"\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17695
18049
  "tags": [
17696
18050
  "orgs"
17697
18051
  ],
@@ -17735,7 +18089,7 @@
17735
18089
  },
17736
18090
  "patch": {
17737
18091
  "summary": "Update a webhook configuration for an organization",
17738
- "description": "Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use \"[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook).\"\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18092
+ "description": "Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use \"[Update an organization webhook ](/rest/orgs/webhooks#update-an-organization-webhook).\"\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17739
18093
  "tags": [
17740
18094
  "orgs"
17741
18095
  ],
@@ -17816,7 +18170,7 @@
17816
18170
  "/orgs/{org}/hooks/{hook_id}/deliveries": {
17817
18171
  "get": {
17818
18172
  "summary": "List deliveries for an organization webhook",
17819
- "description": "Returns a list of webhook deliveries for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18173
+ "description": "Returns a list of webhook deliveries for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17820
18174
  "tags": [
17821
18175
  "orgs"
17822
18176
  ],
@@ -17885,7 +18239,7 @@
17885
18239
  "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}": {
17886
18240
  "get": {
17887
18241
  "summary": "Get a webhook delivery for an organization webhook",
17888
- "description": "Returns a delivery for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18242
+ "description": "Returns a delivery for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17889
18243
  "tags": [
17890
18244
  "orgs"
17891
18245
  ],
@@ -17940,7 +18294,7 @@
17940
18294
  "/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts": {
17941
18295
  "post": {
17942
18296
  "summary": "Redeliver a delivery for an organization webhook",
17943
- "description": "Redeliver a delivery for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18297
+ "description": "Redeliver a delivery for a webhook configured in an organization.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17944
18298
  "tags": [
17945
18299
  "orgs"
17946
18300
  ],
@@ -17983,7 +18337,7 @@
17983
18337
  "/orgs/{org}/hooks/{hook_id}/pings": {
17984
18338
  "post": {
17985
18339
  "summary": "Ping an organization webhook",
17986
- "description": "This will trigger a [ping event](https://docs.github.com/enterprise-server@3.12/webhooks/#ping-event)\nto be sent to the hook.\n\nYou must be an organization owner to use this endpoint. \n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit \nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
18340
+ "description": "This will trigger a [ping event](https://docs.github.com/enterprise-server@3.12/webhooks/#ping-event)\nto be sent to the hook.\n\nYou must be an organization owner to use this endpoint.\n\nOAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or edit\nwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps.",
17987
18341
  "tags": [
17988
18342
  "orgs"
17989
18343
  ],
@@ -92844,6 +93198,56 @@
92844
93198
  "swift"
92845
93199
  ]
92846
93200
  },
93201
+ "vulnerability": {
93202
+ "description": "A vulnerability describing the product and its affected versions within a GitHub Security Advisory.",
93203
+ "type": "object",
93204
+ "properties": {
93205
+ "package": {
93206
+ "description": "The name of the package affected by the vulnerability.",
93207
+ "type": "object",
93208
+ "nullable": true,
93209
+ "properties": {
93210
+ "ecosystem": {
93211
+ "$ref": "#/components/schemas/security-advisory-ecosystems"
93212
+ },
93213
+ "name": {
93214
+ "type": "string",
93215
+ "description": "The unique package name within its ecosystem.",
93216
+ "nullable": true
93217
+ }
93218
+ },
93219
+ "required": [
93220
+ "ecosystem",
93221
+ "name"
93222
+ ]
93223
+ },
93224
+ "vulnerable_version_range": {
93225
+ "type": "string",
93226
+ "description": "The range of the package versions affected by the vulnerability.",
93227
+ "nullable": true
93228
+ },
93229
+ "first_patched_version": {
93230
+ "type": "string",
93231
+ "description": "The package version that resolves the vulnerability.",
93232
+ "nullable": true
93233
+ },
93234
+ "vulnerable_functions": {
93235
+ "type": "array",
93236
+ "description": "The functions in the package that are affected by the vulnerability.",
93237
+ "nullable": true,
93238
+ "readOnly": true,
93239
+ "items": {
93240
+ "type": "string"
93241
+ }
93242
+ }
93243
+ },
93244
+ "required": [
93245
+ "package",
93246
+ "vulnerable_version_range",
93247
+ "first_patched_version",
93248
+ "vulnerable_functions"
93249
+ ]
93250
+ },
92847
93251
  "security-advisory-credit-types": {
92848
93252
  "type": "string",
92849
93253
  "description": "The type of credit the user is receiving.",
@@ -93003,53 +93407,7 @@
93003
93407
  "description": "The products and respective version ranges affected by the advisory.",
93004
93408
  "nullable": true,
93005
93409
  "items": {
93006
- "type": "object",
93007
- "properties": {
93008
- "package": {
93009
- "description": "The name of the package affected by the vulnerability.",
93010
- "type": "object",
93011
- "nullable": true,
93012
- "properties": {
93013
- "ecosystem": {
93014
- "$ref": "#/components/schemas/security-advisory-ecosystems"
93015
- },
93016
- "name": {
93017
- "type": "string",
93018
- "description": "The unique package name within its ecosystem.",
93019
- "nullable": true
93020
- }
93021
- },
93022
- "required": [
93023
- "ecosystem",
93024
- "name"
93025
- ]
93026
- },
93027
- "vulnerable_version_range": {
93028
- "type": "string",
93029
- "description": "The range of the package versions affected by the vulnerability.",
93030
- "nullable": true
93031
- },
93032
- "first_patched_version": {
93033
- "type": "string",
93034
- "description": "The package version that resolve the vulnerability.",
93035
- "nullable": true
93036
- },
93037
- "vulnerable_functions": {
93038
- "type": "array",
93039
- "description": "The functions in the package that are affected by the vulnerability.",
93040
- "nullable": true,
93041
- "readOnly": true,
93042
- "items": {
93043
- "type": "string"
93044
- }
93045
- }
93046
- },
93047
- "required": [
93048
- "package",
93049
- "vulnerable_version_range",
93050
- "first_patched_version",
93051
- "vulnerable_functions"
93052
- ]
93410
+ "$ref": "#/components/schemas/vulnerability"
93053
93411
  }
93054
93412
  },
93055
93413
  "cvss": {
@@ -123283,6 +123641,171 @@
123283
123641
  "url"
123284
123642
  ]
123285
123643
  },
123644
+ "webhooks_rule": {
123645
+ "title": "branch protection rule",
123646
+ "description": "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-server@3.12/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.",
123647
+ "type": "object",
123648
+ "properties": {
123649
+ "admin_enforced": {
123650
+ "type": "boolean"
123651
+ },
123652
+ "allow_deletions_enforcement_level": {
123653
+ "type": "string",
123654
+ "enum": [
123655
+ "off",
123656
+ "non_admins",
123657
+ "everyone"
123658
+ ]
123659
+ },
123660
+ "allow_force_pushes_enforcement_level": {
123661
+ "type": "string",
123662
+ "enum": [
123663
+ "off",
123664
+ "non_admins",
123665
+ "everyone"
123666
+ ]
123667
+ },
123668
+ "authorized_actor_names": {
123669
+ "type": "array",
123670
+ "items": {
123671
+ "type": "string"
123672
+ }
123673
+ },
123674
+ "authorized_actors_only": {
123675
+ "type": "boolean"
123676
+ },
123677
+ "authorized_dismissal_actors_only": {
123678
+ "type": "boolean"
123679
+ },
123680
+ "create_protected": {
123681
+ "type": "boolean"
123682
+ },
123683
+ "created_at": {
123684
+ "type": "string",
123685
+ "format": "date-time"
123686
+ },
123687
+ "dismiss_stale_reviews_on_push": {
123688
+ "type": "boolean"
123689
+ },
123690
+ "id": {
123691
+ "type": "integer"
123692
+ },
123693
+ "ignore_approvals_from_contributors": {
123694
+ "type": "boolean"
123695
+ },
123696
+ "linear_history_requirement_enforcement_level": {
123697
+ "type": "string",
123698
+ "enum": [
123699
+ "off",
123700
+ "non_admins",
123701
+ "everyone"
123702
+ ]
123703
+ },
123704
+ "merge_queue_enforcement_level": {
123705
+ "type": "string",
123706
+ "enum": [
123707
+ "off",
123708
+ "non_admins",
123709
+ "everyone"
123710
+ ]
123711
+ },
123712
+ "name": {
123713
+ "type": "string"
123714
+ },
123715
+ "pull_request_reviews_enforcement_level": {
123716
+ "type": "string",
123717
+ "enum": [
123718
+ "off",
123719
+ "non_admins",
123720
+ "everyone"
123721
+ ]
123722
+ },
123723
+ "repository_id": {
123724
+ "type": "integer"
123725
+ },
123726
+ "require_code_owner_review": {
123727
+ "type": "boolean"
123728
+ },
123729
+ "require_last_push_approval": {
123730
+ "description": "Whether the most recent push must be approved by someone other than the person who pushed it",
123731
+ "type": "boolean"
123732
+ },
123733
+ "required_approving_review_count": {
123734
+ "type": "integer"
123735
+ },
123736
+ "required_conversation_resolution_level": {
123737
+ "type": "string",
123738
+ "enum": [
123739
+ "off",
123740
+ "non_admins",
123741
+ "everyone"
123742
+ ]
123743
+ },
123744
+ "required_deployments_enforcement_level": {
123745
+ "type": "string",
123746
+ "enum": [
123747
+ "off",
123748
+ "non_admins",
123749
+ "everyone"
123750
+ ]
123751
+ },
123752
+ "required_status_checks": {
123753
+ "type": "array",
123754
+ "items": {
123755
+ "type": "string"
123756
+ }
123757
+ },
123758
+ "required_status_checks_enforcement_level": {
123759
+ "type": "string",
123760
+ "enum": [
123761
+ "off",
123762
+ "non_admins",
123763
+ "everyone"
123764
+ ]
123765
+ },
123766
+ "signature_requirement_enforcement_level": {
123767
+ "type": "string",
123768
+ "enum": [
123769
+ "off",
123770
+ "non_admins",
123771
+ "everyone"
123772
+ ]
123773
+ },
123774
+ "strict_required_status_checks_policy": {
123775
+ "type": "boolean"
123776
+ },
123777
+ "updated_at": {
123778
+ "type": "string",
123779
+ "format": "date-time"
123780
+ }
123781
+ },
123782
+ "required": [
123783
+ "id",
123784
+ "repository_id",
123785
+ "name",
123786
+ "created_at",
123787
+ "updated_at",
123788
+ "pull_request_reviews_enforcement_level",
123789
+ "required_approving_review_count",
123790
+ "dismiss_stale_reviews_on_push",
123791
+ "require_code_owner_review",
123792
+ "authorized_dismissal_actors_only",
123793
+ "ignore_approvals_from_contributors",
123794
+ "required_status_checks",
123795
+ "required_status_checks_enforcement_level",
123796
+ "strict_required_status_checks_policy",
123797
+ "signature_requirement_enforcement_level",
123798
+ "linear_history_requirement_enforcement_level",
123799
+ "admin_enforced",
123800
+ "allow_force_pushes_enforcement_level",
123801
+ "allow_deletions_enforcement_level",
123802
+ "merge_queue_enforcement_level",
123803
+ "required_deployments_enforcement_level",
123804
+ "required_conversation_resolution_level",
123805
+ "authorized_actors_only",
123806
+ "authorized_actor_names"
123807
+ ]
123808
+ },
123286
123809
  "simple-check-suite": {
123287
123810
  "description": "A suite of checks performed on the code of a given code change",
123288
123811
  "type": "object",
@@ -125378,169 +125901,7 @@
125378
125901
  "$ref": "#/components/schemas/repository-webhooks"
125379
125902
  },
125380
125903
  "rule": {
125381
- "title": "branch protection rule",
125382
- "description": "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-server@3.12/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.",
125383
- "type": "object",
125384
- "properties": {
125385
- "admin_enforced": {
125386
- "type": "boolean"
125387
- },
125388
- "allow_deletions_enforcement_level": {
125389
- "type": "string",
125390
- "enum": [
125391
- "off",
125392
- "non_admins",
125393
- "everyone"
125394
- ]
125395
- },
125396
- "allow_force_pushes_enforcement_level": {
125397
- "type": "string",
125398
- "enum": [
125399
- "off",
125400
- "non_admins",
125401
- "everyone"
125402
- ]
125403
- },
125404
- "authorized_actor_names": {
125405
- "type": "array",
125406
- "items": {
125407
- "type": "string"
125408
- }
125409
- },
125410
- "authorized_actors_only": {
125411
- "type": "boolean"
125412
- },
125413
- "authorized_dismissal_actors_only": {
125414
- "type": "boolean"
125415
- },
125416
- "create_protected": {
125417
- "type": "boolean"
125418
- },
125419
- "created_at": {
125420
- "type": "string",
125421
- "format": "date-time"
125422
- },
125423
- "dismiss_stale_reviews_on_push": {
125424
- "type": "boolean"
125425
- },
125426
- "id": {
125427
- "type": "integer"
125428
- },
125429
- "ignore_approvals_from_contributors": {
125430
- "type": "boolean"
125431
- },
125432
- "linear_history_requirement_enforcement_level": {
125433
- "type": "string",
125434
- "enum": [
125435
- "off",
125436
- "non_admins",
125437
- "everyone"
125438
- ]
125439
- },
125440
- "merge_queue_enforcement_level": {
125441
- "type": "string",
125442
- "enum": [
125443
- "off",
125444
- "non_admins",
125445
- "everyone"
125446
- ]
125447
- },
125448
- "name": {
125449
- "type": "string"
125450
- },
125451
- "pull_request_reviews_enforcement_level": {
125452
- "type": "string",
125453
- "enum": [
125454
- "off",
125455
- "non_admins",
125456
- "everyone"
125457
- ]
125458
- },
125459
- "repository_id": {
125460
- "type": "integer"
125461
- },
125462
- "require_code_owner_review": {
125463
- "type": "boolean"
125464
- },
125465
- "require_last_push_approval": {
125466
- "description": "Whether the most recent push must be approved by someone other than the person who pushed it",
125467
- "type": "boolean"
125468
- },
125469
- "required_approving_review_count": {
125470
- "type": "integer"
125471
- },
125472
- "required_conversation_resolution_level": {
125473
- "type": "string",
125474
- "enum": [
125475
- "off",
125476
- "non_admins",
125477
- "everyone"
125478
- ]
125479
- },
125480
- "required_deployments_enforcement_level": {
125481
- "type": "string",
125482
- "enum": [
125483
- "off",
125484
- "non_admins",
125485
- "everyone"
125486
- ]
125487
- },
125488
- "required_status_checks": {
125489
- "type": "array",
125490
- "items": {
125491
- "type": "string"
125492
- }
125493
- },
125494
- "required_status_checks_enforcement_level": {
125495
- "type": "string",
125496
- "enum": [
125497
- "off",
125498
- "non_admins",
125499
- "everyone"
125500
- ]
125501
- },
125502
- "signature_requirement_enforcement_level": {
125503
- "type": "string",
125504
- "enum": [
125505
- "off",
125506
- "non_admins",
125507
- "everyone"
125508
- ]
125509
- },
125510
- "strict_required_status_checks_policy": {
125511
- "type": "boolean"
125512
- },
125513
- "updated_at": {
125514
- "type": "string",
125515
- "format": "date-time"
125516
- }
125517
- },
125518
- "required": [
125519
- "id",
125520
- "repository_id",
125521
- "name",
125522
- "created_at",
125523
- "updated_at",
125524
- "pull_request_reviews_enforcement_level",
125525
- "required_approving_review_count",
125526
- "dismiss_stale_reviews_on_push",
125527
- "require_code_owner_review",
125528
- "authorized_dismissal_actors_only",
125529
- "ignore_approvals_from_contributors",
125530
- "required_status_checks",
125531
- "required_status_checks_enforcement_level",
125532
- "strict_required_status_checks_policy",
125533
- "signature_requirement_enforcement_level",
125534
- "linear_history_requirement_enforcement_level",
125535
- "admin_enforced",
125536
- "allow_force_pushes_enforcement_level",
125537
- "allow_deletions_enforcement_level",
125538
- "merge_queue_enforcement_level",
125539
- "required_deployments_enforcement_level",
125540
- "required_conversation_resolution_level",
125541
- "authorized_actors_only",
125542
- "authorized_actor_names"
125543
- ]
125904
+ "$ref": "#/components/schemas/webhooks_rule"
125544
125905
  },
125545
125906
  "sender": {
125546
125907
  "$ref": "#/components/schemas/simple-user-webhooks"
@@ -125576,169 +125937,7 @@
125576
125937
  "$ref": "#/components/schemas/repository-webhooks"
125577
125938
  },
125578
125939
  "rule": {
125579
- "title": "branch protection rule",
125580
- "description": "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-server@3.12/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.",
125581
- "type": "object",
125582
- "properties": {
125583
- "admin_enforced": {
125584
- "type": "boolean"
125585
- },
125586
- "allow_deletions_enforcement_level": {
125587
- "type": "string",
125588
- "enum": [
125589
- "off",
125590
- "non_admins",
125591
- "everyone"
125592
- ]
125593
- },
125594
- "allow_force_pushes_enforcement_level": {
125595
- "type": "string",
125596
- "enum": [
125597
- "off",
125598
- "non_admins",
125599
- "everyone"
125600
- ]
125601
- },
125602
- "authorized_actor_names": {
125603
- "type": "array",
125604
- "items": {
125605
- "type": "string"
125606
- }
125607
- },
125608
- "authorized_actors_only": {
125609
- "type": "boolean"
125610
- },
125611
- "authorized_dismissal_actors_only": {
125612
- "type": "boolean"
125613
- },
125614
- "create_protected": {
125615
- "type": "boolean"
125616
- },
125617
- "created_at": {
125618
- "type": "string",
125619
- "format": "date-time"
125620
- },
125621
- "dismiss_stale_reviews_on_push": {
125622
- "type": "boolean"
125623
- },
125624
- "id": {
125625
- "type": "integer"
125626
- },
125627
- "ignore_approvals_from_contributors": {
125628
- "type": "boolean"
125629
- },
125630
- "linear_history_requirement_enforcement_level": {
125631
- "type": "string",
125632
- "enum": [
125633
- "off",
125634
- "non_admins",
125635
- "everyone"
125636
- ]
125637
- },
125638
- "merge_queue_enforcement_level": {
125639
- "type": "string",
125640
- "enum": [
125641
- "off",
125642
- "non_admins",
125643
- "everyone"
125644
- ]
125645
- },
125646
- "name": {
125647
- "type": "string"
125648
- },
125649
- "pull_request_reviews_enforcement_level": {
125650
- "type": "string",
125651
- "enum": [
125652
- "off",
125653
- "non_admins",
125654
- "everyone"
125655
- ]
125656
- },
125657
- "repository_id": {
125658
- "type": "integer"
125659
- },
125660
- "require_code_owner_review": {
125661
- "type": "boolean"
125662
- },
125663
- "require_last_push_approval": {
125664
- "description": "Whether the most recent push must be approved by someone other than the person who pushed it",
125665
- "type": "boolean"
125666
- },
125667
- "required_approving_review_count": {
125668
- "type": "integer"
125669
- },
125670
- "required_conversation_resolution_level": {
125671
- "type": "string",
125672
- "enum": [
125673
- "off",
125674
- "non_admins",
125675
- "everyone"
125676
- ]
125677
- },
125678
- "required_deployments_enforcement_level": {
125679
- "type": "string",
125680
- "enum": [
125681
- "off",
125682
- "non_admins",
125683
- "everyone"
125684
- ]
125685
- },
125686
- "required_status_checks": {
125687
- "type": "array",
125688
- "items": {
125689
- "type": "string"
125690
- }
125691
- },
125692
- "required_status_checks_enforcement_level": {
125693
- "type": "string",
125694
- "enum": [
125695
- "off",
125696
- "non_admins",
125697
- "everyone"
125698
- ]
125699
- },
125700
- "signature_requirement_enforcement_level": {
125701
- "type": "string",
125702
- "enum": [
125703
- "off",
125704
- "non_admins",
125705
- "everyone"
125706
- ]
125707
- },
125708
- "strict_required_status_checks_policy": {
125709
- "type": "boolean"
125710
- },
125711
- "updated_at": {
125712
- "type": "string",
125713
- "format": "date-time"
125714
- }
125715
- },
125716
- "required": [
125717
- "id",
125718
- "repository_id",
125719
- "name",
125720
- "created_at",
125721
- "updated_at",
125722
- "pull_request_reviews_enforcement_level",
125723
- "required_approving_review_count",
125724
- "dismiss_stale_reviews_on_push",
125725
- "require_code_owner_review",
125726
- "authorized_dismissal_actors_only",
125727
- "ignore_approvals_from_contributors",
125728
- "required_status_checks",
125729
- "required_status_checks_enforcement_level",
125730
- "strict_required_status_checks_policy",
125731
- "signature_requirement_enforcement_level",
125732
- "linear_history_requirement_enforcement_level",
125733
- "admin_enforced",
125734
- "allow_force_pushes_enforcement_level",
125735
- "allow_deletions_enforcement_level",
125736
- "merge_queue_enforcement_level",
125737
- "required_deployments_enforcement_level",
125738
- "required_conversation_resolution_level",
125739
- "authorized_actors_only",
125740
- "authorized_actor_names"
125741
- ]
125940
+ "$ref": "#/components/schemas/webhooks_rule"
125742
125941
  },
125743
125942
  "sender": {
125744
125943
  "$ref": "#/components/schemas/simple-user-webhooks"
@@ -125876,169 +126075,7 @@
125876
126075
  "$ref": "#/components/schemas/repository-webhooks"
125877
126076
  },
125878
126077
  "rule": {
125879
- "title": "branch protection rule",
125880
- "description": "The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-server@3.12/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.",
125881
- "type": "object",
125882
- "properties": {
125883
- "admin_enforced": {
125884
- "type": "boolean"
125885
- },
125886
- "allow_deletions_enforcement_level": {
125887
- "type": "string",
125888
- "enum": [
125889
- "off",
125890
- "non_admins",
125891
- "everyone"
125892
- ]
125893
- },
125894
- "allow_force_pushes_enforcement_level": {
125895
- "type": "string",
125896
- "enum": [
125897
- "off",
125898
- "non_admins",
125899
- "everyone"
125900
- ]
125901
- },
125902
- "authorized_actor_names": {
125903
- "type": "array",
125904
- "items": {
125905
- "type": "string"
125906
- }
125907
- },
125908
- "authorized_actors_only": {
125909
- "type": "boolean"
125910
- },
125911
- "authorized_dismissal_actors_only": {
125912
- "type": "boolean"
125913
- },
125914
- "create_protected": {
125915
- "type": "boolean"
125916
- },
125917
- "created_at": {
125918
- "type": "string",
125919
- "format": "date-time"
125920
- },
125921
- "dismiss_stale_reviews_on_push": {
125922
- "type": "boolean"
125923
- },
125924
- "id": {
125925
- "type": "integer"
125926
- },
125927
- "ignore_approvals_from_contributors": {
125928
- "type": "boolean"
125929
- },
125930
- "linear_history_requirement_enforcement_level": {
125931
- "type": "string",
125932
- "enum": [
125933
- "off",
125934
- "non_admins",
125935
- "everyone"
125936
- ]
125937
- },
125938
- "merge_queue_enforcement_level": {
125939
- "type": "string",
125940
- "enum": [
125941
- "off",
125942
- "non_admins",
125943
- "everyone"
125944
- ]
125945
- },
125946
- "name": {
125947
- "type": "string"
125948
- },
125949
- "pull_request_reviews_enforcement_level": {
125950
- "type": "string",
125951
- "enum": [
125952
- "off",
125953
- "non_admins",
125954
- "everyone"
125955
- ]
125956
- },
125957
- "repository_id": {
125958
- "type": "integer"
125959
- },
125960
- "require_code_owner_review": {
125961
- "type": "boolean"
125962
- },
125963
- "require_last_push_approval": {
125964
- "description": "Whether the most recent push must be approved by someone other than the person who pushed it",
125965
- "type": "boolean"
125966
- },
125967
- "required_approving_review_count": {
125968
- "type": "integer"
125969
- },
125970
- "required_conversation_resolution_level": {
125971
- "type": "string",
125972
- "enum": [
125973
- "off",
125974
- "non_admins",
125975
- "everyone"
125976
- ]
125977
- },
125978
- "required_deployments_enforcement_level": {
125979
- "type": "string",
125980
- "enum": [
125981
- "off",
125982
- "non_admins",
125983
- "everyone"
125984
- ]
125985
- },
125986
- "required_status_checks": {
125987
- "type": "array",
125988
- "items": {
125989
- "type": "string"
125990
- }
125991
- },
125992
- "required_status_checks_enforcement_level": {
125993
- "type": "string",
125994
- "enum": [
125995
- "off",
125996
- "non_admins",
125997
- "everyone"
125998
- ]
125999
- },
126000
- "signature_requirement_enforcement_level": {
126001
- "type": "string",
126002
- "enum": [
126003
- "off",
126004
- "non_admins",
126005
- "everyone"
126006
- ]
126007
- },
126008
- "strict_required_status_checks_policy": {
126009
- "type": "boolean"
126010
- },
126011
- "updated_at": {
126012
- "type": "string",
126013
- "format": "date-time"
126014
- }
126015
- },
126016
- "required": [
126017
- "id",
126018
- "repository_id",
126019
- "name",
126020
- "created_at",
126021
- "updated_at",
126022
- "pull_request_reviews_enforcement_level",
126023
- "required_approving_review_count",
126024
- "dismiss_stale_reviews_on_push",
126025
- "require_code_owner_review",
126026
- "authorized_dismissal_actors_only",
126027
- "ignore_approvals_from_contributors",
126028
- "required_status_checks",
126029
- "required_status_checks_enforcement_level",
126030
- "strict_required_status_checks_policy",
126031
- "signature_requirement_enforcement_level",
126032
- "linear_history_requirement_enforcement_level",
126033
- "admin_enforced",
126034
- "allow_force_pushes_enforcement_level",
126035
- "allow_deletions_enforcement_level",
126036
- "merge_queue_enforcement_level",
126037
- "required_deployments_enforcement_level",
126038
- "required_conversation_resolution_level",
126039
- "authorized_actors_only",
126040
- "authorized_actor_names"
126041
- ]
126078
+ "$ref": "#/components/schemas/webhooks_rule"
126042
126079
  },
126043
126080
  "sender": {
126044
126081
  "$ref": "#/components/schemas/simple-user-webhooks"