Merge remote-tracking branch 'misskey/release/2024.5.0' into future
This commit is contained in:
commit
3372e0ffe1
181 changed files with 4057 additions and 891 deletions
|
@ -351,6 +351,12 @@ type AnnouncementsRequest = operations['announcements']['requestBody']['content'
|
|||
// @public (undocumented)
|
||||
type AnnouncementsResponse = operations['announcements']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AnnouncementsShowRequest = operations['announcements___show']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AnnouncementsShowResponse = operations['announcements___show']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type Antenna = components['schemas']['Antenna'];
|
||||
|
||||
|
@ -1260,6 +1266,8 @@ declare namespace entities {
|
|||
AdminRolesUsersResponse,
|
||||
AnnouncementsRequest,
|
||||
AnnouncementsResponse,
|
||||
AnnouncementsShowRequest,
|
||||
AnnouncementsShowResponse,
|
||||
AntennasCreateRequest,
|
||||
AntennasCreateResponse,
|
||||
AntennasDeleteRequest,
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
{
|
||||
"type": "module",
|
||||
"name": "misskey-js",
|
||||
"version": "2024.5.0-beta.1",
|
||||
"version": "2024.5.0-rc.9",
|
||||
"description": "Misskey SDK for JavaScript",
|
||||
"license": "MIT",
|
||||
"main": "./built/index.js",
|
||||
"types": "./built/index.d.ts",
|
||||
"exports": {
|
||||
|
@ -30,7 +31,8 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/misskey-dev/misskey.js.git"
|
||||
"url": "https://github.com/misskey-dev/misskey.git",
|
||||
"directory": "packages/misskey-js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "7.43.1",
|
||||
|
|
|
@ -678,7 +678,7 @@ declare module '../api.js' {
|
|||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-users*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
||||
*/
|
||||
request<E extends 'admin/show-users', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
|
@ -906,6 +906,17 @@ declare module '../api.js' {
|
|||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
request<E extends 'announcements/show', P extends Endpoints[E]['req']>(
|
||||
endpoint: E,
|
||||
params: P,
|
||||
credential?: string | null,
|
||||
): Promise<SwitchCaseResponseType<E, P>>;
|
||||
|
||||
/**
|
||||
* No description provided.
|
||||
*
|
||||
|
|
|
@ -106,6 +106,8 @@ import type {
|
|||
AdminRolesUsersResponse,
|
||||
AnnouncementsRequest,
|
||||
AnnouncementsResponse,
|
||||
AnnouncementsShowRequest,
|
||||
AnnouncementsShowResponse,
|
||||
AntennasCreateRequest,
|
||||
AntennasCreateResponse,
|
||||
AntennasDeleteRequest,
|
||||
|
@ -651,6 +653,7 @@ export type Endpoints = {
|
|||
'admin/roles/update-default-policies': { req: AdminRolesUpdateDefaultPoliciesRequest; res: EmptyResponse };
|
||||
'admin/roles/users': { req: AdminRolesUsersRequest; res: AdminRolesUsersResponse };
|
||||
'announcements': { req: AnnouncementsRequest; res: AnnouncementsResponse };
|
||||
'announcements/show': { req: AnnouncementsShowRequest; res: AnnouncementsShowResponse };
|
||||
'antennas/create': { req: AntennasCreateRequest; res: AntennasCreateResponse };
|
||||
'antennas/delete': { req: AntennasDeleteRequest; res: EmptyResponse };
|
||||
'antennas/list': { req: EmptyRequest; res: AntennasListResponse };
|
||||
|
|
|
@ -109,6 +109,8 @@ export type AdminRolesUsersRequest = operations['admin___roles___users']['reques
|
|||
export type AdminRolesUsersResponse = operations['admin___roles___users']['responses']['200']['content']['application/json'];
|
||||
export type AnnouncementsRequest = operations['announcements']['requestBody']['content']['application/json'];
|
||||
export type AnnouncementsResponse = operations['announcements']['responses']['200']['content']['application/json'];
|
||||
export type AnnouncementsShowRequest = operations['announcements___show']['requestBody']['content']['application/json'];
|
||||
export type AnnouncementsShowResponse = operations['announcements___show']['responses']['200']['content']['application/json'];
|
||||
export type AntennasCreateRequest = operations['antennas___create']['requestBody']['content']['application/json'];
|
||||
export type AntennasCreateResponse = operations['antennas___create']['responses']['200']['content']['application/json'];
|
||||
export type AntennasDeleteRequest = operations['antennas___delete']['requestBody']['content']['application/json'];
|
||||
|
|
|
@ -567,7 +567,7 @@ export type paths = {
|
|||
* admin/show-users
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-users*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
||||
*/
|
||||
post: operations['admin___show-users'];
|
||||
};
|
||||
|
@ -751,6 +751,15 @@ export type paths = {
|
|||
*/
|
||||
post: operations['announcements'];
|
||||
};
|
||||
'/announcements/show': {
|
||||
/**
|
||||
* announcements/show
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
post: operations['announcements___show'];
|
||||
};
|
||||
'/antennas/create': {
|
||||
/**
|
||||
* antennas/create
|
||||
|
@ -4575,7 +4584,6 @@ export type components = {
|
|||
caseSensitive: boolean;
|
||||
/** @default false */
|
||||
localOnly: boolean;
|
||||
notify: boolean;
|
||||
/** @default false */
|
||||
excludeBots: boolean;
|
||||
/** @default false */
|
||||
|
@ -4584,6 +4592,8 @@ export type components = {
|
|||
isActive: boolean;
|
||||
/** @default false */
|
||||
hasUnreadNote: boolean;
|
||||
/** @default false */
|
||||
notify: boolean;
|
||||
};
|
||||
Clip: {
|
||||
/**
|
||||
|
@ -4618,6 +4628,8 @@ export type components = {
|
|||
followersCount: number;
|
||||
isNotResponding: boolean;
|
||||
isSuspended: boolean;
|
||||
/** @enum {string} */
|
||||
suspensionState: 'none' | 'manuallySuspended' | 'goneSuspended' | 'autoSuspendedForNotResponding';
|
||||
isBlocked: boolean;
|
||||
/** @example misskey */
|
||||
softwareName: string | null;
|
||||
|
@ -4970,6 +4982,7 @@ export type components = {
|
|||
impressumUrl: string | null;
|
||||
logoImageUrl: string | null;
|
||||
privacyPolicyUrl: string | null;
|
||||
inquiryUrl: string | null;
|
||||
serverRules: string[];
|
||||
themeColor: string | null;
|
||||
policies: components['schemas']['RolePolicies'];
|
||||
|
@ -5124,6 +5137,7 @@ export type operations = {
|
|||
shortName: string | null;
|
||||
objectStorageS3ForcePathStyle: boolean;
|
||||
privacyPolicyUrl: string | null;
|
||||
inquiryUrl: string | null;
|
||||
repositoryUrl: string | null;
|
||||
/**
|
||||
* @deprecated
|
||||
|
@ -8802,7 +8816,7 @@ export type operations = {
|
|||
* admin/show-users
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-users*
|
||||
* **Credential required**: *Yes* / **Permission**: *read:admin:show-user*
|
||||
*/
|
||||
'admin___show-users': {
|
||||
requestBody: {
|
||||
|
@ -9319,6 +9333,7 @@ export type operations = {
|
|||
impressumUrl?: string | null;
|
||||
donationUrl?: string | null;
|
||||
privacyPolicyUrl?: string | null;
|
||||
inquiryUrl?: string | null;
|
||||
useObjectStorage?: boolean;
|
||||
objectStorageBaseUrl?: string | null;
|
||||
objectStorageBucket?: string | null;
|
||||
|
@ -10085,6 +10100,60 @@ export type operations = {
|
|||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* announcements/show
|
||||
* @description No description provided.
|
||||
*
|
||||
* **Credential required**: *No*
|
||||
*/
|
||||
announcements___show: {
|
||||
requestBody: {
|
||||
content: {
|
||||
'application/json': {
|
||||
/** Format: misskey:id */
|
||||
announcementId: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': components['schemas']['Announcement'];
|
||||
};
|
||||
};
|
||||
/** @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'];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/**
|
||||
* antennas/create
|
||||
* @description No description provided.
|
||||
|
@ -10108,7 +10177,6 @@ export type operations = {
|
|||
excludeBots?: boolean;
|
||||
withReplies: boolean;
|
||||
withFile: boolean;
|
||||
notify: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -10390,7 +10458,6 @@ export type operations = {
|
|||
excludeBots?: boolean;
|
||||
withReplies?: boolean;
|
||||
withFile?: boolean;
|
||||
notify?: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -21696,6 +21763,8 @@ export type operations = {
|
|||
limit?: number;
|
||||
/** @default 0 */
|
||||
offset?: number;
|
||||
/** @default false */
|
||||
excludeChannels?: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -58,7 +58,6 @@ export const permissions = [
|
|||
'read:admin:server-info',
|
||||
'read:admin:show-moderation-log',
|
||||
'read:admin:show-user',
|
||||
'read:admin:show-users',
|
||||
'write:admin:suspend-user',
|
||||
'write:admin:approve-user',
|
||||
'write:admin:nsfw-user',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue