@wildix/wim-voicebots-client 1.0.13 → 1.0.14
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-cjs/models/models_0.js +1 -13
- package/dist-cjs/protocols/Aws_restJson1.js +7 -17
- package/dist-es/models/models_0.js +0 -12
- package/dist-es/protocols/Aws_restJson1.js +7 -17
- package/dist-types/commands/DescribeEventCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +5 -39
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.
|
|
3
|
+
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolResult = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotEventType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
5
|
class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -216,18 +216,6 @@ exports.TraceSessionStatus = {
|
|
|
216
216
|
COMPLETE_WITH_ERROR: "complete_with_error",
|
|
217
217
|
PENDING: "pending",
|
|
218
218
|
};
|
|
219
|
-
var PubSubBroadcastItem;
|
|
220
|
-
(function (PubSubBroadcastItem) {
|
|
221
|
-
PubSubBroadcastItem.visit = (value, visitor) => {
|
|
222
|
-
if (value.session !== undefined)
|
|
223
|
-
return visitor.session(value.session);
|
|
224
|
-
if (value.activity !== undefined)
|
|
225
|
-
return visitor.activity(value.activity);
|
|
226
|
-
if (value.segment !== undefined)
|
|
227
|
-
return visitor.segment(value.segment);
|
|
228
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
229
|
-
};
|
|
230
|
-
})(PubSubBroadcastItem = exports.PubSubBroadcastItem || (exports.PubSubBroadcastItem = {}));
|
|
231
219
|
class VoiceBotNotFoundException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
232
220
|
constructor(opts) {
|
|
233
221
|
super({
|
|
@@ -557,26 +557,16 @@ const de_Document = (output, context) => {
|
|
|
557
557
|
return output;
|
|
558
558
|
};
|
|
559
559
|
const de_PubSubBroadcastItem = (output, context) => {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
return {
|
|
567
|
-
segment: de_TraceSegment(output.segment, context)
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
if (output.session != null) {
|
|
571
|
-
return {
|
|
572
|
-
session: de_TraceSession(output.session, context)
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
return { $unknown: Object.entries(output)[0] };
|
|
560
|
+
return (0, smithy_client_1.take)(output, {
|
|
561
|
+
'activity': (_) => de_TraceActivity(_, context),
|
|
562
|
+
'segment': (_) => de_TraceSegment(_, context),
|
|
563
|
+
'session': (_) => de_TraceSession(_, context),
|
|
564
|
+
'sessionId': smithy_client_1.expectString,
|
|
565
|
+
});
|
|
576
566
|
};
|
|
577
567
|
const de_PubSubBroadcastItems = (output, context) => {
|
|
578
568
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
579
|
-
return de_PubSubBroadcastItem(
|
|
569
|
+
return de_PubSubBroadcastItem(entry, context);
|
|
580
570
|
});
|
|
581
571
|
return retVal;
|
|
582
572
|
};
|
|
@@ -211,18 +211,6 @@ export const TraceSessionStatus = {
|
|
|
211
211
|
COMPLETE_WITH_ERROR: "complete_with_error",
|
|
212
212
|
PENDING: "pending",
|
|
213
213
|
};
|
|
214
|
-
export var PubSubBroadcastItem;
|
|
215
|
-
(function (PubSubBroadcastItem) {
|
|
216
|
-
PubSubBroadcastItem.visit = (value, visitor) => {
|
|
217
|
-
if (value.session !== undefined)
|
|
218
|
-
return visitor.session(value.session);
|
|
219
|
-
if (value.activity !== undefined)
|
|
220
|
-
return visitor.activity(value.activity);
|
|
221
|
-
if (value.segment !== undefined)
|
|
222
|
-
return visitor.segment(value.segment);
|
|
223
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
224
|
-
};
|
|
225
|
-
})(PubSubBroadcastItem || (PubSubBroadcastItem = {}));
|
|
226
214
|
export class VoiceBotNotFoundException extends __BaseException {
|
|
227
215
|
constructor(opts) {
|
|
228
216
|
super({
|
|
@@ -530,26 +530,16 @@ const de_Document = (output, context) => {
|
|
|
530
530
|
return output;
|
|
531
531
|
};
|
|
532
532
|
const de_PubSubBroadcastItem = (output, context) => {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
return {
|
|
540
|
-
segment: de_TraceSegment(output.segment, context)
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
if (output.session != null) {
|
|
544
|
-
return {
|
|
545
|
-
session: de_TraceSession(output.session, context)
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
return { $unknown: Object.entries(output)[0] };
|
|
533
|
+
return take(output, {
|
|
534
|
+
'activity': (_) => de_TraceActivity(_, context),
|
|
535
|
+
'segment': (_) => de_TraceSegment(_, context),
|
|
536
|
+
'session': (_) => de_TraceSession(_, context),
|
|
537
|
+
'sessionId': __expectString,
|
|
538
|
+
});
|
|
549
539
|
};
|
|
550
540
|
const de_PubSubBroadcastItems = (output, context) => {
|
|
551
541
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
552
|
-
return de_PubSubBroadcastItem(
|
|
542
|
+
return de_PubSubBroadcastItem(entry, context);
|
|
553
543
|
});
|
|
554
544
|
return retVal;
|
|
555
545
|
};
|
|
@@ -194,7 +194,7 @@ declare const DescribeEventCommand_base: {
|
|
|
194
194
|
* // event: "STRING_VALUE", // required
|
|
195
195
|
* // topic: "STRING_VALUE", // required
|
|
196
196
|
* // items: [ // PubSubBroadcastItems // required
|
|
197
|
-
* // { // PubSubBroadcastItem
|
|
197
|
+
* // { // PubSubBroadcastItem
|
|
198
198
|
* // session: { // TraceSession
|
|
199
199
|
* // sessionId: "STRING_VALUE", // required
|
|
200
200
|
* // connectionId: "STRING_VALUE", // required
|
|
@@ -210,6 +210,7 @@ declare const DescribeEventCommand_base: {
|
|
|
210
210
|
* // start: Number("double"), // required
|
|
211
211
|
* // duration: Number("int"),
|
|
212
212
|
* // },
|
|
213
|
+
* // sessionId: "STRING_VALUE",
|
|
213
214
|
* // activity: { // TraceActivity
|
|
214
215
|
* // id: "STRING_VALUE", // required
|
|
215
216
|
* // version: Number("int"), // required
|
|
@@ -1258,45 +1258,11 @@ export interface TraceSession {
|
|
|
1258
1258
|
/**
|
|
1259
1259
|
* @public
|
|
1260
1260
|
*/
|
|
1261
|
-
export
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
interface SessionMember {
|
|
1267
|
-
session: TraceSession;
|
|
1268
|
-
activity?: never;
|
|
1269
|
-
segment?: never;
|
|
1270
|
-
$unknown?: never;
|
|
1271
|
-
}
|
|
1272
|
-
interface ActivityMember {
|
|
1273
|
-
session?: never;
|
|
1274
|
-
activity: TraceActivity;
|
|
1275
|
-
segment?: never;
|
|
1276
|
-
$unknown?: never;
|
|
1277
|
-
}
|
|
1278
|
-
interface SegmentMember {
|
|
1279
|
-
session?: never;
|
|
1280
|
-
activity?: never;
|
|
1281
|
-
segment: TraceSegment;
|
|
1282
|
-
$unknown?: never;
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
* @public
|
|
1286
|
-
*/
|
|
1287
|
-
interface $UnknownMember {
|
|
1288
|
-
session?: never;
|
|
1289
|
-
activity?: never;
|
|
1290
|
-
segment?: never;
|
|
1291
|
-
$unknown: [string, any];
|
|
1292
|
-
}
|
|
1293
|
-
interface Visitor<T> {
|
|
1294
|
-
session: (value: TraceSession) => T;
|
|
1295
|
-
activity: (value: TraceActivity) => T;
|
|
1296
|
-
segment: (value: TraceSegment) => T;
|
|
1297
|
-
_: (name: string, value: any) => T;
|
|
1298
|
-
}
|
|
1299
|
-
const visit: <T>(value: PubSubBroadcastItem, visitor: Visitor<T>) => T;
|
|
1261
|
+
export interface PubSubBroadcastItem {
|
|
1262
|
+
session?: TraceSession;
|
|
1263
|
+
sessionId?: string;
|
|
1264
|
+
activity?: TraceActivity;
|
|
1265
|
+
segment?: TraceSegment;
|
|
1300
1266
|
}
|
|
1301
1267
|
/**
|
|
1302
1268
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-voicebots-client",
|
|
3
3
|
"description": "@wildix/wim-voicebots-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.14",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|