@wildix/wim-voicebots-client 1.0.16 → 1.0.18
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 +8 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +2 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +3 -0
- package/dist-types/commands/GetTraceCommand.d.ts +1 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +1 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +17 -0
- 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.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = 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;
|
|
3
|
+
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = 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) {
|
|
@@ -55,6 +55,13 @@ var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
|
55
55
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
56
56
|
};
|
|
57
57
|
})(VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotFunctionIntegrationWebhookAuthorization || (exports.VoiceBotFunctionIntegrationWebhookAuthorization = {}));
|
|
58
|
+
exports.VoiceBotFunctionIntegrationMethod = {
|
|
59
|
+
DELETE: "delete",
|
|
60
|
+
GET: "get",
|
|
61
|
+
PATCH: "patch",
|
|
62
|
+
POST: "post",
|
|
63
|
+
PUT: "put",
|
|
64
|
+
};
|
|
58
65
|
var VoiceBotFunctionIntegration;
|
|
59
66
|
(function (VoiceBotFunctionIntegration) {
|
|
60
67
|
VoiceBotFunctionIntegration.visit = (value, visitor) => {
|
|
@@ -523,6 +523,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
523
523
|
'async': [],
|
|
524
524
|
'authorization': smithy_client_1._json,
|
|
525
525
|
'headers': smithy_client_1._json,
|
|
526
|
+
'method': [],
|
|
526
527
|
'parameters': _ => se_Document(_, context),
|
|
527
528
|
'url': [],
|
|
528
529
|
});
|
|
@@ -837,6 +838,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
837
838
|
'async': smithy_client_1.expectBoolean,
|
|
838
839
|
'authorization': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
839
840
|
'headers': smithy_client_1._json,
|
|
841
|
+
'method': smithy_client_1.expectString,
|
|
840
842
|
'parameters': (_) => de_Document(_, context),
|
|
841
843
|
'url': smithy_client_1.expectString,
|
|
842
844
|
});
|
|
@@ -50,6 +50,13 @@ export var VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
|
50
50
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
51
51
|
};
|
|
52
52
|
})(VoiceBotFunctionIntegrationWebhookAuthorization || (VoiceBotFunctionIntegrationWebhookAuthorization = {}));
|
|
53
|
+
export const VoiceBotFunctionIntegrationMethod = {
|
|
54
|
+
DELETE: "delete",
|
|
55
|
+
GET: "get",
|
|
56
|
+
PATCH: "patch",
|
|
57
|
+
POST: "post",
|
|
58
|
+
PUT: "put",
|
|
59
|
+
};
|
|
53
60
|
export var VoiceBotFunctionIntegration;
|
|
54
61
|
(function (VoiceBotFunctionIntegration) {
|
|
55
62
|
VoiceBotFunctionIntegration.visit = (value, visitor) => {
|
|
@@ -496,6 +496,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
|
496
496
|
'async': [],
|
|
497
497
|
'authorization': _json,
|
|
498
498
|
'headers': _json,
|
|
499
|
+
'method': [],
|
|
499
500
|
'parameters': _ => se_Document(_, context),
|
|
500
501
|
'url': [],
|
|
501
502
|
});
|
|
@@ -810,6 +811,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
|
810
811
|
'async': __expectBoolean,
|
|
811
812
|
'authorization': (_) => _json(__expectUnion(_)),
|
|
812
813
|
'headers': _json,
|
|
814
|
+
'method': __expectString,
|
|
813
815
|
'parameters': (_) => de_Document(_, context),
|
|
814
816
|
'url': __expectString,
|
|
815
817
|
});
|
|
@@ -65,6 +65,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
65
65
|
* integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
66
66
|
* webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
67
67
|
* url: "STRING_VALUE", // required
|
|
68
|
+
* method: "get" || "post" || "put" || "delete" || "patch",
|
|
68
69
|
* async: true || false,
|
|
69
70
|
* authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
70
71
|
* bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -149,6 +150,7 @@ declare const CreateVoiceBotCommand_base: {
|
|
|
149
150
|
* // integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
150
151
|
* // webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
151
152
|
* // url: "STRING_VALUE", // required
|
|
153
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
152
154
|
* // async: true || false,
|
|
153
155
|
* // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
154
156
|
* // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -44,6 +44,7 @@ declare const DescribeEventCommand_base: {
|
|
|
44
44
|
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
45
45
|
* // id: "STRING_VALUE", // required
|
|
46
46
|
* // text: "STRING_VALUE", // required
|
|
47
|
+
* // final: true || false,
|
|
47
48
|
* // time: Number("long"), // required
|
|
48
49
|
* // },
|
|
49
50
|
* // },
|
|
@@ -141,6 +142,7 @@ declare const DescribeEventCommand_base: {
|
|
|
141
142
|
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
142
143
|
* // id: "STRING_VALUE", // required
|
|
143
144
|
* // text: "STRING_VALUE", // required
|
|
145
|
+
* // final: true || false,
|
|
144
146
|
* // time: Number("long"), // required
|
|
145
147
|
* // },
|
|
146
148
|
* // },
|
|
@@ -267,6 +269,7 @@ declare const DescribeEventCommand_base: {
|
|
|
267
269
|
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
268
270
|
* // id: "STRING_VALUE", // required
|
|
269
271
|
* // text: "STRING_VALUE", // required
|
|
272
|
+
* // final: true || false,
|
|
270
273
|
* // time: Number("long"), // required
|
|
271
274
|
* // },
|
|
272
275
|
* // },
|
|
@@ -115,6 +115,7 @@ declare const GetTraceCommand_base: {
|
|
|
115
115
|
* // type: "started" || "ended" || "reply" || "playback" || "transcription" || "interruption" || "complete", // required
|
|
116
116
|
* // id: "STRING_VALUE", // required
|
|
117
117
|
* // text: "STRING_VALUE", // required
|
|
118
|
+
* // final: true || false,
|
|
118
119
|
* // time: Number("long"), // required
|
|
119
120
|
* // },
|
|
120
121
|
* // },
|
|
@@ -72,6 +72,7 @@ declare const GetVoiceBotCommand_base: {
|
|
|
72
72
|
* // integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
73
73
|
* // webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
74
74
|
* // url: "STRING_VALUE", // required
|
|
75
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
75
76
|
* // async: true || false,
|
|
76
77
|
* // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
77
78
|
* // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -72,6 +72,7 @@ declare const ListVoiceBotsCommand_base: {
|
|
|
72
72
|
* // integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
73
73
|
* // webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
74
74
|
* // url: "STRING_VALUE", // required
|
|
75
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
75
76
|
* // async: true || false,
|
|
76
77
|
* // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
77
78
|
* // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -65,6 +65,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
65
65
|
* integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
66
66
|
* webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
67
67
|
* url: "STRING_VALUE", // required
|
|
68
|
+
* method: "get" || "post" || "put" || "delete" || "patch",
|
|
68
69
|
* async: true || false,
|
|
69
70
|
* authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
70
71
|
* bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -150,6 +151,7 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
150
151
|
* // integration: { // VoiceBotFunctionIntegration Union: only one key present
|
|
151
152
|
* // webhook: { // VoiceBotFunctionIntegrationWebhook
|
|
152
153
|
* // url: "STRING_VALUE", // required
|
|
154
|
+
* // method: "get" || "post" || "put" || "delete" || "patch",
|
|
153
155
|
* // async: true || false,
|
|
154
156
|
* // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
155
157
|
* // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
|
|
@@ -187,11 +187,27 @@ export interface VoiceBotFunctionIntegrationWebhookHeader {
|
|
|
187
187
|
key: string;
|
|
188
188
|
value: string;
|
|
189
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
* @enum
|
|
193
|
+
*/
|
|
194
|
+
export declare const VoiceBotFunctionIntegrationMethod: {
|
|
195
|
+
readonly DELETE: "delete";
|
|
196
|
+
readonly GET: "get";
|
|
197
|
+
readonly PATCH: "patch";
|
|
198
|
+
readonly POST: "post";
|
|
199
|
+
readonly PUT: "put";
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
export type VoiceBotFunctionIntegrationMethod = typeof VoiceBotFunctionIntegrationMethod[keyof typeof VoiceBotFunctionIntegrationMethod];
|
|
190
205
|
/**
|
|
191
206
|
* @public
|
|
192
207
|
*/
|
|
193
208
|
export interface VoiceBotFunctionIntegrationWebhook {
|
|
194
209
|
url: string;
|
|
210
|
+
method?: VoiceBotFunctionIntegrationMethod;
|
|
195
211
|
async?: boolean;
|
|
196
212
|
authorization?: VoiceBotFunctionIntegrationWebhookAuthorization;
|
|
197
213
|
headers?: (VoiceBotFunctionIntegrationWebhookHeader)[];
|
|
@@ -659,6 +675,7 @@ export interface TranscriptionEvent {
|
|
|
659
675
|
type: VoiceBotEventType;
|
|
660
676
|
id: string;
|
|
661
677
|
text: string;
|
|
678
|
+
final?: boolean;
|
|
662
679
|
time: number;
|
|
663
680
|
}
|
|
664
681
|
/**
|
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.18",
|
|
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",
|