@octokit/types 6.37.1 → 6.38.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const VERSION = "6.37.1";
5
+ const VERSION = "6.38.2";
6
6
 
7
7
  exports.VERSION = VERSION;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export const VERSION = "6.37.1";
1
+ export const VERSION = "6.38.2";
@@ -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 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>>;
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
  */
@@ -1 +1 @@
1
- export declare const VERSION = "6.37.1";
1
+ export declare const VERSION = "6.38.2";
@@ -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,11 @@ 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
+ * @deprecated "org_id" is now "org"
903
+ */
904
+ "GET /orgs/{org_id}/codespaces": Operation<"/orgs/{org}/codespaces", "get">;
888
905
  /**
889
906
  * @see https://docs.github.com/rest/reference/orgs#get-an-organization
890
907
  */
@@ -897,6 +914,10 @@ export interface Endpoints {
897
914
  * @see https://docs.github.com/rest/reference/actions#list-repositories-with-github-actions-cache-usage-for-an-organization
898
915
  */
899
916
  "GET /orgs/{org}/actions/cache/usage-by-repository": Operation<"/orgs/{org}/actions/cache/usage-by-repository", "get">;
917
+ /**
918
+ * @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
919
+ */
920
+ "GET /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "get">;
900
921
  /**
901
922
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization
902
923
  */
@@ -977,6 +998,10 @@ export interface Endpoints {
977
998
  * @see https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-by-organization
978
999
  */
979
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">;
980
1005
  /**
981
1006
  * @see https://docs.github.com/rest/reference/orgs#list-saml-sso-authorizations-for-an-organization
982
1007
  */
@@ -1269,6 +1294,10 @@ export interface Endpoints {
1269
1294
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-cache-usage-for-a-repository
1270
1295
  */
1271
1296
  "GET /repos/{owner}/{repo}/actions/cache/usage": Operation<"/repos/{owner}/{repo}/actions/cache/usage", "get">;
1297
+ /**
1298
+ * @see https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository
1299
+ */
1300
+ "GET /repos/{owner}/{repo}/actions/caches": Operation<"/repos/{owner}/{repo}/actions/caches", "get">;
1272
1301
  /**
1273
1302
  * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run
1274
1303
  */
@@ -1277,6 +1306,10 @@ export interface Endpoints {
1277
1306
  * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run
1278
1307
  */
1279
1308
  "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">;
1309
+ /**
1310
+ * @see https://docs.github.com/rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository
1311
+ */
1312
+ "GET /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "get">;
1280
1313
  /**
1281
1314
  * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository
1282
1315
  */
@@ -1578,10 +1611,6 @@ export interface Endpoints {
1578
1611
  * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference
1579
1612
  */
1580
1613
  "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">;
1581
- /**
1582
- * @see https://docs.github.com/rest/reference/codes-of-conduct#get-the-code-of-conduct-for-a-repository
1583
- */
1584
- "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">;
1585
1614
  /**
1586
1615
  * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics
1587
1616
  */
@@ -2734,6 +2763,10 @@ export interface Endpoints {
2734
2763
  * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation
2735
2764
  */
2736
2765
  "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">;
2766
+ /**
2767
+ * @see https://docs.github.com/rest/reference/codespaces
2768
+ */
2769
+ "POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop": Operation<"/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop", "post">;
2737
2770
  /**
2738
2771
  * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration
2739
2772
  */
@@ -3166,6 +3199,10 @@ export interface Endpoints {
3166
3199
  * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint
3167
3200
  */
3168
3201
  "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">;
3202
+ /**
3203
+ * @see https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise
3204
+ */
3205
+ "PUT /enterprises/{enterprise}/actions/oidc/customization/issuer": Operation<"/enterprises/{enterprise}/actions/oidc/customization/issuer", "put">;
3169
3206
  /**
3170
3207
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-enterprise
3171
3208
  */
@@ -3218,6 +3255,10 @@ export interface Endpoints {
3218
3255
  * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription
3219
3256
  */
3220
3257
  "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">;
3258
+ /**
3259
+ * @see https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization
3260
+ */
3261
+ "PUT /orgs/{org}/actions/oidc/customization/sub": Operation<"/orgs/{org}/actions/oidc/customization/sub", "put">;
3221
3262
  /**
3222
3263
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization
3223
3264
  */
@@ -3318,6 +3359,10 @@ export interface Endpoints {
3318
3359
  * @see https://docs.github.com/rest/reference/projects#add-project-collaborator
3319
3360
  */
3320
3361
  "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put">;
3362
+ /**
3363
+ * @see https://docs.github.com/rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository
3364
+ */
3365
+ "PUT /repos/{owner}/{repo}/actions/oidc/customization/sub": Operation<"/repos/{owner}/{repo}/actions/oidc/customization/sub", "put">;
3321
3366
  /**
3322
3367
  * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository
3323
3368
  */
package/dist-web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "6.37.1";
1
+ const VERSION = "6.38.2";
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.37.1",
4
+ "version": "6.38.2",
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.4.0"
21
+ "@octokit/openapi-types": "^12.6.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@pika/pack": "^0.5.0",
@@ -26,9 +26,9 @@
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
- "json-schema-to-typescript": "^10.0.0",
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.1.0"
50
+ "openapi-version": "6.3.1"
51
51
  },
52
52
  "main": "dist-node/index.js",
53
53
  "module": "dist-web/index.js"