@wildix/wim-voicebots-client 1.1.8 → 3.1.10
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/VoiceBots.js +3 -3
- package/dist-cjs/VoiceBotsClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +65 -0
- package/dist-cjs/commands/CreateVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/DeleteVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/DescribeEventCommand.js +10 -11
- package/dist-cjs/commands/GetTraceCommand.js +10 -11
- package/dist-cjs/commands/GetVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/ListTracesCommand.js +10 -11
- package/dist-cjs/commands/ListVoiceBotsCommand.js +10 -11
- package/dist-cjs/commands/ListVoiceBotsNamesCommand.js +10 -11
- package/dist-cjs/commands/SendHangupCommand.js +10 -11
- package/dist-cjs/commands/SendPlayCommand.js +10 -11
- package/dist-cjs/commands/SendSayCommand.js +10 -11
- package/dist-cjs/commands/SendStopCommand.js +10 -11
- package/dist-cjs/commands/SendTransferCommand.js +10 -11
- package/dist-cjs/commands/UpdateVoiceBotCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/VoiceBotsServiceException.js +3 -3
- package/dist-cjs/models/enums.js +64 -0
- package/dist-cjs/models/errors.js +75 -0
- package/dist-cjs/models/models_0.js +0 -314
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1247 -0
- package/dist-es/VoiceBots.js +6 -6
- package/dist-es/VoiceBotsClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +59 -0
- package/dist-es/commands/CreateVoiceBotCommand.js +9 -10
- package/dist-es/commands/DeleteVoiceBotCommand.js +9 -10
- package/dist-es/commands/DescribeEventCommand.js +9 -10
- package/dist-es/commands/GetTraceCommand.js +9 -10
- package/dist-es/commands/GetVoiceBotCommand.js +9 -10
- package/dist-es/commands/ListTracesCommand.js +9 -10
- package/dist-es/commands/ListVoiceBotsCommand.js +9 -10
- package/dist-es/commands/ListVoiceBotsNamesCommand.js +9 -10
- package/dist-es/commands/SendHangupCommand.js +9 -10
- package/dist-es/commands/SendPlayCommand.js +9 -10
- package/dist-es/commands/SendSayCommand.js +9 -10
- package/dist-es/commands/SendStopCommand.js +9 -10
- package/dist-es/commands/SendTransferCommand.js +9 -10
- package/dist-es/commands/UpdateVoiceBotCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/VoiceBotsServiceException.js +1 -1
- package/dist-es/models/enums.js +61 -0
- package/dist-es/models/errors.js +67 -0
- package/dist-es/models/models_0.js +1 -308
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1241 -0
- package/dist-types/VoiceBots.d.ts +15 -15
- package/dist-types/VoiceBotsClient.d.ts +44 -26
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +143 -7
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/DescribeEventCommand.d.ts +35 -7
- package/dist-types/commands/GetTraceCommand.d.ts +33 -7
- package/dist-types/commands/GetVoiceBotCommand.d.ts +77 -7
- package/dist-types/commands/ListTracesCommand.d.ts +11 -7
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +77 -7
- package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +11 -7
- package/dist-types/commands/SendHangupCommand.d.ts +11 -7
- package/dist-types/commands/SendPlayCommand.d.ts +11 -7
- package/dist-types/commands/SendSayCommand.d.ts +11 -7
- package/dist-types/commands/SendStopCommand.d.ts +11 -7
- package/dist-types/commands/SendTransferCommand.d.ts +11 -7
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +143 -7
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/VoiceBotsServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +141 -0
- package/dist-types/models/errors.d.ts +60 -0
- package/dist-types/models/models_0.d.ts +349 -204
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +175 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1030
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -999
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
|
@@ -1,46 +1,115 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
1
|
+
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import type { AnnotationSourceType, TraceActivityStatus, TraceSegmentStatus, TraceSessionStatus, VoiceBotCapabilityToolPipelineType, VoiceBotCommandType, VoiceBotEmbeddedToolType, VoiceBotEventType, VoiceBotFunctionIntegrationMethod, VoiceBotToolType } from "./enums";
|
|
4
3
|
/**
|
|
4
|
+
* Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export interface AnnotationResultValue {
|
|
8
|
+
value: __DocumentType;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Capability variable values captured for an annotation. Runtime services enforce serialized payload size limits.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface AnnotationVariablesValue {
|
|
15
|
+
value: __DocumentType;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* @public
|
|
17
19
|
*/
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export type AnnotationPayload = AnnotationPayload.ResultMember | AnnotationPayload.TagMember | AnnotationPayload.TextMember | AnnotationPayload.VariablesMember | AnnotationPayload.$UnknownMember;
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace AnnotationPayload {
|
|
25
|
+
interface TagMember {
|
|
26
|
+
tag: string;
|
|
27
|
+
text?: never;
|
|
28
|
+
variables?: never;
|
|
29
|
+
result?: never;
|
|
30
|
+
$unknown?: never;
|
|
31
|
+
}
|
|
32
|
+
interface TextMember {
|
|
33
|
+
tag?: never;
|
|
34
|
+
text: string;
|
|
35
|
+
variables?: never;
|
|
36
|
+
result?: never;
|
|
37
|
+
$unknown?: never;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Capability variable values captured for an annotation. Runtime services enforce serialized payload size limits.
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
interface VariablesMember {
|
|
44
|
+
tag?: never;
|
|
45
|
+
text?: never;
|
|
46
|
+
variables: AnnotationVariablesValue;
|
|
47
|
+
result?: never;
|
|
48
|
+
$unknown?: never;
|
|
49
|
+
}
|
|
21
50
|
/**
|
|
22
|
-
*
|
|
51
|
+
* Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
|
|
52
|
+
* @public
|
|
23
53
|
*/
|
|
24
|
-
|
|
54
|
+
interface ResultMember {
|
|
55
|
+
tag?: never;
|
|
56
|
+
text?: never;
|
|
57
|
+
variables?: never;
|
|
58
|
+
result: AnnotationResultValue;
|
|
59
|
+
$unknown?: never;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
interface $UnknownMember {
|
|
65
|
+
tag?: never;
|
|
66
|
+
text?: never;
|
|
67
|
+
variables?: never;
|
|
68
|
+
result?: never;
|
|
69
|
+
$unknown: [string, any];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated unused in schema-serde mode.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
interface Visitor<T> {
|
|
76
|
+
tag: (value: string) => T;
|
|
77
|
+
text: (value: string) => T;
|
|
78
|
+
variables: (value: AnnotationVariablesValue) => T;
|
|
79
|
+
result: (value: AnnotationResultValue) => T;
|
|
80
|
+
_: (name: string, value: any) => T;
|
|
81
|
+
}
|
|
25
82
|
}
|
|
26
83
|
/**
|
|
84
|
+
* Producer of an annotation. Generic identifiers allow callers to attach context such as tool id/name, user id/name, etc., without constraining the source type to a fixed shape.
|
|
27
85
|
* @public
|
|
28
|
-
* @enum
|
|
29
86
|
*/
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
87
|
+
export interface AnnotationSource {
|
|
88
|
+
type: AnnotationSourceType;
|
|
89
|
+
/**
|
|
90
|
+
* Stable identifier of the producer (e.g. tool id, user id).
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Human-readable name of the producer (e.g. tool name, user display name).
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
name?: string | undefined;
|
|
99
|
+
}
|
|
40
100
|
/**
|
|
41
101
|
* @public
|
|
42
102
|
*/
|
|
43
|
-
export
|
|
103
|
+
export interface Annotation {
|
|
104
|
+
id: string;
|
|
105
|
+
time: number;
|
|
106
|
+
payload: AnnotationPayload;
|
|
107
|
+
/**
|
|
108
|
+
* Producer of an annotation. Generic identifiers allow callers to attach context such as tool id/name, user id/name, etc., without constraining the source type to a fixed shape.
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
source: AnnotationSource;
|
|
112
|
+
}
|
|
44
113
|
/**
|
|
45
114
|
* @public
|
|
46
115
|
*/
|
|
@@ -88,30 +157,146 @@ export interface CompleteWebsocketEvent {
|
|
|
88
157
|
event: CompleteEvent;
|
|
89
158
|
}
|
|
90
159
|
/**
|
|
160
|
+
* Comment annotation emitted after a voice bot tool completes.
|
|
91
161
|
* @public
|
|
92
162
|
*/
|
|
93
|
-
export interface
|
|
94
|
-
knowledgeBaseId?: string | undefined;
|
|
163
|
+
export interface VoiceBotToolCommentAnnotation {
|
|
95
164
|
/**
|
|
96
|
-
*
|
|
165
|
+
* Static handlebars expression resolved against bot variables and helpers.
|
|
97
166
|
* @public
|
|
98
167
|
*/
|
|
99
|
-
|
|
168
|
+
value?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Apply when the tool succeeds.
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
applyOnSuccess?: boolean | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Apply when the tool fails.
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
applyOnFailure?: boolean | undefined;
|
|
100
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Result annotation emitted after a voice bot tool completes.
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export interface VoiceBotToolResultAnnotation {
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Tag annotation emitted after a voice bot tool completes.
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
export interface VoiceBotToolTagAnnotation {
|
|
191
|
+
/**
|
|
192
|
+
* Static handlebars expression resolved against bot variables and helpers.
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
value?: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Apply when the tool succeeds.
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
applyOnSuccess?: boolean | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Apply when the tool fails.
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
applyOnFailure?: boolean | undefined;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Variables annotation emitted after a voice bot tool completes.
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export interface VoiceBotToolVariablesAnnotation {
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Configuration for annotations emitted after a tool completes. Tag and comment annotations can provide a handlebars value, while variables and result annotations opt into logging runtime data.
|
|
215
|
+
* @public
|
|
216
|
+
*/
|
|
217
|
+
export type VoiceBotToolAnnotation = VoiceBotToolAnnotation.CommentMember | VoiceBotToolAnnotation.ResultMember | VoiceBotToolAnnotation.TagMember | VoiceBotToolAnnotation.VariablesMember | VoiceBotToolAnnotation.$UnknownMember;
|
|
101
218
|
/**
|
|
102
219
|
* @public
|
|
103
|
-
* @enum
|
|
104
220
|
*/
|
|
105
|
-
export declare
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
221
|
+
export declare namespace VoiceBotToolAnnotation {
|
|
222
|
+
/**
|
|
223
|
+
* Tag annotation emitted after a voice bot tool completes.
|
|
224
|
+
* @public
|
|
225
|
+
*/
|
|
226
|
+
interface TagMember {
|
|
227
|
+
tag: VoiceBotToolTagAnnotation;
|
|
228
|
+
comment?: never;
|
|
229
|
+
variables?: never;
|
|
230
|
+
result?: never;
|
|
231
|
+
$unknown?: never;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Comment annotation emitted after a voice bot tool completes.
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
interface CommentMember {
|
|
238
|
+
tag?: never;
|
|
239
|
+
comment: VoiceBotToolCommentAnnotation;
|
|
240
|
+
variables?: never;
|
|
241
|
+
result?: never;
|
|
242
|
+
$unknown?: never;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Variables annotation emitted after a voice bot tool completes.
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
interface VariablesMember {
|
|
249
|
+
tag?: never;
|
|
250
|
+
comment?: never;
|
|
251
|
+
variables: VoiceBotToolVariablesAnnotation;
|
|
252
|
+
result?: never;
|
|
253
|
+
$unknown?: never;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Result annotation emitted after a voice bot tool completes.
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
interface ResultMember {
|
|
260
|
+
tag?: never;
|
|
261
|
+
comment?: never;
|
|
262
|
+
variables?: never;
|
|
263
|
+
result: VoiceBotToolResultAnnotation;
|
|
264
|
+
$unknown?: never;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
interface $UnknownMember {
|
|
270
|
+
tag?: never;
|
|
271
|
+
comment?: never;
|
|
272
|
+
variables?: never;
|
|
273
|
+
result?: never;
|
|
274
|
+
$unknown: [string, any];
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @deprecated unused in schema-serde mode.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
280
|
+
interface Visitor<T> {
|
|
281
|
+
tag: (value: VoiceBotToolTagAnnotation) => T;
|
|
282
|
+
comment: (value: VoiceBotToolCommentAnnotation) => T;
|
|
283
|
+
variables: (value: VoiceBotToolVariablesAnnotation) => T;
|
|
284
|
+
result: (value: VoiceBotToolResultAnnotation) => T;
|
|
285
|
+
_: (name: string, value: any) => T;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
111
288
|
/**
|
|
112
289
|
* @public
|
|
113
290
|
*/
|
|
114
|
-
export
|
|
291
|
+
export interface VoiceBotKnowledgeBase {
|
|
292
|
+
knowledgeBaseId?: string | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Additional instructions for when the bot should use this knowledge base.
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
instructions?: string | undefined;
|
|
298
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
299
|
+
}
|
|
115
300
|
/**
|
|
116
301
|
* @public
|
|
117
302
|
*/
|
|
@@ -179,13 +364,16 @@ export declare namespace VoiceBotToolVariableHandler {
|
|
|
179
364
|
predefined?: never;
|
|
180
365
|
$unknown: [string, any];
|
|
181
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* @deprecated unused in schema-serde mode.
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
182
371
|
interface Visitor<T> {
|
|
183
372
|
auto: (value: VoiceBotToolVariableAutoHandler) => T;
|
|
184
373
|
guided: (value: VoiceBotToolVariableGuidedHandler) => T;
|
|
185
374
|
predefined: (value: VoiceBotToolVariablePredefinedHandler) => T;
|
|
186
375
|
_: (name: string, value: any) => T;
|
|
187
376
|
}
|
|
188
|
-
const visit: <T>(value: VoiceBotToolVariableHandler, visitor: Visitor<T>) => T;
|
|
189
377
|
}
|
|
190
378
|
/**
|
|
191
379
|
* @public
|
|
@@ -207,7 +395,7 @@ export interface VoiceBotCapabilityTool {
|
|
|
207
395
|
* @public
|
|
208
396
|
*/
|
|
209
397
|
id: string;
|
|
210
|
-
variables?:
|
|
398
|
+
variables?: VoiceBotToolVariable[] | undefined;
|
|
211
399
|
/**
|
|
212
400
|
* Message spoken when the tool call starts.
|
|
213
401
|
* @public
|
|
@@ -218,6 +406,7 @@ export interface VoiceBotCapabilityTool {
|
|
|
218
406
|
* @public
|
|
219
407
|
*/
|
|
220
408
|
pipeline?: VoiceBotCapabilityToolPipeline | undefined;
|
|
409
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
221
410
|
}
|
|
222
411
|
/**
|
|
223
412
|
* @public
|
|
@@ -245,12 +434,15 @@ export declare namespace VoiceBotCapability {
|
|
|
245
434
|
kb?: never;
|
|
246
435
|
$unknown: [string, any];
|
|
247
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated unused in schema-serde mode.
|
|
439
|
+
*
|
|
440
|
+
*/
|
|
248
441
|
interface Visitor<T> {
|
|
249
442
|
tool: (value: VoiceBotCapabilityTool) => T;
|
|
250
443
|
kb: (value: VoiceBotKnowledgeBase) => T;
|
|
251
444
|
_: (name: string, value: any) => T;
|
|
252
445
|
}
|
|
253
|
-
const visit: <T>(value: VoiceBotCapability, visitor: Visitor<T>) => T;
|
|
254
446
|
}
|
|
255
447
|
/**
|
|
256
448
|
* @public
|
|
@@ -277,20 +469,6 @@ export interface BotDialogflowCxEndpoint {
|
|
|
277
469
|
*/
|
|
278
470
|
language: string;
|
|
279
471
|
}
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
* @enum
|
|
283
|
-
*/
|
|
284
|
-
export declare const VoiceBotEmbeddedToolType: {
|
|
285
|
-
readonly DELEGATE: "DELEGATE";
|
|
286
|
-
readonly HANGUP: "HANGUP";
|
|
287
|
-
readonly TRANSFER: "TRANSFER";
|
|
288
|
-
readonly WAIT: "WAIT";
|
|
289
|
-
};
|
|
290
|
-
/**
|
|
291
|
-
* @public
|
|
292
|
-
*/
|
|
293
|
-
export type VoiceBotEmbeddedToolType = typeof VoiceBotEmbeddedToolType[keyof typeof VoiceBotEmbeddedToolType];
|
|
294
472
|
/**
|
|
295
473
|
* @public
|
|
296
474
|
*/
|
|
@@ -302,6 +480,7 @@ export interface VoiceBotEmbeddedTool {
|
|
|
302
480
|
* @public
|
|
303
481
|
*/
|
|
304
482
|
parameters?: __DocumentType | undefined;
|
|
483
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
305
484
|
}
|
|
306
485
|
/**
|
|
307
486
|
* @public
|
|
@@ -425,13 +604,16 @@ export declare namespace VoiceBotFunctionIntegrationWebhookAuthorization {
|
|
|
425
604
|
oauth?: never;
|
|
426
605
|
$unknown: [string, any];
|
|
427
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* @deprecated unused in schema-serde mode.
|
|
609
|
+
*
|
|
610
|
+
*/
|
|
428
611
|
interface Visitor<T> {
|
|
429
612
|
bearer: (value: VoiceBotFunctionIntegrationWebhookAuthorizationBearer) => T;
|
|
430
613
|
basic: (value: VoiceBotFunctionIntegrationWebhookAuthorizationBasic) => T;
|
|
431
614
|
oauth: (value: VoiceBotFunctionIntegrationWebhookAuthorizationOAuth) => T;
|
|
432
615
|
_: (name: string, value: any) => T;
|
|
433
616
|
}
|
|
434
|
-
const visit: <T>(value: VoiceBotFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
|
|
435
617
|
}
|
|
436
618
|
/**
|
|
437
619
|
* @public
|
|
@@ -440,21 +622,6 @@ export interface VoiceBotFunctionIntegrationWebhookHeader {
|
|
|
440
622
|
key: string;
|
|
441
623
|
value: string;
|
|
442
624
|
}
|
|
443
|
-
/**
|
|
444
|
-
* @public
|
|
445
|
-
* @enum
|
|
446
|
-
*/
|
|
447
|
-
export declare const VoiceBotFunctionIntegrationMethod: {
|
|
448
|
-
readonly DELETE: "delete";
|
|
449
|
-
readonly GET: "get";
|
|
450
|
-
readonly PATCH: "patch";
|
|
451
|
-
readonly POST: "post";
|
|
452
|
-
readonly PUT: "put";
|
|
453
|
-
};
|
|
454
|
-
/**
|
|
455
|
-
* @public
|
|
456
|
-
*/
|
|
457
|
-
export type VoiceBotFunctionIntegrationMethod = typeof VoiceBotFunctionIntegrationMethod[keyof typeof VoiceBotFunctionIntegrationMethod];
|
|
458
625
|
/**
|
|
459
626
|
* @public
|
|
460
627
|
*/
|
|
@@ -463,7 +630,7 @@ export interface VoiceBotFunctionIntegrationWebhook {
|
|
|
463
630
|
method?: VoiceBotFunctionIntegrationMethod | undefined;
|
|
464
631
|
async?: boolean | undefined;
|
|
465
632
|
authorization?: VoiceBotFunctionIntegrationWebhookAuthorization | undefined;
|
|
466
|
-
headers?:
|
|
633
|
+
headers?: VoiceBotFunctionIntegrationWebhookHeader[] | undefined;
|
|
467
634
|
/**
|
|
468
635
|
* Timeout in milliseconds for the webhook request.
|
|
469
636
|
* @public
|
|
@@ -495,11 +662,14 @@ export declare namespace VoiceBotFunctionIntegration {
|
|
|
495
662
|
webhook?: never;
|
|
496
663
|
$unknown: [string, any];
|
|
497
664
|
}
|
|
665
|
+
/**
|
|
666
|
+
* @deprecated unused in schema-serde mode.
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
498
669
|
interface Visitor<T> {
|
|
499
670
|
webhook: (value: VoiceBotFunctionIntegrationWebhook) => T;
|
|
500
671
|
_: (name: string, value: any) => T;
|
|
501
672
|
}
|
|
502
|
-
const visit: <T>(value: VoiceBotFunctionIntegration, visitor: Visitor<T>) => T;
|
|
503
673
|
}
|
|
504
674
|
/**
|
|
505
675
|
* @public
|
|
@@ -522,23 +692,13 @@ export interface VoiceBotFunctionDefinition {
|
|
|
522
692
|
parameters?: __DocumentType | undefined;
|
|
523
693
|
integration?: VoiceBotFunctionIntegration | undefined;
|
|
524
694
|
}
|
|
525
|
-
/**
|
|
526
|
-
* @public
|
|
527
|
-
* @enum
|
|
528
|
-
*/
|
|
529
|
-
export declare const VoiceBotToolType: {
|
|
530
|
-
readonly FUNCTION: "function";
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* @public
|
|
534
|
-
*/
|
|
535
|
-
export type VoiceBotToolType = typeof VoiceBotToolType[keyof typeof VoiceBotToolType];
|
|
536
695
|
/**
|
|
537
696
|
* @public
|
|
538
697
|
*/
|
|
539
698
|
export interface VoiceBotTool {
|
|
540
699
|
type: VoiceBotToolType;
|
|
541
700
|
function?: VoiceBotFunctionDefinition | undefined;
|
|
701
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
542
702
|
}
|
|
543
703
|
/**
|
|
544
704
|
* @public
|
|
@@ -556,7 +716,7 @@ export interface VoiceBotLlmEndpoint {
|
|
|
556
716
|
* @public
|
|
557
717
|
*/
|
|
558
718
|
model?: string | undefined;
|
|
559
|
-
guidelines?:
|
|
719
|
+
guidelines?: string[] | undefined;
|
|
560
720
|
/**
|
|
561
721
|
* Metadata configuration to include in the system prompt context.
|
|
562
722
|
* @public
|
|
@@ -566,18 +726,18 @@ export interface VoiceBotLlmEndpoint {
|
|
|
566
726
|
* Embedded functions to use within voice session.
|
|
567
727
|
* @public
|
|
568
728
|
*/
|
|
569
|
-
embeddedTools?:
|
|
729
|
+
embeddedTools?: VoiceBotEmbeddedTool[] | undefined;
|
|
570
730
|
/**
|
|
571
731
|
* Custom tools to be used within voice session.
|
|
572
732
|
* @public
|
|
573
733
|
*/
|
|
574
|
-
tools?:
|
|
575
|
-
capabilities?:
|
|
734
|
+
tools?: VoiceBotTool[] | undefined;
|
|
735
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
576
736
|
/**
|
|
577
737
|
* Variables such as dialplan variables that can be used in the bot.
|
|
578
738
|
* @public
|
|
579
739
|
*/
|
|
580
|
-
variables?:
|
|
740
|
+
variables?: VoiceBotVariable[] | undefined;
|
|
581
741
|
}
|
|
582
742
|
/**
|
|
583
743
|
* @public
|
|
@@ -660,6 +820,10 @@ export declare namespace VoiceBotEndpoint {
|
|
|
660
820
|
sqs?: never;
|
|
661
821
|
$unknown: [string, any];
|
|
662
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* @deprecated unused in schema-serde mode.
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
663
827
|
interface Visitor<T> {
|
|
664
828
|
llm: (value: VoiceBotLlmEndpoint) => T;
|
|
665
829
|
dialogflowCx: (value: BotDialogflowCxEndpoint) => T;
|
|
@@ -668,7 +832,6 @@ export declare namespace VoiceBotEndpoint {
|
|
|
668
832
|
sqs: (value: BotSqsEndpoint) => T;
|
|
669
833
|
_: (name: string, value: any) => T;
|
|
670
834
|
}
|
|
671
|
-
const visit: <T>(value: VoiceBotEndpoint, visitor: Visitor<T>) => T;
|
|
672
835
|
}
|
|
673
836
|
/**
|
|
674
837
|
* @public
|
|
@@ -708,12 +871,15 @@ export declare namespace VoiceBotPipelineTerminateAction {
|
|
|
708
871
|
transfer?: never;
|
|
709
872
|
$unknown: [string, any];
|
|
710
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* @deprecated unused in schema-serde mode.
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
711
878
|
interface Visitor<T> {
|
|
712
879
|
hangup: (value: VoiceBotTerminateHangupAction) => T;
|
|
713
880
|
transfer: (value: VoiceBotTerminateTransferAction) => T;
|
|
714
881
|
_: (name: string, value: any) => T;
|
|
715
882
|
}
|
|
716
|
-
const visit: <T>(value: VoiceBotPipelineTerminateAction, visitor: Visitor<T>) => T;
|
|
717
883
|
}
|
|
718
884
|
/**
|
|
719
885
|
* @public
|
|
@@ -776,7 +942,7 @@ export interface CreateVoiceBotInput {
|
|
|
776
942
|
* @public
|
|
777
943
|
*/
|
|
778
944
|
endpoint: VoiceBotEndpoint;
|
|
779
|
-
capabilities?:
|
|
945
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
780
946
|
/**
|
|
781
947
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
782
948
|
* @public
|
|
@@ -805,7 +971,7 @@ export interface VoiceBot {
|
|
|
805
971
|
* @public
|
|
806
972
|
*/
|
|
807
973
|
endpoint: VoiceBotEndpoint;
|
|
808
|
-
capabilities?:
|
|
974
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
809
975
|
/**
|
|
810
976
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
811
977
|
* @public
|
|
@@ -821,18 +987,6 @@ export interface VoiceBot {
|
|
|
821
987
|
export interface CreateVoiceBotOutput {
|
|
822
988
|
bot: VoiceBot;
|
|
823
989
|
}
|
|
824
|
-
/**
|
|
825
|
-
* @public
|
|
826
|
-
*/
|
|
827
|
-
export declare class VoiceBotNonUniqueNameException extends __BaseException {
|
|
828
|
-
readonly name: "VoiceBotNonUniqueNameException";
|
|
829
|
-
readonly $fault: "client";
|
|
830
|
-
type?: string | undefined;
|
|
831
|
-
/**
|
|
832
|
-
* @internal
|
|
833
|
-
*/
|
|
834
|
-
constructor(opts: __ExceptionOptionType<VoiceBotNonUniqueNameException, __BaseException>);
|
|
835
|
-
}
|
|
836
990
|
/**
|
|
837
991
|
* @public
|
|
838
992
|
*/
|
|
@@ -850,21 +1004,6 @@ export interface DeleteVoiceBotOutput {
|
|
|
850
1004
|
*/
|
|
851
1005
|
export interface DescribeEventInput {
|
|
852
1006
|
}
|
|
853
|
-
/**
|
|
854
|
-
* @public
|
|
855
|
-
* @enum
|
|
856
|
-
*/
|
|
857
|
-
export declare const VoiceBotCommandType: {
|
|
858
|
-
readonly HANGUP: "hangup";
|
|
859
|
-
readonly PLAY: "play";
|
|
860
|
-
readonly SAY: "say";
|
|
861
|
-
readonly STOP: "stop";
|
|
862
|
-
readonly TRANSFER: "transfer";
|
|
863
|
-
};
|
|
864
|
-
/**
|
|
865
|
-
* @public
|
|
866
|
-
*/
|
|
867
|
-
export type VoiceBotCommandType = typeof VoiceBotCommandType[keyof typeof VoiceBotCommandType];
|
|
868
1007
|
/**
|
|
869
1008
|
* @public
|
|
870
1009
|
*/
|
|
@@ -987,27 +1126,23 @@ export declare namespace TraceActivityResult {
|
|
|
987
1126
|
text?: never;
|
|
988
1127
|
$unknown: [string, any];
|
|
989
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
* @deprecated unused in schema-serde mode.
|
|
1131
|
+
*
|
|
1132
|
+
*/
|
|
990
1133
|
interface Visitor<T> {
|
|
991
1134
|
error: (value: TraceErrorResult) => T;
|
|
992
1135
|
text: (value: string) => T;
|
|
993
1136
|
_: (name: string, value: any) => T;
|
|
994
1137
|
}
|
|
995
|
-
const visit: <T>(value: TraceActivityResult, visitor: Visitor<T>) => T;
|
|
996
1138
|
}
|
|
997
1139
|
/**
|
|
1140
|
+
* Trace activity written when the voicebot emits an annotation.
|
|
998
1141
|
* @public
|
|
999
|
-
* @enum
|
|
1000
1142
|
*/
|
|
1001
|
-
export
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
readonly ERROR: "error";
|
|
1005
|
-
readonly PENDING: "pending";
|
|
1006
|
-
};
|
|
1007
|
-
/**
|
|
1008
|
-
* @public
|
|
1009
|
-
*/
|
|
1010
|
-
export type TraceActivityStatus = typeof TraceActivityStatus[keyof typeof TraceActivityStatus];
|
|
1143
|
+
export interface TraceAnnotationCommand {
|
|
1144
|
+
annotation: Annotation;
|
|
1145
|
+
}
|
|
1011
1146
|
/**
|
|
1012
1147
|
* @public
|
|
1013
1148
|
*/
|
|
@@ -1080,6 +1215,11 @@ export interface TranscriptionEvent {
|
|
|
1080
1215
|
type: VoiceBotEventType;
|
|
1081
1216
|
id: string;
|
|
1082
1217
|
text: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Transcription confidence score (accuracy level) in range from 0.0 to 1.0. Value -1.0 indicates confidence is unavailable.
|
|
1220
|
+
* @public
|
|
1221
|
+
*/
|
|
1222
|
+
confidence?: number | undefined;
|
|
1083
1223
|
final?: boolean | undefined;
|
|
1084
1224
|
time: number;
|
|
1085
1225
|
}
|
|
@@ -1108,7 +1248,7 @@ export interface TransferWebsocketCommand {
|
|
|
1108
1248
|
/**
|
|
1109
1249
|
* @public
|
|
1110
1250
|
*/
|
|
1111
|
-
export type TraceActivityTrigger = TraceActivityTrigger.CompleteEventMember | TraceActivityTrigger.ConnectEventMember | TraceActivityTrigger.DisconnectEventMember | TraceActivityTrigger.DurationTimeoutTaskMember | TraceActivityTrigger.HangupCommandMember | TraceActivityTrigger.InterruptionEventMember | TraceActivityTrigger.PlaybackEventMember | TraceActivityTrigger.ReplyEventMember | TraceActivityTrigger.SayCommandMember | TraceActivityTrigger.SilenceTimeoutTaskMember | TraceActivityTrigger.TranscriptionEventMember | TraceActivityTrigger.TransferCommandMember | TraceActivityTrigger.$UnknownMember;
|
|
1251
|
+
export type TraceActivityTrigger = TraceActivityTrigger.AnnotationCommandMember | TraceActivityTrigger.CompleteEventMember | TraceActivityTrigger.ConnectEventMember | TraceActivityTrigger.DisconnectEventMember | TraceActivityTrigger.DurationTimeoutTaskMember | TraceActivityTrigger.HangupCommandMember | TraceActivityTrigger.InterruptionEventMember | TraceActivityTrigger.PlaybackEventMember | TraceActivityTrigger.ReplyEventMember | TraceActivityTrigger.SayCommandMember | TraceActivityTrigger.SilenceTimeoutTaskMember | TraceActivityTrigger.TranscriptionEventMember | TraceActivityTrigger.TransferCommandMember | TraceActivityTrigger.$UnknownMember;
|
|
1112
1252
|
/**
|
|
1113
1253
|
* @public
|
|
1114
1254
|
*/
|
|
@@ -1124,6 +1264,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1124
1264
|
sayCommand?: never;
|
|
1125
1265
|
hangupCommand?: never;
|
|
1126
1266
|
transferCommand?: never;
|
|
1267
|
+
annotationCommand?: never;
|
|
1127
1268
|
silenceTimeoutTask?: never;
|
|
1128
1269
|
durationTimeoutTask?: never;
|
|
1129
1270
|
$unknown?: never;
|
|
@@ -1139,6 +1280,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1139
1280
|
sayCommand?: never;
|
|
1140
1281
|
hangupCommand?: never;
|
|
1141
1282
|
transferCommand?: never;
|
|
1283
|
+
annotationCommand?: never;
|
|
1142
1284
|
silenceTimeoutTask?: never;
|
|
1143
1285
|
durationTimeoutTask?: never;
|
|
1144
1286
|
$unknown?: never;
|
|
@@ -1154,6 +1296,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1154
1296
|
sayCommand?: never;
|
|
1155
1297
|
hangupCommand?: never;
|
|
1156
1298
|
transferCommand?: never;
|
|
1299
|
+
annotationCommand?: never;
|
|
1157
1300
|
silenceTimeoutTask?: never;
|
|
1158
1301
|
durationTimeoutTask?: never;
|
|
1159
1302
|
$unknown?: never;
|
|
@@ -1169,6 +1312,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1169
1312
|
sayCommand?: never;
|
|
1170
1313
|
hangupCommand?: never;
|
|
1171
1314
|
transferCommand?: never;
|
|
1315
|
+
annotationCommand?: never;
|
|
1172
1316
|
silenceTimeoutTask?: never;
|
|
1173
1317
|
durationTimeoutTask?: never;
|
|
1174
1318
|
$unknown?: never;
|
|
@@ -1184,6 +1328,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1184
1328
|
sayCommand?: never;
|
|
1185
1329
|
hangupCommand?: never;
|
|
1186
1330
|
transferCommand?: never;
|
|
1331
|
+
annotationCommand?: never;
|
|
1187
1332
|
silenceTimeoutTask?: never;
|
|
1188
1333
|
durationTimeoutTask?: never;
|
|
1189
1334
|
$unknown?: never;
|
|
@@ -1199,6 +1344,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1199
1344
|
sayCommand?: never;
|
|
1200
1345
|
hangupCommand?: never;
|
|
1201
1346
|
transferCommand?: never;
|
|
1347
|
+
annotationCommand?: never;
|
|
1202
1348
|
silenceTimeoutTask?: never;
|
|
1203
1349
|
durationTimeoutTask?: never;
|
|
1204
1350
|
$unknown?: never;
|
|
@@ -1214,6 +1360,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1214
1360
|
sayCommand?: never;
|
|
1215
1361
|
hangupCommand?: never;
|
|
1216
1362
|
transferCommand?: never;
|
|
1363
|
+
annotationCommand?: never;
|
|
1217
1364
|
silenceTimeoutTask?: never;
|
|
1218
1365
|
durationTimeoutTask?: never;
|
|
1219
1366
|
$unknown?: never;
|
|
@@ -1229,6 +1376,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1229
1376
|
sayCommand: SayWebsocketCommand;
|
|
1230
1377
|
hangupCommand?: never;
|
|
1231
1378
|
transferCommand?: never;
|
|
1379
|
+
annotationCommand?: never;
|
|
1232
1380
|
silenceTimeoutTask?: never;
|
|
1233
1381
|
durationTimeoutTask?: never;
|
|
1234
1382
|
$unknown?: never;
|
|
@@ -1244,6 +1392,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1244
1392
|
sayCommand?: never;
|
|
1245
1393
|
hangupCommand: HangupWebsocketCommand;
|
|
1246
1394
|
transferCommand?: never;
|
|
1395
|
+
annotationCommand?: never;
|
|
1247
1396
|
silenceTimeoutTask?: never;
|
|
1248
1397
|
durationTimeoutTask?: never;
|
|
1249
1398
|
$unknown?: never;
|
|
@@ -1259,6 +1408,27 @@ export declare namespace TraceActivityTrigger {
|
|
|
1259
1408
|
sayCommand?: never;
|
|
1260
1409
|
hangupCommand?: never;
|
|
1261
1410
|
transferCommand: TransferWebsocketCommand;
|
|
1411
|
+
annotationCommand?: never;
|
|
1412
|
+
silenceTimeoutTask?: never;
|
|
1413
|
+
durationTimeoutTask?: never;
|
|
1414
|
+
$unknown?: never;
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Trace activity written when the voicebot emits an annotation.
|
|
1418
|
+
* @public
|
|
1419
|
+
*/
|
|
1420
|
+
interface AnnotationCommandMember {
|
|
1421
|
+
connectEvent?: never;
|
|
1422
|
+
disconnectEvent?: never;
|
|
1423
|
+
replyEvent?: never;
|
|
1424
|
+
completeEvent?: never;
|
|
1425
|
+
interruptionEvent?: never;
|
|
1426
|
+
playbackEvent?: never;
|
|
1427
|
+
transcriptionEvent?: never;
|
|
1428
|
+
sayCommand?: never;
|
|
1429
|
+
hangupCommand?: never;
|
|
1430
|
+
transferCommand?: never;
|
|
1431
|
+
annotationCommand: TraceAnnotationCommand;
|
|
1262
1432
|
silenceTimeoutTask?: never;
|
|
1263
1433
|
durationTimeoutTask?: never;
|
|
1264
1434
|
$unknown?: never;
|
|
@@ -1274,6 +1444,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1274
1444
|
sayCommand?: never;
|
|
1275
1445
|
hangupCommand?: never;
|
|
1276
1446
|
transferCommand?: never;
|
|
1447
|
+
annotationCommand?: never;
|
|
1277
1448
|
silenceTimeoutTask: TraceSilenceTimeoutTaskTrigger;
|
|
1278
1449
|
durationTimeoutTask?: never;
|
|
1279
1450
|
$unknown?: never;
|
|
@@ -1289,6 +1460,7 @@ export declare namespace TraceActivityTrigger {
|
|
|
1289
1460
|
sayCommand?: never;
|
|
1290
1461
|
hangupCommand?: never;
|
|
1291
1462
|
transferCommand?: never;
|
|
1463
|
+
annotationCommand?: never;
|
|
1292
1464
|
silenceTimeoutTask?: never;
|
|
1293
1465
|
durationTimeoutTask: TraceDurationTimeoutTaskTrigger;
|
|
1294
1466
|
$unknown?: never;
|
|
@@ -1307,10 +1479,15 @@ export declare namespace TraceActivityTrigger {
|
|
|
1307
1479
|
sayCommand?: never;
|
|
1308
1480
|
hangupCommand?: never;
|
|
1309
1481
|
transferCommand?: never;
|
|
1482
|
+
annotationCommand?: never;
|
|
1310
1483
|
silenceTimeoutTask?: never;
|
|
1311
1484
|
durationTimeoutTask?: never;
|
|
1312
1485
|
$unknown: [string, any];
|
|
1313
1486
|
}
|
|
1487
|
+
/**
|
|
1488
|
+
* @deprecated unused in schema-serde mode.
|
|
1489
|
+
*
|
|
1490
|
+
*/
|
|
1314
1491
|
interface Visitor<T> {
|
|
1315
1492
|
connectEvent: (value: TraceConnectEventTrigger) => T;
|
|
1316
1493
|
disconnectEvent: (value: TraceDisconnectEventTrigger) => T;
|
|
@@ -1322,11 +1499,11 @@ export declare namespace TraceActivityTrigger {
|
|
|
1322
1499
|
sayCommand: (value: SayWebsocketCommand) => T;
|
|
1323
1500
|
hangupCommand: (value: HangupWebsocketCommand) => T;
|
|
1324
1501
|
transferCommand: (value: TransferWebsocketCommand) => T;
|
|
1502
|
+
annotationCommand: (value: TraceAnnotationCommand) => T;
|
|
1325
1503
|
silenceTimeoutTask: (value: TraceSilenceTimeoutTaskTrigger) => T;
|
|
1326
1504
|
durationTimeoutTask: (value: TraceDurationTimeoutTaskTrigger) => T;
|
|
1327
1505
|
_: (name: string, value: any) => T;
|
|
1328
1506
|
}
|
|
1329
|
-
const visit: <T>(value: TraceActivityTrigger, visitor: Visitor<T>) => T;
|
|
1330
1507
|
}
|
|
1331
1508
|
/**
|
|
1332
1509
|
* @public
|
|
@@ -1528,6 +1705,10 @@ export declare namespace TraceToolCall {
|
|
|
1528
1705
|
capabilityKb?: never;
|
|
1529
1706
|
$unknown: [string, any];
|
|
1530
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @deprecated unused in schema-serde mode.
|
|
1710
|
+
*
|
|
1711
|
+
*/
|
|
1531
1712
|
interface Visitor<T> {
|
|
1532
1713
|
transfer: (value: TraceTransferToolCall) => T;
|
|
1533
1714
|
hangup: (value: TraceHangupToolCall) => T;
|
|
@@ -1538,7 +1719,6 @@ export declare namespace TraceToolCall {
|
|
|
1538
1719
|
capabilityKb: (value: TraceCapabilityKbCall) => T;
|
|
1539
1720
|
_: (name: string, value: any) => T;
|
|
1540
1721
|
}
|
|
1541
|
-
const visit: <T>(value: TraceToolCall, visitor: Visitor<T>) => T;
|
|
1542
1722
|
}
|
|
1543
1723
|
/**
|
|
1544
1724
|
* @public
|
|
@@ -1562,7 +1742,7 @@ export declare namespace TraceSegmentCompletionMessage {
|
|
|
1562
1742
|
}
|
|
1563
1743
|
interface ToolsMember {
|
|
1564
1744
|
text?: never;
|
|
1565
|
-
tools:
|
|
1745
|
+
tools: TraceSegmentCompletionToolMessage[];
|
|
1566
1746
|
$unknown?: never;
|
|
1567
1747
|
}
|
|
1568
1748
|
/**
|
|
@@ -1573,12 +1753,15 @@ export declare namespace TraceSegmentCompletionMessage {
|
|
|
1573
1753
|
tools?: never;
|
|
1574
1754
|
$unknown: [string, any];
|
|
1575
1755
|
}
|
|
1756
|
+
/**
|
|
1757
|
+
* @deprecated unused in schema-serde mode.
|
|
1758
|
+
*
|
|
1759
|
+
*/
|
|
1576
1760
|
interface Visitor<T> {
|
|
1577
1761
|
text: (value: string) => T;
|
|
1578
|
-
tools: (value:
|
|
1762
|
+
tools: (value: TraceSegmentCompletionToolMessage[]) => T;
|
|
1579
1763
|
_: (name: string, value: any) => T;
|
|
1580
1764
|
}
|
|
1581
|
-
const visit: <T>(value: TraceSegmentCompletionMessage, visitor: Visitor<T>) => T;
|
|
1582
1765
|
}
|
|
1583
1766
|
/**
|
|
1584
1767
|
* @public
|
|
@@ -1606,19 +1789,22 @@ export declare namespace TraceSegmentCompletionMessageItem {
|
|
|
1606
1789
|
bot?: never;
|
|
1607
1790
|
$unknown: [string, any];
|
|
1608
1791
|
}
|
|
1792
|
+
/**
|
|
1793
|
+
* @deprecated unused in schema-serde mode.
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1609
1796
|
interface Visitor<T> {
|
|
1610
1797
|
user: (value: TraceSegmentCompletionMessage) => T;
|
|
1611
1798
|
bot: (value: TraceSegmentCompletionMessage) => T;
|
|
1612
1799
|
_: (name: string, value: any) => T;
|
|
1613
1800
|
}
|
|
1614
|
-
const visit: <T>(value: TraceSegmentCompletionMessageItem, visitor: Visitor<T>) => T;
|
|
1615
1801
|
}
|
|
1616
1802
|
/**
|
|
1617
1803
|
* @public
|
|
1618
1804
|
*/
|
|
1619
1805
|
export interface TraceSegmentCompletionInput {
|
|
1620
1806
|
instructions: string;
|
|
1621
|
-
messages:
|
|
1807
|
+
messages: TraceSegmentCompletionMessageItem[];
|
|
1622
1808
|
model?: string | undefined;
|
|
1623
1809
|
}
|
|
1624
1810
|
/**
|
|
@@ -1647,12 +1833,15 @@ export declare namespace TraceGenericInputBlockContent {
|
|
|
1647
1833
|
json?: never;
|
|
1648
1834
|
$unknown: [string, any];
|
|
1649
1835
|
}
|
|
1836
|
+
/**
|
|
1837
|
+
* @deprecated unused in schema-serde mode.
|
|
1838
|
+
*
|
|
1839
|
+
*/
|
|
1650
1840
|
interface Visitor<T> {
|
|
1651
1841
|
text: (value: string) => T;
|
|
1652
1842
|
json: (value: __DocumentType) => T;
|
|
1653
1843
|
_: (name: string, value: any) => T;
|
|
1654
1844
|
}
|
|
1655
|
-
const visit: <T>(value: TraceGenericInputBlockContent, visitor: Visitor<T>) => T;
|
|
1656
1845
|
}
|
|
1657
1846
|
/**
|
|
1658
1847
|
* @public
|
|
@@ -1666,7 +1855,7 @@ export interface TraceGenericInputBlock {
|
|
|
1666
1855
|
*/
|
|
1667
1856
|
export interface TraceGenericInput {
|
|
1668
1857
|
title: string;
|
|
1669
|
-
blocks?:
|
|
1858
|
+
blocks?: TraceGenericInputBlock[] | undefined;
|
|
1670
1859
|
}
|
|
1671
1860
|
/**
|
|
1672
1861
|
* @public
|
|
@@ -1723,6 +1912,10 @@ export declare namespace TraceSegmentInput {
|
|
|
1723
1912
|
generic?: never;
|
|
1724
1913
|
$unknown: [string, any];
|
|
1725
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
* @deprecated unused in schema-serde mode.
|
|
1917
|
+
*
|
|
1918
|
+
*/
|
|
1726
1919
|
interface Visitor<T> {
|
|
1727
1920
|
completion: (value: TraceSegmentCompletionInput) => T;
|
|
1728
1921
|
tool: (value: TraceToolCall) => T;
|
|
@@ -1730,7 +1923,6 @@ export declare namespace TraceSegmentInput {
|
|
|
1730
1923
|
generic: (value: TraceGenericInput) => T;
|
|
1731
1924
|
_: (name: string, value: any) => T;
|
|
1732
1925
|
}
|
|
1733
|
-
const visit: <T>(value: TraceSegmentInput, visitor: Visitor<T>) => T;
|
|
1734
1926
|
}
|
|
1735
1927
|
/**
|
|
1736
1928
|
* @public
|
|
@@ -1749,7 +1941,7 @@ export declare namespace TraceSegmentResult {
|
|
|
1749
1941
|
}
|
|
1750
1942
|
interface ToolsMember {
|
|
1751
1943
|
error?: never;
|
|
1752
|
-
tools:
|
|
1944
|
+
tools: TraceToolCall[];
|
|
1753
1945
|
text?: never;
|
|
1754
1946
|
json?: never;
|
|
1755
1947
|
$unknown?: never;
|
|
@@ -1778,28 +1970,18 @@ export declare namespace TraceSegmentResult {
|
|
|
1778
1970
|
json?: never;
|
|
1779
1971
|
$unknown: [string, any];
|
|
1780
1972
|
}
|
|
1973
|
+
/**
|
|
1974
|
+
* @deprecated unused in schema-serde mode.
|
|
1975
|
+
*
|
|
1976
|
+
*/
|
|
1781
1977
|
interface Visitor<T> {
|
|
1782
1978
|
error: (value: TraceErrorResult) => T;
|
|
1783
|
-
tools: (value:
|
|
1979
|
+
tools: (value: TraceToolCall[]) => T;
|
|
1784
1980
|
text: (value: string) => T;
|
|
1785
1981
|
json: (value: __DocumentType) => T;
|
|
1786
1982
|
_: (name: string, value: any) => T;
|
|
1787
1983
|
}
|
|
1788
|
-
const visit: <T>(value: TraceSegmentResult, visitor: Visitor<T>) => T;
|
|
1789
1984
|
}
|
|
1790
|
-
/**
|
|
1791
|
-
* @public
|
|
1792
|
-
* @enum
|
|
1793
|
-
*/
|
|
1794
|
-
export declare const TraceSegmentStatus: {
|
|
1795
|
-
readonly COMPLETE: "complete";
|
|
1796
|
-
readonly ERROR: "error";
|
|
1797
|
-
readonly PENDING: "pending";
|
|
1798
|
-
};
|
|
1799
|
-
/**
|
|
1800
|
-
* @public
|
|
1801
|
-
*/
|
|
1802
|
-
export type TraceSegmentStatus = typeof TraceSegmentStatus[keyof typeof TraceSegmentStatus];
|
|
1803
1985
|
/**
|
|
1804
1986
|
* @public
|
|
1805
1987
|
*/
|
|
@@ -1813,19 +1995,6 @@ export interface TraceSegment {
|
|
|
1813
1995
|
start: number;
|
|
1814
1996
|
duration?: number | undefined;
|
|
1815
1997
|
}
|
|
1816
|
-
/**
|
|
1817
|
-
* @public
|
|
1818
|
-
* @enum
|
|
1819
|
-
*/
|
|
1820
|
-
export declare const TraceSessionStatus: {
|
|
1821
|
-
readonly COMPLETE: "complete";
|
|
1822
|
-
readonly COMPLETE_WITH_ERROR: "complete_with_error";
|
|
1823
|
-
readonly PENDING: "pending";
|
|
1824
|
-
};
|
|
1825
|
-
/**
|
|
1826
|
-
* @public
|
|
1827
|
-
*/
|
|
1828
|
-
export type TraceSessionStatus = typeof TraceSessionStatus[keyof typeof TraceSessionStatus];
|
|
1829
1998
|
/**
|
|
1830
1999
|
* @public
|
|
1831
2000
|
*/
|
|
@@ -1859,7 +2028,7 @@ export interface PubSubBroadcastItem {
|
|
|
1859
2028
|
export interface PubSubBroadcastWebsocketEvent {
|
|
1860
2029
|
event: string;
|
|
1861
2030
|
topic: string;
|
|
1862
|
-
items:
|
|
2031
|
+
items: PubSubBroadcastItem[];
|
|
1863
2032
|
}
|
|
1864
2033
|
/**
|
|
1865
2034
|
* @public
|
|
@@ -2002,8 +2171,8 @@ export interface GetTraceInput {
|
|
|
2002
2171
|
*/
|
|
2003
2172
|
export interface Trace {
|
|
2004
2173
|
session: TraceSession;
|
|
2005
|
-
activities:
|
|
2006
|
-
segments:
|
|
2174
|
+
activities: TraceActivity[];
|
|
2175
|
+
segments: TraceSegment[];
|
|
2007
2176
|
usage?: TraceUsage | undefined;
|
|
2008
2177
|
cost?: number | undefined;
|
|
2009
2178
|
}
|
|
@@ -2013,18 +2182,6 @@ export interface Trace {
|
|
|
2013
2182
|
export interface GetTraceOutput {
|
|
2014
2183
|
trace: Trace;
|
|
2015
2184
|
}
|
|
2016
|
-
/**
|
|
2017
|
-
* @public
|
|
2018
|
-
*/
|
|
2019
|
-
export declare class VoiceBotNotFoundException extends __BaseException {
|
|
2020
|
-
readonly name: "VoiceBotNotFoundException";
|
|
2021
|
-
readonly $fault: "client";
|
|
2022
|
-
type?: string | undefined;
|
|
2023
|
-
/**
|
|
2024
|
-
* @internal
|
|
2025
|
-
*/
|
|
2026
|
-
constructor(opts: __ExceptionOptionType<VoiceBotNotFoundException, __BaseException>);
|
|
2027
|
-
}
|
|
2028
2185
|
/**
|
|
2029
2186
|
* @public
|
|
2030
2187
|
*/
|
|
@@ -2053,7 +2210,7 @@ export interface ListTracesInput {
|
|
|
2053
2210
|
* @public
|
|
2054
2211
|
*/
|
|
2055
2212
|
export interface ListTracesOutput {
|
|
2056
|
-
traces:
|
|
2213
|
+
traces: TraceSession[];
|
|
2057
2214
|
}
|
|
2058
2215
|
/**
|
|
2059
2216
|
* @public
|
|
@@ -2065,7 +2222,7 @@ export interface ListVoiceBotsInput {
|
|
|
2065
2222
|
* @public
|
|
2066
2223
|
*/
|
|
2067
2224
|
export interface ListVoiceBotsOutput {
|
|
2068
|
-
bots:
|
|
2225
|
+
bots: VoiceBot[];
|
|
2069
2226
|
}
|
|
2070
2227
|
/**
|
|
2071
2228
|
* @public
|
|
@@ -2084,7 +2241,7 @@ export interface VoiceBotInfo {
|
|
|
2084
2241
|
* @public
|
|
2085
2242
|
*/
|
|
2086
2243
|
export interface ListVoiceBotsNamesOutput {
|
|
2087
|
-
bots:
|
|
2244
|
+
bots: VoiceBotInfo[];
|
|
2088
2245
|
}
|
|
2089
2246
|
/**
|
|
2090
2247
|
* @public
|
|
@@ -2098,18 +2255,6 @@ export interface SendHangupInput {
|
|
|
2098
2255
|
*/
|
|
2099
2256
|
export interface SendHangupOutput {
|
|
2100
2257
|
}
|
|
2101
|
-
/**
|
|
2102
|
-
* @public
|
|
2103
|
-
*/
|
|
2104
|
-
export declare class VoiceSessionNotFoundException extends __BaseException {
|
|
2105
|
-
readonly name: "VoiceSessionNotFoundException";
|
|
2106
|
-
readonly $fault: "client";
|
|
2107
|
-
type?: string | undefined;
|
|
2108
|
-
/**
|
|
2109
|
-
* @internal
|
|
2110
|
-
*/
|
|
2111
|
-
constructor(opts: __ExceptionOptionType<VoiceSessionNotFoundException, __BaseException>);
|
|
2112
|
-
}
|
|
2113
2258
|
/**
|
|
2114
2259
|
* @public
|
|
2115
2260
|
*/
|
|
@@ -2188,7 +2333,7 @@ export interface UpdateVoiceBotInput {
|
|
|
2188
2333
|
* @public
|
|
2189
2334
|
*/
|
|
2190
2335
|
endpoint: VoiceBotEndpoint;
|
|
2191
|
-
capabilities?:
|
|
2336
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
2192
2337
|
/**
|
|
2193
2338
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
2194
2339
|
* @public
|