@octokit/types 6.7.0 → 6.8.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/dist-node/index.js
CHANGED
package/dist-src/VERSION.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "6.
|
|
1
|
+
export const VERSION = "6.8.2";
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.8.2";
|
|
@@ -40,18 +40,22 @@ declare type MethodsMap = {
|
|
|
40
40
|
};
|
|
41
41
|
declare type SuccessStatuses = 200 | 201 | 204;
|
|
42
42
|
declare type RedirectStatuses = 301 | 302;
|
|
43
|
-
declare type
|
|
43
|
+
declare type EmptyResponseStatuses = 201 | 204;
|
|
44
|
+
declare type KnownJsonResponseTypes = "application/json" | "application/scim+json" | "text/html";
|
|
44
45
|
declare type SuccessResponseDataType<Responses> = {
|
|
45
46
|
[K in SuccessStatuses & keyof Responses]: GetContentKeyIfPresent<Responses[K]> extends never ? never : OctokitResponse<GetContentKeyIfPresent<Responses[K]>, K>;
|
|
46
47
|
}[SuccessStatuses & keyof Responses];
|
|
47
48
|
declare type RedirectResponseDataType<Responses> = {
|
|
48
49
|
[K in RedirectStatuses & keyof Responses]: OctokitResponse<unknown, K>;
|
|
49
50
|
}[RedirectStatuses & keyof Responses];
|
|
51
|
+
declare type EmptyResponseDataType<Responses> = {
|
|
52
|
+
[K in EmptyResponseStatuses & keyof Responses]: OctokitResponse<never, K>;
|
|
53
|
+
}[EmptyResponseStatuses & keyof Responses];
|
|
50
54
|
declare type GetContentKeyIfPresent<T> = "content" extends keyof T ? DataType<T["content"]> : DataType<T>;
|
|
51
55
|
declare type DataType<T> = {
|
|
52
56
|
[K in KnownJsonResponseTypes & keyof T]: T[K];
|
|
53
57
|
}[KnownJsonResponseTypes & keyof T];
|
|
54
|
-
declare type ExtractOctokitResponse<R> = "responses" extends keyof R ? SuccessResponseDataType<R["responses"]> extends never ? RedirectResponseDataType<R["responses"]> extends never ?
|
|
58
|
+
declare type ExtractOctokitResponse<R> = "responses" extends keyof R ? SuccessResponseDataType<R["responses"]> extends never ? RedirectResponseDataType<R["responses"]> extends never ? EmptyResponseDataType<R["responses"]> : RedirectResponseDataType<R["responses"]> : SuccessResponseDataType<R["responses"]> : unknown;
|
|
55
59
|
declare type EndpointsWithMissingRequiredResponseDataSchema = {
|
|
56
60
|
"/app/hook/config": "get" | "patch";
|
|
57
61
|
"/app/installations/{installation_id}/access_tokens": "post";
|
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.8.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist-*/",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": "https://github.com/octokit/types.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@octokit/openapi-types": "^
|
|
21
|
+
"@octokit/openapi-types": "^4.0.0",
|
|
22
22
|
"@types/node": ">= 8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
@@ -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.9.0"
|
|
51
51
|
},
|
|
52
52
|
"main": "dist-node/index.js",
|
|
53
53
|
"module": "dist-web/index.js"
|