@proteos/sdk 0.24.0 → 0.25.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": "@proteos/sdk",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "TypeScript SDK for the Proteos platform",
6
6
  "repository": {
@@ -31,6 +31,7 @@ import type {
31
31
  UnreadCounts,
32
32
  UpdateAgentListenerRequest,
33
33
  UpdateConnectionRequest,
34
+ UpdateConversationRequest,
34
35
  UpdateGlossaryTermRequest,
35
36
  } from './types.js'
36
37
 
@@ -158,6 +159,8 @@ class ConnectionServiceImpl implements ConnectionService {
158
159
  export interface ConversationService {
159
160
  list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>
160
161
  get(id: string): Promise<Conversation>
162
+ /** Patch the user-editable surface (subject, summary, status, metadata). */
163
+ update(id: string, request: UpdateConversationRequest): Promise<Conversation>
161
164
  end(id: string): Promise<Conversation>
162
165
  /** Upsert the requesting user's read marker to now (open a conversation). */
163
166
  markRead(id: string): Promise<void>
@@ -178,6 +181,10 @@ class ConversationServiceImpl implements ConversationService {
178
181
  return this.client.request('GET', `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`)
179
182
  }
180
183
 
184
+ update(id: string, request: UpdateConversationRequest): Promise<Conversation> {
185
+ return this.client.request('PATCH', `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`, request)
186
+ }
187
+
181
188
  end(id: string): Promise<Conversation> {
182
189
  return this.client.request('POST', `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`)
183
190
  }
@@ -191,6 +191,11 @@ export interface Conversation {
191
191
  channel: Channel
192
192
  external_conversation_id: string
193
193
  subject: string
194
+ /**
195
+ * Markdown summary — auto-generated at transcript attach for meeting
196
+ * conversations, editable via update(). Absent when no summary exists.
197
+ */
198
+ summary?: string
194
199
  status: ConversationStatus
195
200
  /**
196
201
  * Room directory row a room-borne thread (Slack channel conversation) lives
@@ -521,6 +526,18 @@ export interface ListConversationsQuery extends PaginationQuery {
521
526
  include?: 'messages_summary'
522
527
  }
523
528
 
529
+ /**
530
+ * User-editable surface of a conversation (PATCH); everything else is owned by
531
+ * ingest.
532
+ */
533
+ export interface UpdateConversationRequest {
534
+ subject?: string
535
+ /** Markdown summary (auto-generated for meetings, freely editable). */
536
+ summary?: string
537
+ status?: ConversationStatus
538
+ metadata?: Record<string, unknown>
539
+ }
540
+
524
541
  export interface ListMessagesQuery extends PaginationQuery {
525
542
  direction?: string
526
543
  status?: string