This commit is contained in:
syuilo 2025-09-25 16:01:27 +09:00
parent 41336d880f
commit 43f82593ab
2 changed files with 21 additions and 37 deletions

View File

@ -23,7 +23,7 @@ export const packedNoteDraftSchema = {
}, },
cw: { cw: {
type: 'string', type: 'string',
optional: true, nullable: true, optional: false, nullable: true,
}, },
userId: { userId: {
type: 'string', type: 'string',
@ -37,27 +37,23 @@ export const packedNoteDraftSchema = {
}, },
replyId: { replyId: {
type: 'string', type: 'string',
optional: true, nullable: true, optional: false, nullable: true,
format: 'id', format: 'id',
example: 'xxxxxxxxxx',
}, },
renoteId: { renoteId: {
type: 'string', type: 'string',
optional: true, nullable: true, optional: false, nullable: true,
format: 'id', format: 'id',
example: 'xxxxxxxxxx',
}, },
reply: { reply: {
type: 'object', type: 'object',
optional: true, nullable: true, optional: true, nullable: true,
ref: 'Note', ref: 'Note',
description: 'The reply target note contents if exists. If the reply target has been deleted since the draft was created, this will be null while replyId is not null.',
}, },
renote: { renote: {
type: 'object', type: 'object',
optional: true, nullable: true, optional: true, nullable: true,
ref: 'Note', ref: 'Note',
description: 'The renote target note contents if exists. If the renote target has been deleted since the draft was created, this will be null while renoteId is not null.',
}, },
visibility: { visibility: {
type: 'string', type: 'string',
@ -66,7 +62,7 @@ export const packedNoteDraftSchema = {
}, },
visibleUserIds: { visibleUserIds: {
type: 'array', type: 'array',
optional: true, nullable: false, optional: false, nullable: false,
items: { items: {
type: 'string', type: 'string',
optional: false, nullable: false, optional: false, nullable: false,
@ -75,7 +71,7 @@ export const packedNoteDraftSchema = {
}, },
fileIds: { fileIds: {
type: 'array', type: 'array',
optional: true, nullable: false, optional: false, nullable: false,
items: { items: {
type: 'string', type: 'string',
optional: false, nullable: false, optional: false, nullable: false,
@ -93,11 +89,11 @@ export const packedNoteDraftSchema = {
}, },
hashtag: { hashtag: {
type: 'string', type: 'string',
optional: true, nullable: false, optional: false, nullable: true,
}, },
poll: { poll: {
type: 'object', type: 'object',
optional: true, nullable: true, optional: false, nullable: true,
properties: { properties: {
expiresAt: { expiresAt: {
type: 'string', type: 'string',
@ -124,9 +120,8 @@ export const packedNoteDraftSchema = {
}, },
channelId: { channelId: {
type: 'string', type: 'string',
optional: true, nullable: true, optional: false, nullable: true,
format: 'id', format: 'id',
example: 'xxxxxxxxxx',
}, },
channel: { channel: {
type: 'object', type: 'object',
@ -160,7 +155,7 @@ export const packedNoteDraftSchema = {
}, },
localOnly: { localOnly: {
type: 'boolean', type: 'boolean',
optional: true, nullable: false, optional: false, nullable: false,
}, },
reactionAcceptance: { reactionAcceptance: {
type: 'string', type: 'string',

View File

@ -4424,42 +4424,31 @@ export type components = {
/** Format: date-time */ /** Format: date-time */
createdAt: string; createdAt: string;
text: string | null; text: string | null;
cw?: string | null; cw: string | null;
/** Format: id */ /** Format: id */
userId: string; userId: string;
user: components['schemas']['UserLite']; user: components['schemas']['UserLite'];
/** /** Format: id */
* Format: id replyId: string | null;
* @example xxxxxxxxxx /** Format: id */
*/ renoteId: string | null;
replyId?: string | null;
/**
* Format: id
* @example xxxxxxxxxx
*/
renoteId?: string | null;
/** @description The reply target note contents if exists. If the reply target has been deleted since the draft was created, this will be null while replyId is not null. */
reply?: components['schemas']['Note'] | null; reply?: components['schemas']['Note'] | null;
/** @description The renote target note contents if exists. If the renote target has been deleted since the draft was created, this will be null while renoteId is not null. */
renote?: components['schemas']['Note'] | null; renote?: components['schemas']['Note'] | null;
/** @enum {string} */ /** @enum {string} */
visibility: 'public' | 'home' | 'followers' | 'specified'; visibility: 'public' | 'home' | 'followers' | 'specified';
visibleUserIds?: string[]; visibleUserIds: string[];
fileIds?: string[]; fileIds: string[];
files?: components['schemas']['DriveFile'][]; files?: components['schemas']['DriveFile'][];
hashtag?: string; hashtag: string | null;
poll?: { poll: {
/** Format: date-time */ /** Format: date-time */
expiresAt?: string | null; expiresAt?: string | null;
expiredAfter?: number | null; expiredAfter?: number | null;
multiple: boolean; multiple: boolean;
choices: string[]; choices: string[];
} | null; } | null;
/** /** Format: id */
* Format: id channelId: string | null;
* @example xxxxxxxxxx
*/
channelId?: string | null;
channel?: { channel?: {
id: string; id: string;
name: string; name: string;
@ -4468,7 +4457,7 @@ export type components = {
allowRenoteToExternal: boolean; allowRenoteToExternal: boolean;
userId: string | null; userId: string | null;
} | null; } | null;
localOnly?: boolean; localOnly: boolean;
/** @enum {string|null} */ /** @enum {string|null} */
reactionAcceptance: 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null; reactionAcceptance: 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null;
scheduledAt: number | null; scheduledAt: number | null;