You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make params non-nullable even if all params are optional (#1022)
In 5.x, an optional query parameter's type could be referenced with an
expression such as
type myQueryType = operations['myOperation']['parameters']['query']
In 6.0, that only works if there is at least one mandatory query
parameter in addition to the optional one. This makes query parameter
types much more awkward to reference in application code if all the
parameters are optional.
Revert to the 5.x behavior: if there are any parameters, optional or
not, the `parameters` object is always present. If there are any query
parameters, the `query` object is always present, same with `path` and
the other parameter types.
Fixes#995
* You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`.
6547
6547
*/
6548
-
parameters?: {
6548
+
parameters: {
6549
6549
/** @description The client ID of your GitHub app. */
* @description **Deprecation Notice:** GitHub Enterprise Server will discontinue the [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations), which is used by integrations to create personal access tokens and OAuth tokens, and you must now create these tokens using our [web application flow](https://docs.github.com/[email protected]/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/[email protected]/rest/reference/oauth-authorizations) will be removed on November, 13, 2020. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-auth-endpoint/).
6705
6705
*/
6706
-
parameters?: {
6706
+
parameters: {
6707
6707
/** @description The client ID of your GitHub app. */
* You can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/[email protected]/github/getting-started-with-github/githubs-products)" in the GitHub Help documentation.
7504
7504
*/
7505
-
parameters?: {
7505
+
parameters: {
7506
7506
/** @description Page token */
7507
7507
/** @description Limits the list to groups containing the text in the group name */
* @description List all pre-receive hooks that are enabled or testing for this organization as well as any disabled hooks that can be configured at the organization level. Globally disabled pre-receive hooks that do not allow downstream configuration are not listed.
7566
7566
*/
7567
-
parameters?: {
7567
+
parameters: {
7568
7568
/** @description The sort order for the response collection. */
* The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.
8018
8018
*/
8019
-
parameters?: {
8019
+
parameters: {
8020
8020
/** @description The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. */
8021
8021
/** @description Filter analyses belonging to the same SARIF upload. */
* endpoint. GitHub Apps must have the `members` organization permission and `metadata` repository permission to use this
8049
8049
* endpoint.
8050
8050
*/
8051
-
parameters?: {
8051
+
parameters: {
8052
8052
/** @description Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */
8053
8053
/** @description Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */
* @description List all pre-receive hooks that are enabled or testing for this repository as well as any disabled hooks that are allowed to be enabled at the repository level. Pre-receive hooks that are disabled at a higher level and are not configurable will not be listed.
* - For GitHub Enterprise Server, this endpoint will only list repositories available to all users on the enterprise.
8553
8553
* - Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/[email protected]/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories.
8554
8554
*/
8555
-
parameters?: {
8555
+
parameters: {
8556
8556
/** @description Specifies the types of repositories to return. This endpoint will only list repositories available to all users on the enterprise. */
* - If the user signs in, their GitHub Enterprise Server account is linked to this entry.
8740
8740
* - If the user does not sign in (or does not create a new account when prompted), they are not added to the GitHub Enterprise Server enterprise, and the external identity `null` entry remains in place.
0 commit comments