diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-10-06 19:21:17 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-10-06 19:21:17 +0900 |
| commit | 0d33e1f839f8b4147a765c07102b52edf4883b77 (patch) | |
| tree | 17a54d42ea8abb123ddd3316ea054a441fd895c9 | |
| parent | New Crowdin updates (#16601) (diff) | |
| download | misskey-0d33e1f839f8b4147a765c07102b52edf4883b77.tar.gz misskey-0d33e1f839f8b4147a765c07102b52edf4883b77.tar.bz2 misskey-0d33e1f839f8b4147a765c07102b52edf4883b77.zip | |
fix notes\drafts\create param defs
| -rw-r--r-- | packages/backend/src/server/api/endpoints/notes/drafts/create.ts | 2 | ||||
| -rw-r--r-- | packages/misskey-js/src/autogen/types.ts | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/drafts/create.ts b/packages/backend/src/server/api/endpoints/notes/drafts/create.ts index 8f2fbf9197..c3d709952b 100644 --- a/packages/backend/src/server/api/endpoints/notes/drafts/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/drafts/create.ts @@ -192,7 +192,7 @@ export const paramDef = { scheduledAt: { type: 'integer', nullable: true }, isActuallyScheduled: { type: 'boolean', default: false }, }, - required: ['visibility', 'visibleUserIds', 'cw', 'hashtag', 'localOnly', 'reactionAcceptance', 'replyId', 'renoteId', 'channelId', 'text', 'fileIds', 'poll', 'scheduledAt', 'isActuallyScheduled'], + required: [], } as const; @Injectable() diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 2a059bdea6..7edd43bf9b 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -29205,34 +29205,34 @@ export interface operations { * @default public * @enum {string} */ - visibility: 'public' | 'home' | 'followers' | 'specified'; - visibleUserIds: string[]; - cw: string | null; - hashtag: string | null; + visibility?: 'public' | 'home' | 'followers' | 'specified'; + visibleUserIds?: string[]; + cw?: string | null; + hashtag?: string | null; /** @default false */ - localOnly: boolean; + localOnly?: boolean; /** * @default null * @enum {string|null} */ - reactionAcceptance: null | 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote'; + reactionAcceptance?: null | 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote'; /** Format: misskey:id */ - replyId: string | null; + replyId?: string | null; /** Format: misskey:id */ - renoteId: string | null; + renoteId?: string | null; /** Format: misskey:id */ - channelId: string | null; - text: string | null; - fileIds: string[]; - poll: { + channelId?: string | null; + text?: string | null; + fileIds?: string[]; + poll?: { choices: string[]; multiple?: boolean; expiresAt?: number | null; expiredAfter?: number | null; } | null; - scheduledAt: number | null; + scheduledAt?: number | null; /** @default false */ - isActuallyScheduled: boolean; + isActuallyScheduled?: boolean; }; }; }; |