"cancelInvitation" not found

Describe the bug
A method, which should be available according to the documentation of octokit, does not exist.
I get error Unhandled error: TypeError: github.orgs.cancelInvitation is not a function.
Other like github.orgs.listPendingInvitations works as expected.

To Reproduce

- name: CancelInvitation
  uses: actions/github-script@v4
  [...]
  script: |
       github.orgs.cancelInvitation({
                org: "organization",
                invitation_id: 00000,
        });

A call from console.log('Test: ', github.orgs); shows that the method is really missing.

Expected behavior
That the method can be used, as the other.

Desktop (please complete the following information):

  • OS: Win10
  • Browser Firefox, Chrome

Additional context
coming from this help ticket octokit/plugin-rest-endpoint-methods.js#403