@proteos/sdk 0.26.1 → 0.26.3

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.26.1",
3
+ "version": "0.26.3",
4
4
  "license": "Apache-2.0",
5
5
  "description": "TypeScript SDK for the Proteos platform",
6
6
  "repository": {
@@ -82,6 +82,13 @@ export interface MeetingService {
82
82
  dispatch(request: DispatchMeetingBotRequest): Promise<Conversation>
83
83
  /** Make the bot leave the meeting and end the conversation (by conversation id). */
84
84
  remove(conversationId: string): Promise<Conversation>
85
+ /**
86
+ * Regenerate this meeting conversation's markdown summary from its stored
87
+ * transcript, overwriting any existing one. Resolves with the updated
88
+ * conversation (its fresh `summary`). Rejects with `no_transcript` when the
89
+ * conversation has no completed transcript to summarize.
90
+ */
91
+ summarize(conversationId: string): Promise<Conversation>
85
92
  }
86
93
 
87
94
  class MeetingServiceImpl implements MeetingService {
@@ -94,6 +101,10 @@ class MeetingServiceImpl implements MeetingService {
94
101
  remove(conversationId: string): Promise<Conversation> {
95
102
  return this.client.request('DELETE', `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}`)
96
103
  }
104
+
105
+ summarize(conversationId: string): Promise<Conversation> {
106
+ return this.client.request('POST', `${CONVERSATION_BASE_PATH}/meetings/${encodeURIComponent(conversationId)}/summarize`)
107
+ }
97
108
  }
98
109
 
99
110
  /** Configured integration instances (Slack workspace, Gmail grant, …). */