diff --git a/packages/backend/src/server/api/endpoints/notes/children.ts b/packages/backend/src/server/api/endpoints/notes/children.ts index afd7f41cf..55ef39541 100644 --- a/packages/backend/src/server/api/endpoints/notes/children.ts +++ b/packages/backend/src/server/api/endpoints/notes/children.ts @@ -21,6 +21,11 @@ export const meta = { ref: 'Note', }, }, + + v2: { + method: 'get', + alias: 'notes/:noteId/children', + }, } as const; export const paramDef = { diff --git a/packages/backend/src/server/api/endpoints/notes/clips.ts b/packages/backend/src/server/api/endpoints/notes/clips.ts index e20b744a1..3cd878800 100644 --- a/packages/backend/src/server/api/endpoints/notes/clips.ts +++ b/packages/backend/src/server/api/endpoints/notes/clips.ts @@ -19,6 +19,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/clips', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/conversation.ts b/packages/backend/src/server/api/endpoints/notes/conversation.ts index b4cbc55f0..7e736c736 100644 --- a/packages/backend/src/server/api/endpoints/notes/conversation.ts +++ b/packages/backend/src/server/api/endpoints/notes/conversation.ts @@ -19,6 +19,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/conversation', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index a52f38df0..18eec6b89 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -37,6 +37,11 @@ export const meta = { }, }, + v2: { + method: 'post', + alias: 'notes', + }, + errors: ['NO_SUCH_NOTE', 'PURE_RENOTE', 'EXPIRED_POLL', 'NO_SUCH_CHANNEL', 'BLOCKED', 'LESS_RESTRICTIVE_VISIBILITY'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/delete.ts b/packages/backend/src/server/api/endpoints/notes/delete.ts index f33d04782..3d8af2c7c 100644 --- a/packages/backend/src/server/api/endpoints/notes/delete.ts +++ b/packages/backend/src/server/api/endpoints/notes/delete.ts @@ -18,6 +18,11 @@ export const meta = { minInterval: SECOND, }, + v2: { + method: 'delete', + alias: 'notes/:noteId', + }, + errors: ['ACCESS_DENIED', 'NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/featured.ts b/packages/backend/src/server/api/endpoints/notes/featured.ts index 902f9abd3..1382de6e5 100644 --- a/packages/backend/src/server/api/endpoints/notes/featured.ts +++ b/packages/backend/src/server/api/endpoints/notes/featured.ts @@ -18,6 +18,10 @@ export const meta = { ref: 'Note', }, }, + + v2: { + method: 'get', + } } as const; export const paramDef = { diff --git a/packages/backend/src/server/api/endpoints/notes/reactions.ts b/packages/backend/src/server/api/endpoints/notes/reactions.ts index d7a63c056..03fe4bd42 100644 --- a/packages/backend/src/server/api/endpoints/notes/reactions.ts +++ b/packages/backend/src/server/api/endpoints/notes/reactions.ts @@ -23,6 +23,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/reactions/:type?', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/renotes.ts b/packages/backend/src/server/api/endpoints/notes/renotes.ts index a0402cf2f..55674f9ee 100644 --- a/packages/backend/src/server/api/endpoints/notes/renotes.ts +++ b/packages/backend/src/server/api/endpoints/notes/renotes.ts @@ -22,6 +22,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/renotes', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/replies.ts b/packages/backend/src/server/api/endpoints/notes/replies.ts index 26fb9ff87..34b679ae4 100644 --- a/packages/backend/src/server/api/endpoints/notes/replies.ts +++ b/packages/backend/src/server/api/endpoints/notes/replies.ts @@ -22,6 +22,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/replies', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/show.ts b/packages/backend/src/server/api/endpoints/notes/show.ts index b2dde8647..6c3f68407 100644 --- a/packages/backend/src/server/api/endpoints/notes/show.ts +++ b/packages/backend/src/server/api/endpoints/notes/show.ts @@ -14,6 +14,11 @@ export const meta = { ref: 'Note', }, + v2: { + method: 'get', + alias: 'notes/:noteId', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/state.ts b/packages/backend/src/server/api/endpoints/notes/state.ts index 5a7d9dc40..c578e1419 100644 --- a/packages/backend/src/server/api/endpoints/notes/state.ts +++ b/packages/backend/src/server/api/endpoints/notes/state.ts @@ -27,6 +27,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/status', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/translate.ts b/packages/backend/src/server/api/endpoints/notes/translate.ts index 93ad1a182..0d7ce97c1 100644 --- a/packages/backend/src/server/api/endpoints/notes/translate.ts +++ b/packages/backend/src/server/api/endpoints/notes/translate.ts @@ -56,6 +56,11 @@ export const meta = { }, }, + v2: { + method: 'get', + alias: 'notes/:noteId/translate/:targetLang/:sourceLang?', + }, + errors: ['NO_SUCH_NOTE'], } as const; diff --git a/packages/backend/src/server/api/endpoints/notes/unrenote.ts b/packages/backend/src/server/api/endpoints/notes/unrenote.ts index b7bb3009a..20f3aa429 100644 --- a/packages/backend/src/server/api/endpoints/notes/unrenote.ts +++ b/packages/backend/src/server/api/endpoints/notes/unrenote.ts @@ -18,6 +18,11 @@ export const meta = { minInterval: SECOND, }, + v2: { + method: 'delete', + alias: 'notes/:noteId/renotes', + }, + errors: ['NO_SUCH_NOTE'], } as const;