@company-semantics/contracts 0.61.2 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chat/index.ts +0 -1
- package/src/chat/types.ts +3 -16
- package/src/index.ts +0 -1
package/package.json
CHANGED
package/src/chat/index.ts
CHANGED
package/src/chat/types.ts
CHANGED
|
@@ -109,13 +109,6 @@ export interface UpdateShareRequest {
|
|
|
109
109
|
// Chat Lifecycle Types
|
|
110
110
|
// =============================================================================
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
* Chat status for lifecycle management.
|
|
114
|
-
* - active: Normal visible chat
|
|
115
|
-
* - archived: Hidden from main list, still searchable
|
|
116
|
-
*/
|
|
117
|
-
export type ChatStatus = 'active' | 'archived'
|
|
118
|
-
|
|
119
112
|
/**
|
|
120
113
|
* Title source - tracks how the title was set.
|
|
121
114
|
* - auto: Generated automatically by LLM
|
|
@@ -129,8 +122,6 @@ export type TitleSource = 'auto' | 'manual'
|
|
|
129
122
|
export interface ChatListFilters {
|
|
130
123
|
/** Search query - matches against title */
|
|
131
124
|
search?: string
|
|
132
|
-
/** Filter by status. Defaults to 'active' */
|
|
133
|
-
status?: ChatStatus | 'all'
|
|
134
125
|
/** Include pinned chats at top */
|
|
135
126
|
includePinned?: boolean
|
|
136
127
|
/** Pagination limit */
|
|
@@ -140,10 +131,9 @@ export interface ChatListFilters {
|
|
|
140
131
|
}
|
|
141
132
|
|
|
142
133
|
/**
|
|
143
|
-
* Extended chat summary with pin/
|
|
134
|
+
* Extended chat summary with pin/title status.
|
|
144
135
|
*/
|
|
145
136
|
export interface ChatSummaryExtended extends ChatSummary {
|
|
146
|
-
status: ChatStatus
|
|
147
137
|
/** If pinned, when it was pinned */
|
|
148
138
|
pinnedAt: string | null
|
|
149
139
|
/** How the title was set: 'auto' or 'manual' */
|
|
@@ -203,7 +193,7 @@ export type InvalidationReason = 'external-mutation' | 'bulk-operation' | 'sync-
|
|
|
203
193
|
/**
|
|
204
194
|
* Fields that can change on a chat, used in changed[] array.
|
|
205
195
|
*/
|
|
206
|
-
export type ChatChangedField = 'title' | 'titleSource' | '
|
|
196
|
+
export type ChatChangedField = 'title' | 'titleSource' | 'pinnedAt'
|
|
207
197
|
|
|
208
198
|
// =============================================================================
|
|
209
199
|
// Domain Events (past-tense facts, carry full state)
|
|
@@ -227,8 +217,6 @@ export interface ChatCreatedEvent extends BaseEvent {
|
|
|
227
217
|
title: string
|
|
228
218
|
/** How the title was set */
|
|
229
219
|
titleSource: TitleSource
|
|
230
|
-
/** Chat status */
|
|
231
|
-
status: ChatStatus
|
|
232
220
|
/** When pinned (null if not pinned) */
|
|
233
221
|
pinnedAt: string | null
|
|
234
222
|
/** Message count */
|
|
@@ -243,7 +231,7 @@ export interface ChatCreatedEvent extends BaseEvent {
|
|
|
243
231
|
}
|
|
244
232
|
|
|
245
233
|
/**
|
|
246
|
-
* Emitted when chat metadata changes (title, pin,
|
|
234
|
+
* Emitted when chat metadata changes (title, pin, etc.)
|
|
247
235
|
* Carries full current state - clients should replace local state entirely.
|
|
248
236
|
*/
|
|
249
237
|
export interface ChatUpdatedEvent extends BaseEvent {
|
|
@@ -253,7 +241,6 @@ export interface ChatUpdatedEvent extends BaseEvent {
|
|
|
253
241
|
title: string
|
|
254
242
|
titleSource: TitleSource | null
|
|
255
243
|
titleGeneratedAt: string | null
|
|
256
|
-
status: ChatStatus
|
|
257
244
|
pinnedAt: string | null
|
|
258
245
|
messageCount: number
|
|
259
246
|
createdAt: string
|