@proteos/sdk 0.59.1 → 0.60.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.map +1 -1
- package/dist/index.d.cts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/conversation/index.ts +4 -1
- package/src/conversation/types.ts +16 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proteos/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "TypeScript SDK for the Proteos platform",
|
|
6
6
|
"repository": {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"tsup": "^8.3.0",
|
|
67
67
|
"typescript": "^5.7.0",
|
|
68
68
|
"vitest": "^3.0.0",
|
|
69
|
-
"@proteos/
|
|
70
|
-
"@proteos/
|
|
69
|
+
"@proteos/tsconfig": "0.0.0",
|
|
70
|
+
"@proteos/biome-config": "0.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsup",
|
|
@@ -1249,7 +1249,10 @@ export interface ConversationTagService {
|
|
|
1249
1249
|
conversationId: string,
|
|
1250
1250
|
query?: ListConversationTagEvaluationsQuery,
|
|
1251
1251
|
): Promise<ListResponse<ConversationTagEvaluation>>
|
|
1252
|
-
/**
|
|
1252
|
+
/**
|
|
1253
|
+
* Flip a tag between active and dismissed (the feedback loop), annotate why,
|
|
1254
|
+
* and/or correct its value and anchors (a correction makes it a user tag).
|
|
1255
|
+
*/
|
|
1253
1256
|
update(id: string, request: UpdateConversationTagRequest): Promise<ConversationTag>
|
|
1254
1257
|
delete(id: string): Promise<void>
|
|
1255
1258
|
/** Org-wide tag stream (filter by definition, value, channel, contact, time window). */
|
|
@@ -1370,12 +1370,26 @@ export interface CreateConversationTagRequest {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
1372
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1373
|
+
* Patches a tag: `status` flips it between `active` and `dismissed` (the
|
|
1374
|
+
* feedback loop), `why` annotates it, and `value` / the anchors correct it —
|
|
1375
|
+
* absent fields keep the stored value and the merged tag is validated against
|
|
1376
|
+
* its definition like a manual tag. `definition_key` is immutable. A value or
|
|
1377
|
+
* anchor change turns the tag into a user tag (confidence 1, no
|
|
1378
|
+
* probabilities, no evaluation) so a later evaluation no longer replaces it;
|
|
1379
|
+
* a corrected `pending` tag becomes `active` unless `status` says otherwise.
|
|
1375
1380
|
*/
|
|
1376
1381
|
export interface UpdateConversationTagRequest {
|
|
1377
1382
|
status?: ConversationTagStatus
|
|
1378
1383
|
why?: string
|
|
1384
|
+
/** `"true"` | choice option key | score level index as a string. */
|
|
1385
|
+
value?: string
|
|
1386
|
+
/** Anchors are tri-state: omit = keep, `null` = clear, a value = set. */
|
|
1387
|
+
start_message_id?: string | null
|
|
1388
|
+
/** Unicode code-point index, inclusive. */
|
|
1389
|
+
start_offset?: number | null
|
|
1390
|
+
end_message_id?: string | null
|
|
1391
|
+
/** Unicode code-point index, exclusive. */
|
|
1392
|
+
end_offset?: number | null
|
|
1379
1393
|
}
|
|
1380
1394
|
|
|
1381
1395
|
/**
|