@octokit/types 6.38.0 → 6.39.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.
package/dist-node/index.js
CHANGED
package/dist-src/VERSION.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "6.
|
|
1
|
+
export const VERSION = "6.39.0";
|
|
@@ -22,14 +22,7 @@ export interface RequestInterface<D extends object = object> {
|
|
|
22
22
|
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
|
23
23
|
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
|
24
24
|
*/
|
|
25
|
-
<R extends
|
|
26
|
-
/**
|
|
27
|
-
* Sends a request based on endpoint options
|
|
28
|
-
*
|
|
29
|
-
* @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
|
|
30
|
-
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
|
|
31
|
-
*/
|
|
32
|
-
(route: Route, options?: RequestParameters): Promise<OctokitResponse<any>>;
|
|
25
|
+
<R extends Route>(route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise<Endpoints[R]["response"]> : Promise<OctokitResponse<any>>;
|
|
33
26
|
/**
|
|
34
27
|
* Returns a new `request` with updated route and parameters
|
|
35
28
|
*/
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.39.0";
|
|
@@ -899,8 +899,9 @@ export interface Endpoints {
|
|
|
899
899
|
"GET /organizations/{organization_id}/custom_roles": Operation<"/organizations/{organization_id}/custom_roles", "get">;
|
|
900
900
|
/**
|
|
901
901
|
* @see https://docs.github.com/rest/reference/codespaces#list-in-organization
|
|
902
|
+
* @deprecated "org_id" is now "org"
|
|
902
903
|
*/
|
|
903
|
-
"GET /orgs/{org_id}/codespaces": Operation<"/orgs/{
|
|
904
|
+
"GET /orgs/{org_id}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
|
|
904
905
|
/**
|
|
905
906
|
* @see https://docs.github.com/rest/reference/orgs#get-an-organization
|
|
906
907
|
*/
|
|
@@ -997,6 +998,10 @@ export interface Endpoints {
|
|
|
997
998
|
* @see https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-by-organization
|
|
998
999
|
*/
|
|
999
1000
|
"GET /orgs/{org}/code-scanning/alerts": Operation<"/orgs/{org}/code-scanning/alerts", "get">;
|
|
1001
|
+
/**
|
|
1002
|
+
* @see https://docs.github.com/rest/reference/codespaces#list-in-organization
|
|
1003
|
+
*/
|
|
1004
|
+
"GET /orgs/{org}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
|
|
1000
1005
|
/**
|
|
1001
1006
|
* @see https://docs.github.com/rest/reference/orgs#list-saml-sso-authorizations-for-an-organization
|
|
1002
1007
|
*/
|
|
@@ -1606,10 +1611,6 @@ export interface Endpoints {
|
|
|
1606
1611
|
* @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference
|
|
1607
1612
|
*/
|
|
1608
1613
|
"GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">;
|
|
1609
|
-
/**
|
|
1610
|
-
* @see https://docs.github.com/rest/reference/codes-of-conduct#get-the-code-of-conduct-for-a-repository
|
|
1611
|
-
*/
|
|
1612
|
-
"GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">;
|
|
1613
1614
|
/**
|
|
1614
1615
|
* @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics
|
|
1615
1616
|
*/
|
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.39.0",
|
|
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": "^12.
|
|
21
|
+
"@octokit/openapi-types": "^12.7.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@pika/pack": "^0.5.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/node": ">= 8",
|
|
29
29
|
"github-openapi-graphql-query": "^2.0.0",
|
|
30
30
|
"handlebars": "^4.7.6",
|
|
31
|
-
"json-schema-to-typescript": "^
|
|
31
|
+
"json-schema-to-typescript": "^11.0.0",
|
|
32
32
|
"lodash.set": "^4.3.2",
|
|
33
33
|
"npm-run-all": "^4.1.5",
|
|
34
34
|
"pascal-case": "^3.1.1",
|
|
@@ -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": "6.
|
|
50
|
+
"openapi-version": "6.4.0"
|
|
51
51
|
},
|
|
52
52
|
"main": "dist-node/index.js",
|
|
53
53
|
"module": "dist-web/index.js"
|