@octokit/types 15.0.0 → 15.0.1
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-types/RequestError.d.ts +2 -2
- package/dist-types/RequestHeaders.d.ts +2 -2
- package/dist-types/RequestOptions.d.ts +2 -2
- package/dist-types/RequestParameters.d.ts +2 -2
- package/dist-types/RequestRequestOptions.d.ts +2 -2
- package/dist-types/ResponseHeaders.d.ts +2 -2
- package/dist-types/VERSION.d.ts +1 -1
- package/dist-types/generated/Endpoints.d.ts +601 -588
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface RequestHeaders {
|
|
2
2
|
/**
|
|
3
3
|
* Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead.
|
|
4
4
|
*/
|
|
@@ -12,4 +12,4 @@ export type RequestHeaders = {
|
|
|
12
12
|
*/
|
|
13
13
|
"user-agent"?: string;
|
|
14
14
|
[header: string]: string | number | undefined;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -5,10 +5,10 @@ import type { Url } from "./Url.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Generic request options as they are returned by the `endpoint()` method
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export interface RequestOptions {
|
|
9
9
|
method: RequestMethod;
|
|
10
10
|
url: Url;
|
|
11
11
|
headers: RequestHeaders;
|
|
12
12
|
body?: any;
|
|
13
13
|
request?: RequestRequestOptions;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { Url } from "./Url.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export interface RequestParameters {
|
|
8
8
|
/**
|
|
9
9
|
* Base URL to be used when a relative URL is passed, such as `/orgs/{org}`.
|
|
10
10
|
* If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request
|
|
@@ -52,4 +52,4 @@ export type RequestParameters = {
|
|
|
52
52
|
* 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'`
|
|
53
53
|
*/
|
|
54
54
|
[parameter: string]: unknown;
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -2,7 +2,7 @@ import type { Fetch } from "./Fetch.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export interface RequestRequestOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Custom replacement for built-in fetch method. Useful for testing or request hooks.
|
|
8
8
|
*/
|
|
@@ -17,4 +17,4 @@ export type RequestRequestOptions = {
|
|
|
17
17
|
parseSuccessResponseBody?: boolean;
|
|
18
18
|
redirect?: "follow" | "error" | "manual";
|
|
19
19
|
[option: string]: any;
|
|
20
|
-
}
|
|
20
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ResponseHeaders {
|
|
2
2
|
"cache-control"?: string;
|
|
3
3
|
"content-length"?: number;
|
|
4
4
|
"content-type"?: string;
|
|
@@ -18,4 +18,4 @@ export type ResponseHeaders = {
|
|
|
18
18
|
"x-ratelimit-remaining"?: string;
|
|
19
19
|
"x-ratelimit-reset"?: string;
|
|
20
20
|
[header: string]: string | number | undefined;
|
|
21
|
-
}
|
|
21
|
+
}
|
package/dist-types/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "15.0.
|
|
1
|
+
export declare const VERSION = "15.0.1";
|