@octokit/types 9.3.0-beta.1 → 9.3.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const VERSION = "9.3.0-beta.1";
5
+ const VERSION = "9.3.0";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "9.3.0-beta.1";
1
+ export const VERSION = "9.3.0";
@@ -16,6 +16,6 @@ export type EndpointDefaults = RequestParameters & {
16
16
  };
17
17
  mediaType: {
18
18
  format: string;
19
- previews?: string[];
19
+ previews: string[];
20
20
  };
21
21
  };
@@ -24,7 +24,7 @@ export type RequestParameters = {
24
24
  */
25
25
  format?: string;
26
26
  /**
27
- * Custom media type names of {@link https://docs.github.com/en/graphql/overview/schema-previews|GraphQL API Previews} without the `-preview` suffix.
27
+ * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix.
28
28
  * Example for single preview: `['squirrel-girl']`.
29
29
  * Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`.
30
30
  */
@@ -1 +1 @@
1
- export declare const VERSION = "9.3.0-beta.1";
1
+ export declare const VERSION = "9.3.0";
@@ -16,8 +16,13 @@ type ExtractRequestBody<T> = "requestBody" extends keyof T ? "content" extends k
16
16
  }[keyof T["requestBody"]];
17
17
  } : {};
18
18
  type ToOctokitParameters<T> = ExtractParameters<T> & ExtractRequestBody<Required<T>>;
19
- type Operation<Url extends keyof paths, Method extends keyof paths[Url]> = {
20
- parameters: ToOctokitParameters<paths[Url][Method]>;
19
+ type RequiredPreview<T> = T extends string ? {
20
+ mediaType: {
21
+ previews: [T, ...string[]];
22
+ };
23
+ } : {};
24
+ type Operation<Url extends keyof paths, Method extends keyof paths[Url], preview = unknown> = {
25
+ parameters: ToOctokitParameters<paths[Url][Method]> & RequiredPreview<preview>;
21
26
  request: {
22
27
  method: Method extends keyof MethodsMap ? MethodsMap[Method] : never;
23
28
  url: Url;
@@ -2778,6 +2783,10 @@ export interface Endpoints {
2778
2783
  * @see https://docs.github.com/rest/reference/actions#create-a-required-workflow
2779
2784
  */
2780
2785
  "POST /orgs/{org}/actions/required_workflows": Operation<"/orgs/{org}/actions/required_workflows", "post">;
2786
+ /**
2787
+ * @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization
2788
+ */
2789
+ "POST /orgs/{org}/actions/runners/generate-jitconfig": Operation<"/orgs/{org}/actions/runners/generate-jitconfig", "post">;
2781
2790
  /**
2782
2791
  * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization
2783
2792
  */
@@ -2886,6 +2895,10 @@ export interface Endpoints {
2886
2895
  * @see https://docs.github.com/rest/reference/actions#re-run-job-for-workflow-run
2887
2896
  */
2888
2897
  "POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun", "post">;
2898
+ /**
2899
+ * @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository
2900
+ */
2901
+ "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig": Operation<"/repos/{owner}/{repo}/actions/runners/generate-jitconfig", "post">;
2889
2902
  /**
2890
2903
  * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository
2891
2904
  */
package/dist-web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "9.3.0-beta.1";
1
+ const VERSION = "9.3.0";
2
2
 
3
3
  export { VERSION };
4
4
  //# sourceMappingURL=index.js.map
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": "9.3.0-beta.1",
4
+ "version": "9.3.0",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist-*/**",
@@ -10,7 +10,7 @@
10
10
  "source": "dist-src/index.js",
11
11
  "types": "dist-types/index.d.ts",
12
12
  "octokit": {
13
- "openapi-version": "11.2.0"
13
+ "openapi-version": "12.0.0"
14
14
  },
15
15
  "main": "dist-node/index.js",
16
16
  "module": "dist-web/index.js",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "repository": "github:octokit/types.ts",
27
27
  "dependencies": {
28
- "@octokit/openapi-types": "^17.2.0"
28
+ "@octokit/openapi-types": "^18.0.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@pika/pack": "^0.3.7",