@octokit/types 6.14.2 → 6.16.2
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.
- package/README.md +2 -1
- package/dist-node/index.js +1 -1
- package/dist-src/VERSION.js +1 -1
- package/dist-types/VERSION.d.ts +1 -1
- package/dist-types/generated/Endpoints.d.ts +16 -0
- package/dist-web/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,7 +27,8 @@ See all exported types at https://octokit.github.io/types.ts
|
|
|
27
27
|
```ts
|
|
28
28
|
import { Endpoints } from "@octokit/types";
|
|
29
29
|
|
|
30
|
-
type listUserReposParameters =
|
|
30
|
+
type listUserReposParameters =
|
|
31
|
+
Endpoints["GET /repos/{owner}/{repo}"]["parameters"];
|
|
31
32
|
type listUserReposResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"];
|
|
32
33
|
|
|
33
34
|
async function listRepos(
|
package/dist-node/index.js
CHANGED
package/dist-src/VERSION.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "6.
|
|
1
|
+
export const VERSION = "6.16.2";
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.16.2";
|
|
@@ -1466,6 +1466,10 @@ export interface Endpoints {
|
|
|
1466
1466
|
* @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics
|
|
1467
1467
|
*/
|
|
1468
1468
|
"GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">;
|
|
1469
|
+
/**
|
|
1470
|
+
* @see https://docs.github.com/rest/reference/repos#compare-two-commits
|
|
1471
|
+
*/
|
|
1472
|
+
"GET /repos/{owner}/{repo}/compare/{basehead}": Operation<"/repos/{owner}/{repo}/compare/{basehead}", "get">;
|
|
1469
1473
|
/**
|
|
1470
1474
|
* @see https://docs.github.com/rest/reference/repos#compare-two-commits
|
|
1471
1475
|
*/
|
|
@@ -2582,6 +2586,10 @@ export interface Endpoints {
|
|
|
2582
2586
|
* @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository
|
|
2583
2587
|
*/
|
|
2584
2588
|
"POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">;
|
|
2589
|
+
/**
|
|
2590
|
+
* @see https://docs.github.com/rest/reference/actions#approve-a-workflow-run-for-a-fork-pull-request
|
|
2591
|
+
*/
|
|
2592
|
+
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/approve", "post">;
|
|
2585
2593
|
/**
|
|
2586
2594
|
* @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run
|
|
2587
2595
|
*/
|
|
@@ -2650,6 +2658,10 @@ export interface Endpoints {
|
|
|
2650
2658
|
* @see https://docs.github.com/rest/reference/repos#create-a-commit-comment
|
|
2651
2659
|
*/
|
|
2652
2660
|
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">;
|
|
2661
|
+
/**
|
|
2662
|
+
* @see https://docs.github.com/rest/reference/apps#create-a-content-attachment
|
|
2663
|
+
*/
|
|
2664
|
+
"POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments": Operation<"/repos/{owner}/{repo}/content_references/{content_reference_id}/attachments", "post", "corsair">;
|
|
2653
2665
|
/**
|
|
2654
2666
|
* @see https://docs.github.com/rest/reference/repos#create-a-deployment
|
|
2655
2667
|
*/
|
|
@@ -2782,6 +2794,10 @@ export interface Endpoints {
|
|
|
2782
2794
|
* @see https://docs.github.com/rest/reference/repos#create-a-release
|
|
2783
2795
|
*/
|
|
2784
2796
|
"POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">;
|
|
2797
|
+
/**
|
|
2798
|
+
* @see https://docs.github.com/rest/reference/reactions/#create-reaction-for-a-release
|
|
2799
|
+
*/
|
|
2800
|
+
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions": Operation<"/repos/{owner}/{repo}/releases/{release_id}/reactions", "post", "squirrel-girl">;
|
|
2785
2801
|
/**
|
|
2786
2802
|
* @see https://docs.github.com/rest/reference/repos#create-a-commit-status
|
|
2787
2803
|
*/
|
package/dist-web/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octokit/types",
|
|
3
3
|
"description": "Shared TypeScript definitions for Octokit projects",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.16.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist-*/",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": "github:octokit/types.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@octokit/openapi-types": "^7.
|
|
21
|
+
"@octokit/openapi-types": "^7.2.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@octokit/graphql": "^4.2.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"source": "dist-src/index.js",
|
|
48
48
|
"types": "dist-types/index.d.ts",
|
|
49
49
|
"octokit": {
|
|
50
|
-
"openapi-version": "2.
|
|
50
|
+
"openapi-version": "2.21.2"
|
|
51
51
|
},
|
|
52
52
|
"main": "dist-node/index.js",
|
|
53
53
|
"module": "dist-web/index.js"
|