@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/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/conversation/index.ts +7 -0
- package/src/conversation/types.ts +17 -0
package/dist/index.d.cts
CHANGED
|
@@ -2152,6 +2152,11 @@ interface Conversation {
|
|
|
2152
2152
|
channel: Channel;
|
|
2153
2153
|
external_conversation_id: string;
|
|
2154
2154
|
subject: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Markdown summary — auto-generated at transcript attach for meeting
|
|
2157
|
+
* conversations, editable via update(). Absent when no summary exists.
|
|
2158
|
+
*/
|
|
2159
|
+
summary?: string;
|
|
2155
2160
|
status: ConversationStatus;
|
|
2156
2161
|
/**
|
|
2157
2162
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2461,6 +2466,17 @@ interface ListConversationsQuery extends PaginationQuery {
|
|
|
2461
2466
|
/** Opt into the root/latest message projection on each row. */
|
|
2462
2467
|
include?: 'messages_summary';
|
|
2463
2468
|
}
|
|
2469
|
+
/**
|
|
2470
|
+
* User-editable surface of a conversation (PATCH); everything else is owned by
|
|
2471
|
+
* ingest.
|
|
2472
|
+
*/
|
|
2473
|
+
interface UpdateConversationRequest {
|
|
2474
|
+
subject?: string;
|
|
2475
|
+
/** Markdown summary (auto-generated for meetings, freely editable). */
|
|
2476
|
+
summary?: string;
|
|
2477
|
+
status?: ConversationStatus;
|
|
2478
|
+
metadata?: Record<string, unknown>;
|
|
2479
|
+
}
|
|
2464
2480
|
interface ListMessagesQuery extends PaginationQuery {
|
|
2465
2481
|
direction?: string;
|
|
2466
2482
|
status?: string;
|
|
@@ -2660,6 +2676,8 @@ interface ConnectionService {
|
|
|
2660
2676
|
interface ConversationService {
|
|
2661
2677
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>;
|
|
2662
2678
|
get(id: string): Promise<Conversation>;
|
|
2679
|
+
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
2680
|
+
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
2663
2681
|
end(id: string): Promise<Conversation>;
|
|
2664
2682
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
2665
2683
|
markRead(id: string): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2152,6 +2152,11 @@ interface Conversation {
|
|
|
2152
2152
|
channel: Channel;
|
|
2153
2153
|
external_conversation_id: string;
|
|
2154
2154
|
subject: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Markdown summary — auto-generated at transcript attach for meeting
|
|
2157
|
+
* conversations, editable via update(). Absent when no summary exists.
|
|
2158
|
+
*/
|
|
2159
|
+
summary?: string;
|
|
2155
2160
|
status: ConversationStatus;
|
|
2156
2161
|
/**
|
|
2157
2162
|
* Room directory row a room-borne thread (Slack channel conversation) lives
|
|
@@ -2461,6 +2466,17 @@ interface ListConversationsQuery extends PaginationQuery {
|
|
|
2461
2466
|
/** Opt into the root/latest message projection on each row. */
|
|
2462
2467
|
include?: 'messages_summary';
|
|
2463
2468
|
}
|
|
2469
|
+
/**
|
|
2470
|
+
* User-editable surface of a conversation (PATCH); everything else is owned by
|
|
2471
|
+
* ingest.
|
|
2472
|
+
*/
|
|
2473
|
+
interface UpdateConversationRequest {
|
|
2474
|
+
subject?: string;
|
|
2475
|
+
/** Markdown summary (auto-generated for meetings, freely editable). */
|
|
2476
|
+
summary?: string;
|
|
2477
|
+
status?: ConversationStatus;
|
|
2478
|
+
metadata?: Record<string, unknown>;
|
|
2479
|
+
}
|
|
2464
2480
|
interface ListMessagesQuery extends PaginationQuery {
|
|
2465
2481
|
direction?: string;
|
|
2466
2482
|
status?: string;
|
|
@@ -2660,6 +2676,8 @@ interface ConnectionService {
|
|
|
2660
2676
|
interface ConversationService {
|
|
2661
2677
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>;
|
|
2662
2678
|
get(id: string): Promise<Conversation>;
|
|
2679
|
+
/** Patch the user-editable surface (subject, summary, status, metadata). */
|
|
2680
|
+
update(id: string, request: UpdateConversationRequest): Promise<Conversation>;
|
|
2663
2681
|
end(id: string): Promise<Conversation>;
|
|
2664
2682
|
/** Upsert the requesting user's read marker to now (open a conversation). */
|
|
2665
2683
|
markRead(id: string): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1286,6 +1286,9 @@ var ConversationServiceImpl = class {
|
|
|
1286
1286
|
get(id) {
|
|
1287
1287
|
return this.client.request("GET", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`);
|
|
1288
1288
|
}
|
|
1289
|
+
update(id, request) {
|
|
1290
|
+
return this.client.request("PATCH", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}`, request);
|
|
1291
|
+
}
|
|
1289
1292
|
end(id) {
|
|
1290
1293
|
return this.client.request("POST", `${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/end`);
|
|
1291
1294
|
}
|