@proteos/sdk 0.59.0 → 0.59.2
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 +1 -1
- package/src/conversation/index.ts +4 -1
- package/src/conversation/types.ts +16 -2
package/dist/index.d.cts
CHANGED
|
@@ -4177,12 +4177,26 @@ interface CreateConversationTagRequest {
|
|
|
4177
4177
|
end_offset?: number;
|
|
4178
4178
|
}
|
|
4179
4179
|
/**
|
|
4180
|
-
*
|
|
4181
|
-
*
|
|
4180
|
+
* Patches a tag: `status` flips it between `active` and `dismissed` (the
|
|
4181
|
+
* feedback loop), `why` annotates it, and `value` / the anchors correct it —
|
|
4182
|
+
* absent fields keep the stored value and the merged tag is validated against
|
|
4183
|
+
* its definition like a manual tag. `definition_key` is immutable. A value or
|
|
4184
|
+
* anchor change turns the tag into a user tag (confidence 1, no
|
|
4185
|
+
* probabilities, no evaluation) so a later evaluation no longer replaces it;
|
|
4186
|
+
* a corrected `pending` tag becomes `active` unless `status` says otherwise.
|
|
4182
4187
|
*/
|
|
4183
4188
|
interface UpdateConversationTagRequest {
|
|
4184
4189
|
status?: ConversationTagStatus;
|
|
4185
4190
|
why?: string;
|
|
4191
|
+
/** `"true"` | choice option key | score level index as a string. */
|
|
4192
|
+
value?: string;
|
|
4193
|
+
/** Anchors are tri-state: omit = keep, `null` = clear, a value = set. */
|
|
4194
|
+
start_message_id?: string | null;
|
|
4195
|
+
/** Unicode code-point index, inclusive. */
|
|
4196
|
+
start_offset?: number | null;
|
|
4197
|
+
end_message_id?: string | null;
|
|
4198
|
+
/** Unicode code-point index, exclusive. */
|
|
4199
|
+
end_offset?: number | null;
|
|
4186
4200
|
}
|
|
4187
4201
|
/**
|
|
4188
4202
|
* Starts a manual evaluation (`conversationTags.evaluate`, 202). Omitted or
|
|
@@ -6015,7 +6029,10 @@ interface ConversationTagService {
|
|
|
6015
6029
|
evaluate(conversationId: string, request?: EvaluateConversationTagsRequest): Promise<ConversationTagEvaluation>;
|
|
6016
6030
|
/** The evaluation history of one conversation (newest first by default). */
|
|
6017
6031
|
listEvaluations(conversationId: string, query?: ListConversationTagEvaluationsQuery): Promise<ListResponse$1<ConversationTagEvaluation>>;
|
|
6018
|
-
/**
|
|
6032
|
+
/**
|
|
6033
|
+
* Flip a tag between active and dismissed (the feedback loop), annotate why,
|
|
6034
|
+
* and/or correct its value and anchors (a correction makes it a user tag).
|
|
6035
|
+
*/
|
|
6019
6036
|
update(id: string, request: UpdateConversationTagRequest): Promise<ConversationTag>;
|
|
6020
6037
|
delete(id: string): Promise<void>;
|
|
6021
6038
|
/** Org-wide tag stream (filter by definition, value, channel, contact, time window). */
|
package/dist/index.d.ts
CHANGED
|
@@ -4177,12 +4177,26 @@ interface CreateConversationTagRequest {
|
|
|
4177
4177
|
end_offset?: number;
|
|
4178
4178
|
}
|
|
4179
4179
|
/**
|
|
4180
|
-
*
|
|
4181
|
-
*
|
|
4180
|
+
* Patches a tag: `status` flips it between `active` and `dismissed` (the
|
|
4181
|
+
* feedback loop), `why` annotates it, and `value` / the anchors correct it —
|
|
4182
|
+
* absent fields keep the stored value and the merged tag is validated against
|
|
4183
|
+
* its definition like a manual tag. `definition_key` is immutable. A value or
|
|
4184
|
+
* anchor change turns the tag into a user tag (confidence 1, no
|
|
4185
|
+
* probabilities, no evaluation) so a later evaluation no longer replaces it;
|
|
4186
|
+
* a corrected `pending` tag becomes `active` unless `status` says otherwise.
|
|
4182
4187
|
*/
|
|
4183
4188
|
interface UpdateConversationTagRequest {
|
|
4184
4189
|
status?: ConversationTagStatus;
|
|
4185
4190
|
why?: string;
|
|
4191
|
+
/** `"true"` | choice option key | score level index as a string. */
|
|
4192
|
+
value?: string;
|
|
4193
|
+
/** Anchors are tri-state: omit = keep, `null` = clear, a value = set. */
|
|
4194
|
+
start_message_id?: string | null;
|
|
4195
|
+
/** Unicode code-point index, inclusive. */
|
|
4196
|
+
start_offset?: number | null;
|
|
4197
|
+
end_message_id?: string | null;
|
|
4198
|
+
/** Unicode code-point index, exclusive. */
|
|
4199
|
+
end_offset?: number | null;
|
|
4186
4200
|
}
|
|
4187
4201
|
/**
|
|
4188
4202
|
* Starts a manual evaluation (`conversationTags.evaluate`, 202). Omitted or
|
|
@@ -6015,7 +6029,10 @@ interface ConversationTagService {
|
|
|
6015
6029
|
evaluate(conversationId: string, request?: EvaluateConversationTagsRequest): Promise<ConversationTagEvaluation>;
|
|
6016
6030
|
/** The evaluation history of one conversation (newest first by default). */
|
|
6017
6031
|
listEvaluations(conversationId: string, query?: ListConversationTagEvaluationsQuery): Promise<ListResponse$1<ConversationTagEvaluation>>;
|
|
6018
|
-
/**
|
|
6032
|
+
/**
|
|
6033
|
+
* Flip a tag between active and dismissed (the feedback loop), annotate why,
|
|
6034
|
+
* and/or correct its value and anchors (a correction makes it a user tag).
|
|
6035
|
+
*/
|
|
6019
6036
|
update(id: string, request: UpdateConversationTagRequest): Promise<ConversationTag>;
|
|
6020
6037
|
delete(id: string): Promise<void>;
|
|
6021
6038
|
/** Org-wide tag stream (filter by definition, value, channel, contact, time window). */
|