1+ import type { components } from '@octokit/openapi-types' ;
12import type { Endpoints } from '@octokit/types' ;
23
34import type { Link } from '../../types' ;
@@ -10,12 +11,6 @@ export interface GitHubRESTError {
1011export type ListNotificationsForAuthenticatedUserResponse =
1112 Endpoints [ 'GET /notifications' ] [ 'response' ] [ 'data' ] ;
1213
13- export type MarkNotificationThreadAsReadResponse =
14- Endpoints [ 'PATCH /notifications/threads/{thread_id}' ] [ 'response' ] [ 'data' ] ;
15-
16- export type MarkNotificationThreadAsDoneResponse =
17- Endpoints [ 'DELETE /notifications/threads/{thread_id}' ] [ 'response' ] [ 'data' ] ;
18-
1914export type IgnoreNotificationThreadSubscriptionResponse =
2015 Endpoints [ 'PUT /notifications/threads/{thread_id}/subscription' ] [ 'response' ] [ 'data' ] ;
2116
@@ -31,5 +26,18 @@ export type GetReleaseResponse =
3126export type RawGitHubNotification =
3227 Endpoints [ 'GET /notifications' ] [ 'response' ] [ 'data' ] [ number ] ;
3328
34- // FIXME - replace this if possible
35- export type RawUser = Endpoints [ 'GET /users/{username}' ] [ 'response' ] [ 'data' ] ;
29+ export type RawUser = components [ 'schemas' ] [ 'simple-user' ] ;
30+
31+ /**
32+ * These API endpoints don't return a response body
33+ */
34+ // HEAD request - no response body
35+ export type HeadNotificationsResponse = NoResponseBody ;
36+
37+ // Endpoints['PATCH /notifications/threads/{thread_id}']['response']['data'];
38+ export type MarkNotificationThreadAsReadResponse = NoResponseBody ;
39+
40+ // Endpoints['DELETE /notifications/threads/{thread_id}']['response']['data']
41+ export type MarkNotificationThreadAsDoneResponse = NoResponseBody ;
42+
43+ type NoResponseBody = void ;
0 commit comments