From 0f3572295fefaacc82fbd12cfe5c9b0a36f37c59 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 15:34:32 +0000 Subject: [PATCH 1/2] Initial plan From fe8c849fa34ac5bee322cf5883f9d8961a183915 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 15:38:48 +0000 Subject: [PATCH 2/2] fix: resolve TS2308 naming conflict for UnsubscribeRequest between feed-api and websocket modules Rename feed-api exports to FeedUnsubscribeRequestSchema/FeedUnsubscribeRequest to avoid ambiguous re-export from api barrel (index.ts). Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/spec/src/api/feed-api.test.ts | 6 +++--- packages/spec/src/api/feed-api.zod.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/spec/src/api/feed-api.test.ts b/packages/spec/src/api/feed-api.test.ts index 013104eaf5..27ed567c91 100644 --- a/packages/spec/src/api/feed-api.test.ts +++ b/packages/spec/src/api/feed-api.test.ts @@ -16,7 +16,7 @@ import { RemoveReactionResponseSchema, SubscribeRequestSchema, SubscribeResponseSchema, - UnsubscribeRequestSchema, + FeedUnsubscribeRequestSchema, UnsubscribeResponseSchema, FeedApiErrorCode, FeedApiContracts, @@ -482,9 +482,9 @@ describe('SubscribeResponseSchema', () => { }); }); -describe('UnsubscribeRequestSchema', () => { +describe('FeedUnsubscribeRequestSchema', () => { it('should accept valid unsubscribe params', () => { - const req = UnsubscribeRequestSchema.parse({ + const req = FeedUnsubscribeRequestSchema.parse({ object: 'account', recordId: 'rec_123', }); diff --git a/packages/spec/src/api/feed-api.zod.ts b/packages/spec/src/api/feed-api.zod.ts index 9d114299e4..ca21369b9b 100644 --- a/packages/spec/src/api/feed-api.zod.ts +++ b/packages/spec/src/api/feed-api.zod.ts @@ -255,8 +255,8 @@ export type SubscribeResponse = z.infer; * * @example DELETE /api/data/account/rec_123/subscribe */ -export const UnsubscribeRequestSchema = FeedPathParamsSchema; -export type UnsubscribeRequest = z.infer; +export const FeedUnsubscribeRequestSchema = FeedPathParamsSchema; +export type FeedUnsubscribeRequest = z.infer; /** * Response after unsubscribing. @@ -344,7 +344,7 @@ export const FeedApiContracts = { unsubscribe: { method: 'DELETE' as const, path: '/api/data/:object/:recordId/subscribe', - input: UnsubscribeRequestSchema, + input: FeedUnsubscribeRequestSchema, output: UnsubscribeResponseSchema, }, };