@company-semantics/contracts 0.61.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.61.1",
3
+ "version": "0.62.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/chat/index.ts CHANGED
@@ -18,7 +18,6 @@ export type {
18
18
  CreateShareRequest,
19
19
  UpdateShareRequest,
20
20
  // Chat lifecycle types
21
- ChatStatus,
22
21
  TitleSource,
23
22
  ChatListFilters,
24
23
  ChatSummaryExtended,
package/src/chat/types.ts CHANGED
@@ -25,7 +25,8 @@ export type ChatVisibility = 'private' | 'public'
25
25
  */
26
26
  export interface ChatSummary {
27
27
  id: string
28
- title: string
28
+ /** Title - null means intentionally untitled (title not yet generated) */
29
+ title: string | null
29
30
  messageCount: number
30
31
  createdAt: string
31
32
  updatedAt: string
@@ -108,13 +109,6 @@ export interface UpdateShareRequest {
108
109
  // Chat Lifecycle Types
109
110
  // =============================================================================
110
111
 
111
- /**
112
- * Chat status for lifecycle management.
113
- * - active: Normal visible chat
114
- * - archived: Hidden from main list, still searchable
115
- */
116
- export type ChatStatus = 'active' | 'archived'
117
-
118
112
  /**
119
113
  * Title source - tracks how the title was set.
120
114
  * - auto: Generated automatically by LLM
@@ -128,8 +122,6 @@ export type TitleSource = 'auto' | 'manual'
128
122
  export interface ChatListFilters {
129
123
  /** Search query - matches against title */
130
124
  search?: string
131
- /** Filter by status. Defaults to 'active' */
132
- status?: ChatStatus | 'all'
133
125
  /** Include pinned chats at top */
134
126
  includePinned?: boolean
135
127
  /** Pagination limit */
@@ -139,10 +131,9 @@ export interface ChatListFilters {
139
131
  }
140
132
 
141
133
  /**
142
- * Extended chat summary with pin/archive/title status.
134
+ * Extended chat summary with pin/title status.
143
135
  */
144
136
  export interface ChatSummaryExtended extends ChatSummary {
145
- status: ChatStatus
146
137
  /** If pinned, when it was pinned */
147
138
  pinnedAt: string | null
148
139
  /** How the title was set: 'auto' or 'manual' */
@@ -202,7 +193,7 @@ export type InvalidationReason = 'external-mutation' | 'bulk-operation' | 'sync-
202
193
  /**
203
194
  * Fields that can change on a chat, used in changed[] array.
204
195
  */
205
- export type ChatChangedField = 'title' | 'titleSource' | 'status' | 'pinnedAt'
196
+ export type ChatChangedField = 'title' | 'titleSource' | 'pinnedAt'
206
197
 
207
198
  // =============================================================================
208
199
  // Domain Events (past-tense facts, carry full state)
@@ -226,8 +217,6 @@ export interface ChatCreatedEvent extends BaseEvent {
226
217
  title: string
227
218
  /** How the title was set */
228
219
  titleSource: TitleSource
229
- /** Chat status */
230
- status: ChatStatus
231
220
  /** When pinned (null if not pinned) */
232
221
  pinnedAt: string | null
233
222
  /** Message count */
@@ -242,7 +231,7 @@ export interface ChatCreatedEvent extends BaseEvent {
242
231
  }
243
232
 
244
233
  /**
245
- * Emitted when chat metadata changes (title, pin, archive, etc.)
234
+ * Emitted when chat metadata changes (title, pin, etc.)
246
235
  * Carries full current state - clients should replace local state entirely.
247
236
  */
248
237
  export interface ChatUpdatedEvent extends BaseEvent {
@@ -252,7 +241,6 @@ export interface ChatUpdatedEvent extends BaseEvent {
252
241
  title: string
253
242
  titleSource: TitleSource | null
254
243
  titleGeneratedAt: string | null
255
- status: ChatStatus
256
244
  pinnedAt: string | null
257
245
  messageCount: number
258
246
  createdAt: string
package/src/index.ts CHANGED
@@ -150,7 +150,6 @@ export type {
150
150
  CreateShareRequest,
151
151
  UpdateShareRequest,
152
152
  // Chat lifecycle types
153
- ChatStatus,
154
153
  TitleSource,
155
154
  ChatListFilters,
156
155
  ChatSummaryExtended,