@octokit/types 6.36.0 → 6.38.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 = "6.36.0";
5
+ const VERSION = "6.38.0";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "6.36.0";
1
+ export const VERSION = "6.38.0";
@@ -22,7 +22,14 @@ 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 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>>;
25
+ <R extends keyof Endpoints>(route: R, options?: Endpoints[R]["parameters"] & RequestParameters): Promise<Endpoints[R]["response"]>;
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>>;
26
33
  /**
27
34
  * Returns a new `request` with updated route and parameters
28
35
  */
@@ -1 +1 @@
1
- export declare const VERSION = "6.36.0";
1
+ export declare const VERSION = "6.38.0";
@@ -197,6 +197,10 @@ export interface Endpoints {
197
197
  * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member
198
198
  */
199
199
  "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">;
200
+ /**
201
+ * @see https://docs.github.com/rest/reference/codespaces
202
+ */
203
+ "DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}": Operation<"/orgs/{org}/members/{username}/codespaces/{codespace_name}", "delete">;
200
204
  /**
201
205
  * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user
202
206
  */
@@ -285,6 +289,14 @@ export interface Endpoints {
285
289
  * @see https://docs.github.com/rest/reference/actions#delete-an-artifact
286
290
  */
287
291
  "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">;
292
+ /**
293
+ * @see https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
294
+ */
295
+ "DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}": Operation<"/repos/{owner}/{repo}/actions/caches/{cache_id}", "delete">;
296
+ /**
297
+ * @see https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key
298
+ */
299
+ "DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}": Operation<"/repos/{owner}/{repo}/actions/caches", "delete">;
288
300
  /**
289
301
  * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository
290
302
  */
@@ -885,6 +897,10 @@ export interface Endpoints {
885
897
  * @see https://docs.github.com/rest/reference/orgs#list-custom-repository-roles-in-an-organization
886
898
  */
887
899
  "GET /organizations/{organization_id}/custom_roles": Operation<"/organizations/{organization_id}/custom_roles", "get">;
900
+ /**
901
+ * @see https://docs.github.com/rest/reference/codespaces#list-in-organization
902
+ */
903
+ "GET /orgs/{org_id}/codespaces": Operation<"/orgs/{org_id}/codespaces", "get">;
888
904
  /**
889
905
  * @see https://docs.github.com/rest/reference/orgs#get-an-organization
890
906
  */
@@ -897,6 +913,10 @@ export interface Endpoints {
897
913
  * @see https://docs.github.com/rest/reference/actions#list-repositories-with-github-actions-cache-usage-for-an-organization
898
914
  */
899
915
  "GET /orgs/{org}/actions/cache/usage-by-repository": Operation<"/orgs/{org}/actions/cache/usage-by-repository", "get">;
916
+ /**
917
+ * @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
918
+ */
919
+ "GET /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "get">;
900
920
  /**
901
921
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization
902
922
  */
@@ -1269,6 +1289,10 @@ export interface Endpoints {
1269
1289
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-cache-usage-for-a-repository
1270
1290
  */
1271
1291
  "GET /repos/{owner}/{repo}/actions/cache/usage": Operation<"/repos/{owner}/{repo}/actions/cache/usage", "get">;
1292
+ /**
1293
+ * @see https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository
1294
+ */
1295
+ "GET /repos/{owner}/{repo}/actions/caches": Operation<"/repos/{owner}/{repo}/actions/caches", "get">;
1272
1296
  /**
1273
1297
  * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run
1274
1298
  */
@@ -1277,6 +1301,10 @@ export interface Endpoints {
1277
1301
  * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run
1278
1302
  */
1279
1303
  "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">;
1304
+ /**
1305
+ * @see https://docs.github.com/rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository
1306
+ */
1307
+ "GET /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "get">;
1280
1308
  /**
1281
1309
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository
1282
1310
  */
@@ -2734,6 +2762,10 @@ export interface Endpoints {
2734
2762
  * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation
2735
2763
  */
2736
2764
  "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">;
2765
+ /**
2766
+ * @see https://docs.github.com/rest/reference/codespaces
2767
+ */
2768
+ "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop": Operation<"/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop", "post">;
2737
2769
  /**
2738
2770
  * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration
2739
2771
  */
@@ -3166,6 +3198,10 @@ export interface Endpoints {
3166
3198
  * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint
3167
3199
  */
3168
3200
  "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">;
3201
+ /**
3202
+ * @see https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise
3203
+ */
3204
+ "PUT /enterprises/{enterprise}/actions/oidc/customization/issuer": Operation<"/enterprises/{enterprise}/actions/oidc/customization/issuer", "put">;
3169
3205
  /**
3170
3206
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-enterprise
3171
3207
  */
@@ -3218,6 +3254,10 @@ export interface Endpoints {
3218
3254
  * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription
3219
3255
  */
3220
3256
  "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">;
3257
+ /**
3258
+ * @see https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization
3259
+ */
3260
+ "PUT /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "put">;
3221
3261
  /**
3222
3262
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization
3223
3263
  */
@@ -3318,6 +3358,10 @@ export interface Endpoints {
3318
3358
  * @see https://docs.github.com/rest/reference/projects#add-project-collaborator
3319
3359
  */
3320
3360
  "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put">;
3361
+ /**
3362
+ * @see https://docs.github.com/rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository
3363
+ */
3364
+ "PUT /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "put">;
3321
3365
  /**
3322
3366
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository
3323
3367
  */
package/dist-web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "6.36.0";
1
+ const VERSION = "6.38.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": "6.36.0",
4
+ "version": "6.38.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.2.0"
21
+ "@octokit/openapi-types": "^12.5.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@pika/pack": "^0.5.0",
@@ -26,7 +26,7 @@
26
26
  "@pika/plugin-build-web": "^0.9.0",
27
27
  "@pika/plugin-ts-standard-pkg": "^0.9.0",
28
28
  "@types/node": ">= 8",
29
- "github-openapi-graphql-query": "^1.0.11",
29
+ "github-openapi-graphql-query": "^2.0.0",
30
30
  "handlebars": "^4.7.6",
31
31
  "json-schema-to-typescript": "^10.0.0",
32
32
  "lodash.set": "^4.3.2",
@@ -34,7 +34,7 @@
34
34
  "pascal-case": "^3.1.1",
35
35
  "pika-plugin-merge-properties": "^1.0.6",
36
36
  "prettier": "^2.0.0",
37
- "semantic-release": "^18.0.0",
37
+ "semantic-release": "^19.0.3",
38
38
  "semantic-release-plugin-update-version-in-files": "^1.0.0",
39
39
  "sort-keys": "^4.2.0",
40
40
  "string-to-jsdoc-comment": "^1.0.0",
@@ -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": "5.13.0"
50
+ "openapi-version": "6.2.1"
51
51
  },
52
52
  "main": "dist-node/index.js",
53
53
  "module": "dist-web/index.js"