Skip to content

Commit

Permalink
chore: update misskey js
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Feb 15, 2024
1 parent 42e0261 commit b15f638
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 10 deletions.
8 changes: 8 additions & 0 deletions packages/misskey-js/etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ type AdminInviteListResponse = operations['admin/invite/list']['responses']['200
// @public (undocumented)
type AdminMetaResponse = operations['admin/meta']['responses']['200']['content']['application/json'];

// @public (undocumented)
type AdminNirilaDeleteUserLogAccessRequest = operations['admin/nirila-delete-user-log-access']['requestBody']['content']['application/json'];

// @public (undocumented)
type AdminNirilaDeleteUserLogAccessResponse = operations['admin/nirila-delete-user-log-access']['responses']['200']['content']['application/json'];

// @public (undocumented)
type AdminNotePublicToHomeRequest = operations['admin/note-public-to-home']['requestBody']['content']['application/json'];

Expand Down Expand Up @@ -1058,6 +1064,8 @@ declare namespace entities {
AnnouncementCreated,
EmptyRequest,
EmptyResponse,
AdminNirilaDeleteUserLogAccessRequest,
AdminNirilaDeleteUserLogAccessResponse,
AdminMetaResponse,
AdminAbuseUserReportsRequest,
AdminAbuseUserReportsResponse,
Expand Down
15 changes: 13 additions & 2 deletions packages/misskey-js/src/autogen/apiClientJSDoc.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T13:38:13.458Z
* version: 2023.12.2-kinel.1
* generatedAt: 2024-02-15T16:11:40.190Z
*/

import type { SwitchCaseResponseType } from '../api.js';
import type { Endpoints } from './endpoint.js';

declare module '../api.js' {
export interface APIClient {
/**
* No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access*
*/
request<E extends 'admin/nirila-delete-user-log-access', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;

/**
* No description provided.
*
Expand Down
7 changes: 5 additions & 2 deletions packages/misskey-js/src/autogen/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T13:38:13.451Z
* version: 2023.12.2-kinel.1
* generatedAt: 2024-02-15T16:11:40.187Z
*/

import type {
EmptyRequest,
EmptyResponse,
AdminNirilaDeleteUserLogAccessRequest,
AdminNirilaDeleteUserLogAccessResponse,
AdminMetaResponse,
AdminAbuseUserReportsRequest,
AdminAbuseUserReportsResponse,
Expand Down Expand Up @@ -544,6 +546,7 @@ import type {
} from './entities.js';

export type Endpoints = {
'admin/nirila-delete-user-log-access': { req: AdminNirilaDeleteUserLogAccessRequest; res: AdminNirilaDeleteUserLogAccessResponse };
'admin/meta': { req: EmptyRequest; res: AdminMetaResponse };
'admin/abuse-user-reports': { req: AdminAbuseUserReportsRequest; res: AdminAbuseUserReportsResponse };
'admin/accounts/create': { req: AdminAccountsCreateRequest; res: AdminAccountsCreateResponse };
Expand Down
6 changes: 4 additions & 2 deletions packages/misskey-js/src/autogen/entities.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T13:38:13.447Z
* version: 2023.12.2-kinel.1
* generatedAt: 2024-02-15T16:11:40.185Z
*/

import { operations } from './types.js';

export type EmptyRequest = Record<string, unknown> | undefined;
export type EmptyResponse = Record<string, unknown> | undefined;

export type AdminNirilaDeleteUserLogAccessRequest = operations['admin/nirila-delete-user-log-access']['requestBody']['content']['application/json'];
export type AdminNirilaDeleteUserLogAccessResponse = operations['admin/nirila-delete-user-log-access']['responses']['200']['content']['application/json'];
export type AdminMetaResponse = operations['admin/meta']['responses']['200']['content']['application/json'];
export type AdminAbuseUserReportsRequest = operations['admin/abuse-user-reports']['requestBody']['content']['application/json'];
export type AdminAbuseUserReportsResponse = operations['admin/abuse-user-reports']['responses']['200']['content']['application/json'];
Expand Down
4 changes: 2 additions & 2 deletions packages/misskey-js/src/autogen/models.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* version: 2023.12.1
* generatedAt: 2023-12-27T13:38:13.444Z
* version: 2023.12.2-kinel.1
* generatedAt: 2024-02-15T16:11:40.183Z
*/

import { components } from './types.js';
Expand Down
75 changes: 73 additions & 2 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* eslint @typescript-eslint/no-explicit-any: 0 */

/*
* version: 2023.12.1
* generatedAt: 2023-12-27T13:38:13.340Z
* version: 2023.12.2-kinel.1
* generatedAt: 2024-02-15T16:11:40.091Z
*/

/**
Expand All @@ -17,6 +17,15 @@ type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> &
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;

export type paths = {
'/admin/nirila-delete-user-log-access': {
/**
* admin/nirila-delete-user-log-access
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access*
*/
post: operations['admin/nirila-delete-user-log-access'];
};
'/admin/meta': {
/**
* admin/meta
Expand Down Expand Up @@ -4391,6 +4400,68 @@ export type external = Record<string, never>;

export type operations = {

/**
* admin/nirila-delete-user-log-access
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:admin:nirila-delete-user-log-access*
*/
'admin/nirila-delete-user-log-access': {
requestBody: {
content: {
'application/json': {
/** @default 10 */
limit?: number;
/** Format: misskey:id */
sinceId?: string;
/** Format: misskey:id */
untilId?: string;
email?: string;
username?: string;
/** Format: misskey:id */
userId?: string;
};
};
};
responses: {
/** @description OK (with results) */
200: {
content: {
'application/json': Record<string, never> | Record<string, never>[];
};
};
/** @description Client error */
400: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Authentication error */
401: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Forbidden error */
403: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description I'm Ai */
418: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Internal server error */
500: {
content: {
'application/json': components['schemas']['Error'];
};
};
};
};
/**
* admin/meta
* @description No description provided.
Expand Down

0 comments on commit b15f638

Please sign in to comment.