@xpert-ai/chatkit-types 0.10.0 → 0.11.1
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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1112,6 +1112,9 @@ function countFileChangeLines(report) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
return { status: "ready", added: m - previous[m], removed: n - previous[m] };
|
|
1114
1114
|
}
|
|
1115
|
+
function isCallEndedContent(value) {
|
|
1116
|
+
return !!value && typeof value === "object" && "type" in value && value.type === "call_ended" && "sessionId" in value && typeof value.sessionId === "string" && "startedAt" in value && (value.startedAt === null || typeof value.startedAt === "string" && Number.isFinite(Date.parse(value.startedAt))) && "endedAt" in value && typeof value.endedAt === "string" && Number.isFinite(Date.parse(value.endedAt)) && "durationSeconds" in value && typeof value.durationSeconds === "number" && Number.isFinite(value.durationSeconds) && value.durationSeconds >= 0;
|
|
1117
|
+
}
|
|
1115
1118
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = constants.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
1116
1119
|
exports.ChatMessageEventTypeEnum = constants.ChatMessageEventTypeEnum;
|
|
1117
1120
|
exports.ChatMessageStepCategory = constants.ChatMessageStepCategory;
|
|
@@ -1143,6 +1146,7 @@ exports.getLegacyFileActivityContribution = getLegacyFileActivityContribution;
|
|
|
1143
1146
|
exports.getMessageSkillUsages = getMessageSkillUsages;
|
|
1144
1147
|
exports.getPinnedPetPosition = getPinnedPetPosition;
|
|
1145
1148
|
exports.isApprovalHostReference = isApprovalHostReference;
|
|
1149
|
+
exports.isCallEndedContent = isCallEndedContent;
|
|
1146
1150
|
exports.isClientToolInterrupt = isClientToolInterrupt;
|
|
1147
1151
|
exports.isClientToolInterruptPayload = isClientToolInterruptPayload;
|
|
1148
1152
|
exports.isClientToolInterruptTask = isClientToolInterruptTask;
|