@wildix/wim-voicebots-client 1.1.9 → 4.0.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-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 -350
- 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 -344
- 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 +11 -7
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/DescribeEventCommand.d.ts +11 -7
- package/dist-types/commands/GetTraceCommand.d.ts +11 -7
- package/dist-types/commands/GetVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/ListTracesCommand.d.ts +11 -7
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +11 -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 +11 -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 +92 -244
- package/dist-types/runtimeConfig.browser.d.ts +34 -15
- package/dist-types/runtimeConfig.d.ts +33 -14
- package/dist-types/runtimeConfig.native.d.ts +35 -16
- 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 +13 -39
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1106
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1075
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
4
|
-
/**
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare class ForbiddenException extends __BaseException {
|
|
8
|
-
readonly name: "ForbiddenException";
|
|
9
|
-
readonly $fault: "client";
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export declare class ValidationException extends __BaseException {
|
|
19
|
-
readonly name: "ValidationException";
|
|
20
|
-
readonly $fault: "client";
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
25
|
-
}
|
|
1
|
+
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import type { AnnotationSourceType, TraceActivityStatus, TraceSegmentStatus, TraceSessionStatus, VoiceBotCapabilityToolPipelineType, VoiceBotCommandType, VoiceBotEmbeddedToolType, VoiceBotEventType, VoiceBotFunctionIntegrationMethod, VoiceBotToolType } from "./enums";
|
|
26
3
|
/**
|
|
27
4
|
* Tool result captured for an annotation. Runtime services enforce serialized payload size limits.
|
|
28
5
|
* @public
|
|
@@ -91,6 +68,10 @@ export declare namespace AnnotationPayload {
|
|
|
91
68
|
result?: never;
|
|
92
69
|
$unknown: [string, any];
|
|
93
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated unused in schema-serde mode.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
94
75
|
interface Visitor<T> {
|
|
95
76
|
tag: (value: string) => T;
|
|
96
77
|
text: (value: string) => T;
|
|
@@ -98,22 +79,7 @@ export declare namespace AnnotationPayload {
|
|
|
98
79
|
result: (value: AnnotationResultValue) => T;
|
|
99
80
|
_: (name: string, value: any) => T;
|
|
100
81
|
}
|
|
101
|
-
const visit: <T>(value: AnnotationPayload, visitor: Visitor<T>) => T;
|
|
102
82
|
}
|
|
103
|
-
/**
|
|
104
|
-
* @public
|
|
105
|
-
* @enum
|
|
106
|
-
*/
|
|
107
|
-
export declare const AnnotationSourceType: {
|
|
108
|
-
readonly CHATBOT: "chatbot";
|
|
109
|
-
readonly SYSTEM: "system";
|
|
110
|
-
readonly USER: "user";
|
|
111
|
-
readonly VOICEBOT: "voicebot";
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
*/
|
|
116
|
-
export type AnnotationSourceType = typeof AnnotationSourceType[keyof typeof AnnotationSourceType];
|
|
117
83
|
/**
|
|
118
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.
|
|
119
85
|
* @public
|
|
@@ -144,24 +110,6 @@ export interface Annotation {
|
|
|
144
110
|
*/
|
|
145
111
|
source: AnnotationSource;
|
|
146
112
|
}
|
|
147
|
-
/**
|
|
148
|
-
* @public
|
|
149
|
-
* @enum
|
|
150
|
-
*/
|
|
151
|
-
export declare const VoiceBotEventType: {
|
|
152
|
-
readonly AUDIO: "audio";
|
|
153
|
-
readonly COMPLETE: "complete";
|
|
154
|
-
readonly ENDED: "ended";
|
|
155
|
-
readonly INTERRUPTION: "interruption";
|
|
156
|
-
readonly PLAYBACK: "playback";
|
|
157
|
-
readonly REPLY: "reply";
|
|
158
|
-
readonly STARTED: "started";
|
|
159
|
-
readonly TRANSCRIPTION: "transcription";
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* @public
|
|
163
|
-
*/
|
|
164
|
-
export type VoiceBotEventType = typeof VoiceBotEventType[keyof typeof VoiceBotEventType];
|
|
165
113
|
/**
|
|
166
114
|
* @public
|
|
167
115
|
*/
|
|
@@ -325,6 +273,10 @@ export declare namespace VoiceBotToolAnnotation {
|
|
|
325
273
|
result?: never;
|
|
326
274
|
$unknown: [string, any];
|
|
327
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* @deprecated unused in schema-serde mode.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
328
280
|
interface Visitor<T> {
|
|
329
281
|
tag: (value: VoiceBotToolTagAnnotation) => T;
|
|
330
282
|
comment: (value: VoiceBotToolCommentAnnotation) => T;
|
|
@@ -332,7 +284,6 @@ export declare namespace VoiceBotToolAnnotation {
|
|
|
332
284
|
result: (value: VoiceBotToolResultAnnotation) => T;
|
|
333
285
|
_: (name: string, value: any) => T;
|
|
334
286
|
}
|
|
335
|
-
const visit: <T>(value: VoiceBotToolAnnotation, visitor: Visitor<T>) => T;
|
|
336
287
|
}
|
|
337
288
|
/**
|
|
338
289
|
* @public
|
|
@@ -344,22 +295,8 @@ export interface VoiceBotKnowledgeBase {
|
|
|
344
295
|
* @public
|
|
345
296
|
*/
|
|
346
297
|
instructions?: string | undefined;
|
|
347
|
-
annotations?:
|
|
298
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
348
299
|
}
|
|
349
|
-
/**
|
|
350
|
-
* @public
|
|
351
|
-
* @enum
|
|
352
|
-
*/
|
|
353
|
-
export declare const VoiceBotCapabilityToolPipelineType: {
|
|
354
|
-
readonly ASYNC_REQUEST: "async_request";
|
|
355
|
-
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
356
|
-
readonly BLOCKING_REQUEST: "blocking_request";
|
|
357
|
-
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* @public
|
|
361
|
-
*/
|
|
362
|
-
export type VoiceBotCapabilityToolPipelineType = typeof VoiceBotCapabilityToolPipelineType[keyof typeof VoiceBotCapabilityToolPipelineType];
|
|
363
300
|
/**
|
|
364
301
|
* @public
|
|
365
302
|
*/
|
|
@@ -427,13 +364,16 @@ export declare namespace VoiceBotToolVariableHandler {
|
|
|
427
364
|
predefined?: never;
|
|
428
365
|
$unknown: [string, any];
|
|
429
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* @deprecated unused in schema-serde mode.
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
430
371
|
interface Visitor<T> {
|
|
431
372
|
auto: (value: VoiceBotToolVariableAutoHandler) => T;
|
|
432
373
|
guided: (value: VoiceBotToolVariableGuidedHandler) => T;
|
|
433
374
|
predefined: (value: VoiceBotToolVariablePredefinedHandler) => T;
|
|
434
375
|
_: (name: string, value: any) => T;
|
|
435
376
|
}
|
|
436
|
-
const visit: <T>(value: VoiceBotToolVariableHandler, visitor: Visitor<T>) => T;
|
|
437
377
|
}
|
|
438
378
|
/**
|
|
439
379
|
* @public
|
|
@@ -455,7 +395,7 @@ export interface VoiceBotCapabilityTool {
|
|
|
455
395
|
* @public
|
|
456
396
|
*/
|
|
457
397
|
id: string;
|
|
458
|
-
variables?:
|
|
398
|
+
variables?: VoiceBotToolVariable[] | undefined;
|
|
459
399
|
/**
|
|
460
400
|
* Message spoken when the tool call starts.
|
|
461
401
|
* @public
|
|
@@ -466,7 +406,7 @@ export interface VoiceBotCapabilityTool {
|
|
|
466
406
|
* @public
|
|
467
407
|
*/
|
|
468
408
|
pipeline?: VoiceBotCapabilityToolPipeline | undefined;
|
|
469
|
-
annotations?:
|
|
409
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
470
410
|
}
|
|
471
411
|
/**
|
|
472
412
|
* @public
|
|
@@ -494,12 +434,15 @@ export declare namespace VoiceBotCapability {
|
|
|
494
434
|
kb?: never;
|
|
495
435
|
$unknown: [string, any];
|
|
496
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated unused in schema-serde mode.
|
|
439
|
+
*
|
|
440
|
+
*/
|
|
497
441
|
interface Visitor<T> {
|
|
498
442
|
tool: (value: VoiceBotCapabilityTool) => T;
|
|
499
443
|
kb: (value: VoiceBotKnowledgeBase) => T;
|
|
500
444
|
_: (name: string, value: any) => T;
|
|
501
445
|
}
|
|
502
|
-
const visit: <T>(value: VoiceBotCapability, visitor: Visitor<T>) => T;
|
|
503
446
|
}
|
|
504
447
|
/**
|
|
505
448
|
* @public
|
|
@@ -526,20 +469,6 @@ export interface BotDialogflowCxEndpoint {
|
|
|
526
469
|
*/
|
|
527
470
|
language: string;
|
|
528
471
|
}
|
|
529
|
-
/**
|
|
530
|
-
* @public
|
|
531
|
-
* @enum
|
|
532
|
-
*/
|
|
533
|
-
export declare const VoiceBotEmbeddedToolType: {
|
|
534
|
-
readonly DELEGATE: "DELEGATE";
|
|
535
|
-
readonly HANGUP: "HANGUP";
|
|
536
|
-
readonly TRANSFER: "TRANSFER";
|
|
537
|
-
readonly WAIT: "WAIT";
|
|
538
|
-
};
|
|
539
|
-
/**
|
|
540
|
-
* @public
|
|
541
|
-
*/
|
|
542
|
-
export type VoiceBotEmbeddedToolType = typeof VoiceBotEmbeddedToolType[keyof typeof VoiceBotEmbeddedToolType];
|
|
543
472
|
/**
|
|
544
473
|
* @public
|
|
545
474
|
*/
|
|
@@ -551,7 +480,7 @@ export interface VoiceBotEmbeddedTool {
|
|
|
551
480
|
* @public
|
|
552
481
|
*/
|
|
553
482
|
parameters?: __DocumentType | undefined;
|
|
554
|
-
annotations?:
|
|
483
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
555
484
|
}
|
|
556
485
|
/**
|
|
557
486
|
* @public
|
|
@@ -675,13 +604,16 @@ export declare namespace VoiceBotFunctionIntegrationWebhookAuthorization {
|
|
|
675
604
|
oauth?: never;
|
|
676
605
|
$unknown: [string, any];
|
|
677
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* @deprecated unused in schema-serde mode.
|
|
609
|
+
*
|
|
610
|
+
*/
|
|
678
611
|
interface Visitor<T> {
|
|
679
612
|
bearer: (value: VoiceBotFunctionIntegrationWebhookAuthorizationBearer) => T;
|
|
680
613
|
basic: (value: VoiceBotFunctionIntegrationWebhookAuthorizationBasic) => T;
|
|
681
614
|
oauth: (value: VoiceBotFunctionIntegrationWebhookAuthorizationOAuth) => T;
|
|
682
615
|
_: (name: string, value: any) => T;
|
|
683
616
|
}
|
|
684
|
-
const visit: <T>(value: VoiceBotFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
|
|
685
617
|
}
|
|
686
618
|
/**
|
|
687
619
|
* @public
|
|
@@ -690,21 +622,6 @@ export interface VoiceBotFunctionIntegrationWebhookHeader {
|
|
|
690
622
|
key: string;
|
|
691
623
|
value: string;
|
|
692
624
|
}
|
|
693
|
-
/**
|
|
694
|
-
* @public
|
|
695
|
-
* @enum
|
|
696
|
-
*/
|
|
697
|
-
export declare const VoiceBotFunctionIntegrationMethod: {
|
|
698
|
-
readonly DELETE: "delete";
|
|
699
|
-
readonly GET: "get";
|
|
700
|
-
readonly PATCH: "patch";
|
|
701
|
-
readonly POST: "post";
|
|
702
|
-
readonly PUT: "put";
|
|
703
|
-
};
|
|
704
|
-
/**
|
|
705
|
-
* @public
|
|
706
|
-
*/
|
|
707
|
-
export type VoiceBotFunctionIntegrationMethod = typeof VoiceBotFunctionIntegrationMethod[keyof typeof VoiceBotFunctionIntegrationMethod];
|
|
708
625
|
/**
|
|
709
626
|
* @public
|
|
710
627
|
*/
|
|
@@ -713,7 +630,7 @@ export interface VoiceBotFunctionIntegrationWebhook {
|
|
|
713
630
|
method?: VoiceBotFunctionIntegrationMethod | undefined;
|
|
714
631
|
async?: boolean | undefined;
|
|
715
632
|
authorization?: VoiceBotFunctionIntegrationWebhookAuthorization | undefined;
|
|
716
|
-
headers?:
|
|
633
|
+
headers?: VoiceBotFunctionIntegrationWebhookHeader[] | undefined;
|
|
717
634
|
/**
|
|
718
635
|
* Timeout in milliseconds for the webhook request.
|
|
719
636
|
* @public
|
|
@@ -745,11 +662,14 @@ export declare namespace VoiceBotFunctionIntegration {
|
|
|
745
662
|
webhook?: never;
|
|
746
663
|
$unknown: [string, any];
|
|
747
664
|
}
|
|
665
|
+
/**
|
|
666
|
+
* @deprecated unused in schema-serde mode.
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
748
669
|
interface Visitor<T> {
|
|
749
670
|
webhook: (value: VoiceBotFunctionIntegrationWebhook) => T;
|
|
750
671
|
_: (name: string, value: any) => T;
|
|
751
672
|
}
|
|
752
|
-
const visit: <T>(value: VoiceBotFunctionIntegration, visitor: Visitor<T>) => T;
|
|
753
673
|
}
|
|
754
674
|
/**
|
|
755
675
|
* @public
|
|
@@ -772,24 +692,13 @@ export interface VoiceBotFunctionDefinition {
|
|
|
772
692
|
parameters?: __DocumentType | undefined;
|
|
773
693
|
integration?: VoiceBotFunctionIntegration | undefined;
|
|
774
694
|
}
|
|
775
|
-
/**
|
|
776
|
-
* @public
|
|
777
|
-
* @enum
|
|
778
|
-
*/
|
|
779
|
-
export declare const VoiceBotToolType: {
|
|
780
|
-
readonly FUNCTION: "function";
|
|
781
|
-
};
|
|
782
|
-
/**
|
|
783
|
-
* @public
|
|
784
|
-
*/
|
|
785
|
-
export type VoiceBotToolType = typeof VoiceBotToolType[keyof typeof VoiceBotToolType];
|
|
786
695
|
/**
|
|
787
696
|
* @public
|
|
788
697
|
*/
|
|
789
698
|
export interface VoiceBotTool {
|
|
790
699
|
type: VoiceBotToolType;
|
|
791
700
|
function?: VoiceBotFunctionDefinition | undefined;
|
|
792
|
-
annotations?:
|
|
701
|
+
annotations?: VoiceBotToolAnnotation[] | undefined;
|
|
793
702
|
}
|
|
794
703
|
/**
|
|
795
704
|
* @public
|
|
@@ -807,7 +716,7 @@ export interface VoiceBotLlmEndpoint {
|
|
|
807
716
|
* @public
|
|
808
717
|
*/
|
|
809
718
|
model?: string | undefined;
|
|
810
|
-
guidelines?:
|
|
719
|
+
guidelines?: string[] | undefined;
|
|
811
720
|
/**
|
|
812
721
|
* Metadata configuration to include in the system prompt context.
|
|
813
722
|
* @public
|
|
@@ -817,18 +726,18 @@ export interface VoiceBotLlmEndpoint {
|
|
|
817
726
|
* Embedded functions to use within voice session.
|
|
818
727
|
* @public
|
|
819
728
|
*/
|
|
820
|
-
embeddedTools?:
|
|
729
|
+
embeddedTools?: VoiceBotEmbeddedTool[] | undefined;
|
|
821
730
|
/**
|
|
822
731
|
* Custom tools to be used within voice session.
|
|
823
732
|
* @public
|
|
824
733
|
*/
|
|
825
|
-
tools?:
|
|
826
|
-
capabilities?:
|
|
734
|
+
tools?: VoiceBotTool[] | undefined;
|
|
735
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
827
736
|
/**
|
|
828
737
|
* Variables such as dialplan variables that can be used in the bot.
|
|
829
738
|
* @public
|
|
830
739
|
*/
|
|
831
|
-
variables?:
|
|
740
|
+
variables?: VoiceBotVariable[] | undefined;
|
|
832
741
|
}
|
|
833
742
|
/**
|
|
834
743
|
* @public
|
|
@@ -911,6 +820,10 @@ export declare namespace VoiceBotEndpoint {
|
|
|
911
820
|
sqs?: never;
|
|
912
821
|
$unknown: [string, any];
|
|
913
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* @deprecated unused in schema-serde mode.
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
914
827
|
interface Visitor<T> {
|
|
915
828
|
llm: (value: VoiceBotLlmEndpoint) => T;
|
|
916
829
|
dialogflowCx: (value: BotDialogflowCxEndpoint) => T;
|
|
@@ -919,7 +832,6 @@ export declare namespace VoiceBotEndpoint {
|
|
|
919
832
|
sqs: (value: BotSqsEndpoint) => T;
|
|
920
833
|
_: (name: string, value: any) => T;
|
|
921
834
|
}
|
|
922
|
-
const visit: <T>(value: VoiceBotEndpoint, visitor: Visitor<T>) => T;
|
|
923
835
|
}
|
|
924
836
|
/**
|
|
925
837
|
* @public
|
|
@@ -959,12 +871,15 @@ export declare namespace VoiceBotPipelineTerminateAction {
|
|
|
959
871
|
transfer?: never;
|
|
960
872
|
$unknown: [string, any];
|
|
961
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* @deprecated unused in schema-serde mode.
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
962
878
|
interface Visitor<T> {
|
|
963
879
|
hangup: (value: VoiceBotTerminateHangupAction) => T;
|
|
964
880
|
transfer: (value: VoiceBotTerminateTransferAction) => T;
|
|
965
881
|
_: (name: string, value: any) => T;
|
|
966
882
|
}
|
|
967
|
-
const visit: <T>(value: VoiceBotPipelineTerminateAction, visitor: Visitor<T>) => T;
|
|
968
883
|
}
|
|
969
884
|
/**
|
|
970
885
|
* @public
|
|
@@ -1027,7 +942,7 @@ export interface CreateVoiceBotInput {
|
|
|
1027
942
|
* @public
|
|
1028
943
|
*/
|
|
1029
944
|
endpoint: VoiceBotEndpoint;
|
|
1030
|
-
capabilities?:
|
|
945
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
1031
946
|
/**
|
|
1032
947
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
1033
948
|
* @public
|
|
@@ -1056,7 +971,7 @@ export interface VoiceBot {
|
|
|
1056
971
|
* @public
|
|
1057
972
|
*/
|
|
1058
973
|
endpoint: VoiceBotEndpoint;
|
|
1059
|
-
capabilities?:
|
|
974
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
1060
975
|
/**
|
|
1061
976
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
1062
977
|
* @public
|
|
@@ -1072,18 +987,6 @@ export interface VoiceBot {
|
|
|
1072
987
|
export interface CreateVoiceBotOutput {
|
|
1073
988
|
bot: VoiceBot;
|
|
1074
989
|
}
|
|
1075
|
-
/**
|
|
1076
|
-
* @public
|
|
1077
|
-
*/
|
|
1078
|
-
export declare class VoiceBotNonUniqueNameException extends __BaseException {
|
|
1079
|
-
readonly name: "VoiceBotNonUniqueNameException";
|
|
1080
|
-
readonly $fault: "client";
|
|
1081
|
-
type?: string | undefined;
|
|
1082
|
-
/**
|
|
1083
|
-
* @internal
|
|
1084
|
-
*/
|
|
1085
|
-
constructor(opts: __ExceptionOptionType<VoiceBotNonUniqueNameException, __BaseException>);
|
|
1086
|
-
}
|
|
1087
990
|
/**
|
|
1088
991
|
* @public
|
|
1089
992
|
*/
|
|
@@ -1101,21 +1004,6 @@ export interface DeleteVoiceBotOutput {
|
|
|
1101
1004
|
*/
|
|
1102
1005
|
export interface DescribeEventInput {
|
|
1103
1006
|
}
|
|
1104
|
-
/**
|
|
1105
|
-
* @public
|
|
1106
|
-
* @enum
|
|
1107
|
-
*/
|
|
1108
|
-
export declare const VoiceBotCommandType: {
|
|
1109
|
-
readonly HANGUP: "hangup";
|
|
1110
|
-
readonly PLAY: "play";
|
|
1111
|
-
readonly SAY: "say";
|
|
1112
|
-
readonly STOP: "stop";
|
|
1113
|
-
readonly TRANSFER: "transfer";
|
|
1114
|
-
};
|
|
1115
|
-
/**
|
|
1116
|
-
* @public
|
|
1117
|
-
*/
|
|
1118
|
-
export type VoiceBotCommandType = typeof VoiceBotCommandType[keyof typeof VoiceBotCommandType];
|
|
1119
1007
|
/**
|
|
1120
1008
|
* @public
|
|
1121
1009
|
*/
|
|
@@ -1238,27 +1126,16 @@ export declare namespace TraceActivityResult {
|
|
|
1238
1126
|
text?: never;
|
|
1239
1127
|
$unknown: [string, any];
|
|
1240
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
* @deprecated unused in schema-serde mode.
|
|
1131
|
+
*
|
|
1132
|
+
*/
|
|
1241
1133
|
interface Visitor<T> {
|
|
1242
1134
|
error: (value: TraceErrorResult) => T;
|
|
1243
1135
|
text: (value: string) => T;
|
|
1244
1136
|
_: (name: string, value: any) => T;
|
|
1245
1137
|
}
|
|
1246
|
-
const visit: <T>(value: TraceActivityResult, visitor: Visitor<T>) => T;
|
|
1247
1138
|
}
|
|
1248
|
-
/**
|
|
1249
|
-
* @public
|
|
1250
|
-
* @enum
|
|
1251
|
-
*/
|
|
1252
|
-
export declare const TraceActivityStatus: {
|
|
1253
|
-
readonly CANCELLED: "cancelled";
|
|
1254
|
-
readonly COMPLETE: "complete";
|
|
1255
|
-
readonly ERROR: "error";
|
|
1256
|
-
readonly PENDING: "pending";
|
|
1257
|
-
};
|
|
1258
|
-
/**
|
|
1259
|
-
* @public
|
|
1260
|
-
*/
|
|
1261
|
-
export type TraceActivityStatus = typeof TraceActivityStatus[keyof typeof TraceActivityStatus];
|
|
1262
1139
|
/**
|
|
1263
1140
|
* Trace activity written when the voicebot emits an annotation.
|
|
1264
1141
|
* @public
|
|
@@ -1607,6 +1484,10 @@ export declare namespace TraceActivityTrigger {
|
|
|
1607
1484
|
durationTimeoutTask?: never;
|
|
1608
1485
|
$unknown: [string, any];
|
|
1609
1486
|
}
|
|
1487
|
+
/**
|
|
1488
|
+
* @deprecated unused in schema-serde mode.
|
|
1489
|
+
*
|
|
1490
|
+
*/
|
|
1610
1491
|
interface Visitor<T> {
|
|
1611
1492
|
connectEvent: (value: TraceConnectEventTrigger) => T;
|
|
1612
1493
|
disconnectEvent: (value: TraceDisconnectEventTrigger) => T;
|
|
@@ -1623,7 +1504,6 @@ export declare namespace TraceActivityTrigger {
|
|
|
1623
1504
|
durationTimeoutTask: (value: TraceDurationTimeoutTaskTrigger) => T;
|
|
1624
1505
|
_: (name: string, value: any) => T;
|
|
1625
1506
|
}
|
|
1626
|
-
const visit: <T>(value: TraceActivityTrigger, visitor: Visitor<T>) => T;
|
|
1627
1507
|
}
|
|
1628
1508
|
/**
|
|
1629
1509
|
* @public
|
|
@@ -1825,6 +1705,10 @@ export declare namespace TraceToolCall {
|
|
|
1825
1705
|
capabilityKb?: never;
|
|
1826
1706
|
$unknown: [string, any];
|
|
1827
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @deprecated unused in schema-serde mode.
|
|
1710
|
+
*
|
|
1711
|
+
*/
|
|
1828
1712
|
interface Visitor<T> {
|
|
1829
1713
|
transfer: (value: TraceTransferToolCall) => T;
|
|
1830
1714
|
hangup: (value: TraceHangupToolCall) => T;
|
|
@@ -1835,7 +1719,6 @@ export declare namespace TraceToolCall {
|
|
|
1835
1719
|
capabilityKb: (value: TraceCapabilityKbCall) => T;
|
|
1836
1720
|
_: (name: string, value: any) => T;
|
|
1837
1721
|
}
|
|
1838
|
-
const visit: <T>(value: TraceToolCall, visitor: Visitor<T>) => T;
|
|
1839
1722
|
}
|
|
1840
1723
|
/**
|
|
1841
1724
|
* @public
|
|
@@ -1859,7 +1742,7 @@ export declare namespace TraceSegmentCompletionMessage {
|
|
|
1859
1742
|
}
|
|
1860
1743
|
interface ToolsMember {
|
|
1861
1744
|
text?: never;
|
|
1862
|
-
tools:
|
|
1745
|
+
tools: TraceSegmentCompletionToolMessage[];
|
|
1863
1746
|
$unknown?: never;
|
|
1864
1747
|
}
|
|
1865
1748
|
/**
|
|
@@ -1870,12 +1753,15 @@ export declare namespace TraceSegmentCompletionMessage {
|
|
|
1870
1753
|
tools?: never;
|
|
1871
1754
|
$unknown: [string, any];
|
|
1872
1755
|
}
|
|
1756
|
+
/**
|
|
1757
|
+
* @deprecated unused in schema-serde mode.
|
|
1758
|
+
*
|
|
1759
|
+
*/
|
|
1873
1760
|
interface Visitor<T> {
|
|
1874
1761
|
text: (value: string) => T;
|
|
1875
|
-
tools: (value:
|
|
1762
|
+
tools: (value: TraceSegmentCompletionToolMessage[]) => T;
|
|
1876
1763
|
_: (name: string, value: any) => T;
|
|
1877
1764
|
}
|
|
1878
|
-
const visit: <T>(value: TraceSegmentCompletionMessage, visitor: Visitor<T>) => T;
|
|
1879
1765
|
}
|
|
1880
1766
|
/**
|
|
1881
1767
|
* @public
|
|
@@ -1903,19 +1789,22 @@ export declare namespace TraceSegmentCompletionMessageItem {
|
|
|
1903
1789
|
bot?: never;
|
|
1904
1790
|
$unknown: [string, any];
|
|
1905
1791
|
}
|
|
1792
|
+
/**
|
|
1793
|
+
* @deprecated unused in schema-serde mode.
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1906
1796
|
interface Visitor<T> {
|
|
1907
1797
|
user: (value: TraceSegmentCompletionMessage) => T;
|
|
1908
1798
|
bot: (value: TraceSegmentCompletionMessage) => T;
|
|
1909
1799
|
_: (name: string, value: any) => T;
|
|
1910
1800
|
}
|
|
1911
|
-
const visit: <T>(value: TraceSegmentCompletionMessageItem, visitor: Visitor<T>) => T;
|
|
1912
1801
|
}
|
|
1913
1802
|
/**
|
|
1914
1803
|
* @public
|
|
1915
1804
|
*/
|
|
1916
1805
|
export interface TraceSegmentCompletionInput {
|
|
1917
1806
|
instructions: string;
|
|
1918
|
-
messages:
|
|
1807
|
+
messages: TraceSegmentCompletionMessageItem[];
|
|
1919
1808
|
model?: string | undefined;
|
|
1920
1809
|
}
|
|
1921
1810
|
/**
|
|
@@ -1944,12 +1833,15 @@ export declare namespace TraceGenericInputBlockContent {
|
|
|
1944
1833
|
json?: never;
|
|
1945
1834
|
$unknown: [string, any];
|
|
1946
1835
|
}
|
|
1836
|
+
/**
|
|
1837
|
+
* @deprecated unused in schema-serde mode.
|
|
1838
|
+
*
|
|
1839
|
+
*/
|
|
1947
1840
|
interface Visitor<T> {
|
|
1948
1841
|
text: (value: string) => T;
|
|
1949
1842
|
json: (value: __DocumentType) => T;
|
|
1950
1843
|
_: (name: string, value: any) => T;
|
|
1951
1844
|
}
|
|
1952
|
-
const visit: <T>(value: TraceGenericInputBlockContent, visitor: Visitor<T>) => T;
|
|
1953
1845
|
}
|
|
1954
1846
|
/**
|
|
1955
1847
|
* @public
|
|
@@ -1963,7 +1855,7 @@ export interface TraceGenericInputBlock {
|
|
|
1963
1855
|
*/
|
|
1964
1856
|
export interface TraceGenericInput {
|
|
1965
1857
|
title: string;
|
|
1966
|
-
blocks?:
|
|
1858
|
+
blocks?: TraceGenericInputBlock[] | undefined;
|
|
1967
1859
|
}
|
|
1968
1860
|
/**
|
|
1969
1861
|
* @public
|
|
@@ -2020,6 +1912,10 @@ export declare namespace TraceSegmentInput {
|
|
|
2020
1912
|
generic?: never;
|
|
2021
1913
|
$unknown: [string, any];
|
|
2022
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
* @deprecated unused in schema-serde mode.
|
|
1917
|
+
*
|
|
1918
|
+
*/
|
|
2023
1919
|
interface Visitor<T> {
|
|
2024
1920
|
completion: (value: TraceSegmentCompletionInput) => T;
|
|
2025
1921
|
tool: (value: TraceToolCall) => T;
|
|
@@ -2027,7 +1923,6 @@ export declare namespace TraceSegmentInput {
|
|
|
2027
1923
|
generic: (value: TraceGenericInput) => T;
|
|
2028
1924
|
_: (name: string, value: any) => T;
|
|
2029
1925
|
}
|
|
2030
|
-
const visit: <T>(value: TraceSegmentInput, visitor: Visitor<T>) => T;
|
|
2031
1926
|
}
|
|
2032
1927
|
/**
|
|
2033
1928
|
* @public
|
|
@@ -2046,7 +1941,7 @@ export declare namespace TraceSegmentResult {
|
|
|
2046
1941
|
}
|
|
2047
1942
|
interface ToolsMember {
|
|
2048
1943
|
error?: never;
|
|
2049
|
-
tools:
|
|
1944
|
+
tools: TraceToolCall[];
|
|
2050
1945
|
text?: never;
|
|
2051
1946
|
json?: never;
|
|
2052
1947
|
$unknown?: never;
|
|
@@ -2075,28 +1970,18 @@ export declare namespace TraceSegmentResult {
|
|
|
2075
1970
|
json?: never;
|
|
2076
1971
|
$unknown: [string, any];
|
|
2077
1972
|
}
|
|
1973
|
+
/**
|
|
1974
|
+
* @deprecated unused in schema-serde mode.
|
|
1975
|
+
*
|
|
1976
|
+
*/
|
|
2078
1977
|
interface Visitor<T> {
|
|
2079
1978
|
error: (value: TraceErrorResult) => T;
|
|
2080
|
-
tools: (value:
|
|
1979
|
+
tools: (value: TraceToolCall[]) => T;
|
|
2081
1980
|
text: (value: string) => T;
|
|
2082
1981
|
json: (value: __DocumentType) => T;
|
|
2083
1982
|
_: (name: string, value: any) => T;
|
|
2084
1983
|
}
|
|
2085
|
-
const visit: <T>(value: TraceSegmentResult, visitor: Visitor<T>) => T;
|
|
2086
1984
|
}
|
|
2087
|
-
/**
|
|
2088
|
-
* @public
|
|
2089
|
-
* @enum
|
|
2090
|
-
*/
|
|
2091
|
-
export declare const TraceSegmentStatus: {
|
|
2092
|
-
readonly COMPLETE: "complete";
|
|
2093
|
-
readonly ERROR: "error";
|
|
2094
|
-
readonly PENDING: "pending";
|
|
2095
|
-
};
|
|
2096
|
-
/**
|
|
2097
|
-
* @public
|
|
2098
|
-
*/
|
|
2099
|
-
export type TraceSegmentStatus = typeof TraceSegmentStatus[keyof typeof TraceSegmentStatus];
|
|
2100
1985
|
/**
|
|
2101
1986
|
* @public
|
|
2102
1987
|
*/
|
|
@@ -2110,19 +1995,6 @@ export interface TraceSegment {
|
|
|
2110
1995
|
start: number;
|
|
2111
1996
|
duration?: number | undefined;
|
|
2112
1997
|
}
|
|
2113
|
-
/**
|
|
2114
|
-
* @public
|
|
2115
|
-
* @enum
|
|
2116
|
-
*/
|
|
2117
|
-
export declare const TraceSessionStatus: {
|
|
2118
|
-
readonly COMPLETE: "complete";
|
|
2119
|
-
readonly COMPLETE_WITH_ERROR: "complete_with_error";
|
|
2120
|
-
readonly PENDING: "pending";
|
|
2121
|
-
};
|
|
2122
|
-
/**
|
|
2123
|
-
* @public
|
|
2124
|
-
*/
|
|
2125
|
-
export type TraceSessionStatus = typeof TraceSessionStatus[keyof typeof TraceSessionStatus];
|
|
2126
1998
|
/**
|
|
2127
1999
|
* @public
|
|
2128
2000
|
*/
|
|
@@ -2156,7 +2028,7 @@ export interface PubSubBroadcastItem {
|
|
|
2156
2028
|
export interface PubSubBroadcastWebsocketEvent {
|
|
2157
2029
|
event: string;
|
|
2158
2030
|
topic: string;
|
|
2159
|
-
items:
|
|
2031
|
+
items: PubSubBroadcastItem[];
|
|
2160
2032
|
}
|
|
2161
2033
|
/**
|
|
2162
2034
|
* @public
|
|
@@ -2299,8 +2171,8 @@ export interface GetTraceInput {
|
|
|
2299
2171
|
*/
|
|
2300
2172
|
export interface Trace {
|
|
2301
2173
|
session: TraceSession;
|
|
2302
|
-
activities:
|
|
2303
|
-
segments:
|
|
2174
|
+
activities: TraceActivity[];
|
|
2175
|
+
segments: TraceSegment[];
|
|
2304
2176
|
usage?: TraceUsage | undefined;
|
|
2305
2177
|
cost?: number | undefined;
|
|
2306
2178
|
}
|
|
@@ -2310,18 +2182,6 @@ export interface Trace {
|
|
|
2310
2182
|
export interface GetTraceOutput {
|
|
2311
2183
|
trace: Trace;
|
|
2312
2184
|
}
|
|
2313
|
-
/**
|
|
2314
|
-
* @public
|
|
2315
|
-
*/
|
|
2316
|
-
export declare class VoiceBotNotFoundException extends __BaseException {
|
|
2317
|
-
readonly name: "VoiceBotNotFoundException";
|
|
2318
|
-
readonly $fault: "client";
|
|
2319
|
-
type?: string | undefined;
|
|
2320
|
-
/**
|
|
2321
|
-
* @internal
|
|
2322
|
-
*/
|
|
2323
|
-
constructor(opts: __ExceptionOptionType<VoiceBotNotFoundException, __BaseException>);
|
|
2324
|
-
}
|
|
2325
2185
|
/**
|
|
2326
2186
|
* @public
|
|
2327
2187
|
*/
|
|
@@ -2350,7 +2210,7 @@ export interface ListTracesInput {
|
|
|
2350
2210
|
* @public
|
|
2351
2211
|
*/
|
|
2352
2212
|
export interface ListTracesOutput {
|
|
2353
|
-
traces:
|
|
2213
|
+
traces: TraceSession[];
|
|
2354
2214
|
}
|
|
2355
2215
|
/**
|
|
2356
2216
|
* @public
|
|
@@ -2362,7 +2222,7 @@ export interface ListVoiceBotsInput {
|
|
|
2362
2222
|
* @public
|
|
2363
2223
|
*/
|
|
2364
2224
|
export interface ListVoiceBotsOutput {
|
|
2365
|
-
bots:
|
|
2225
|
+
bots: VoiceBot[];
|
|
2366
2226
|
}
|
|
2367
2227
|
/**
|
|
2368
2228
|
* @public
|
|
@@ -2381,7 +2241,7 @@ export interface VoiceBotInfo {
|
|
|
2381
2241
|
* @public
|
|
2382
2242
|
*/
|
|
2383
2243
|
export interface ListVoiceBotsNamesOutput {
|
|
2384
|
-
bots:
|
|
2244
|
+
bots: VoiceBotInfo[];
|
|
2385
2245
|
}
|
|
2386
2246
|
/**
|
|
2387
2247
|
* @public
|
|
@@ -2395,18 +2255,6 @@ export interface SendHangupInput {
|
|
|
2395
2255
|
*/
|
|
2396
2256
|
export interface SendHangupOutput {
|
|
2397
2257
|
}
|
|
2398
|
-
/**
|
|
2399
|
-
* @public
|
|
2400
|
-
*/
|
|
2401
|
-
export declare class VoiceSessionNotFoundException extends __BaseException {
|
|
2402
|
-
readonly name: "VoiceSessionNotFoundException";
|
|
2403
|
-
readonly $fault: "client";
|
|
2404
|
-
type?: string | undefined;
|
|
2405
|
-
/**
|
|
2406
|
-
* @internal
|
|
2407
|
-
*/
|
|
2408
|
-
constructor(opts: __ExceptionOptionType<VoiceSessionNotFoundException, __BaseException>);
|
|
2409
|
-
}
|
|
2410
2258
|
/**
|
|
2411
2259
|
* @public
|
|
2412
2260
|
*/
|
|
@@ -2485,7 +2333,7 @@ export interface UpdateVoiceBotInput {
|
|
|
2485
2333
|
* @public
|
|
2486
2334
|
*/
|
|
2487
2335
|
endpoint: VoiceBotEndpoint;
|
|
2488
|
-
capabilities?:
|
|
2336
|
+
capabilities?: VoiceBotCapability[] | undefined;
|
|
2489
2337
|
/**
|
|
2490
2338
|
* PBX group ID for ACL-based visibility in Sales Intelligence.
|
|
2491
2339
|
* @public
|