@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { UpdateVoiceBotInput, UpdateVoiceBotOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -22,9 +22,11 @@ export interface UpdateVoiceBotCommandInput extends UpdateVoiceBotInput {
|
|
|
22
22
|
export interface UpdateVoiceBotCommandOutput extends UpdateVoiceBotOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const UpdateVoiceBotCommand_base: {
|
|
25
|
-
new (input: UpdateVoiceBotCommandInput): import("@smithy/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Updates the configuration of an existing voice bot with new settings.
|
|
@@ -33,6 +35,8 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
33
35
|
* ```javascript
|
|
34
36
|
* import { VoiceBotsClient, UpdateVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
35
37
|
* // const { VoiceBotsClient, UpdateVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
38
|
+
* // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
|
|
39
|
+
* const config = {}; // type is VoiceBotsClientConfig
|
|
36
40
|
* const client = new VoiceBotsClient(config);
|
|
37
41
|
* const input = { // UpdateVoiceBotInput
|
|
38
42
|
* name: "STRING_VALUE", // required
|
|
@@ -89,6 +93,22 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
89
93
|
* type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
90
94
|
* name: "STRING_VALUE", // required
|
|
91
95
|
* parameters: "DOCUMENT_VALUE",
|
|
96
|
+
* annotations: [ // VoiceBotToolAnnotationsList
|
|
97
|
+
* { // VoiceBotToolAnnotation Union: only one key present
|
|
98
|
+
* tag: { // VoiceBotToolTagAnnotation
|
|
99
|
+
* value: "STRING_VALUE",
|
|
100
|
+
* applyOnSuccess: true || false,
|
|
101
|
+
* applyOnFailure: true || false,
|
|
102
|
+
* },
|
|
103
|
+
* comment: { // VoiceBotToolCommentAnnotation
|
|
104
|
+
* value: "STRING_VALUE",
|
|
105
|
+
* applyOnSuccess: true || false,
|
|
106
|
+
* applyOnFailure: true || false,
|
|
107
|
+
* },
|
|
108
|
+
* variables: {},
|
|
109
|
+
* result: {},
|
|
110
|
+
* },
|
|
111
|
+
* ],
|
|
92
112
|
* },
|
|
93
113
|
* ],
|
|
94
114
|
* tools: [ // VoiceBotToolsList
|
|
@@ -130,6 +150,22 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
130
150
|
* },
|
|
131
151
|
* },
|
|
132
152
|
* },
|
|
153
|
+
* annotations: [
|
|
154
|
+
* {// Union: only one key present
|
|
155
|
+
* tag: {
|
|
156
|
+
* value: "STRING_VALUE",
|
|
157
|
+
* applyOnSuccess: true || false,
|
|
158
|
+
* applyOnFailure: true || false,
|
|
159
|
+
* },
|
|
160
|
+
* comment: {
|
|
161
|
+
* value: "STRING_VALUE",
|
|
162
|
+
* applyOnSuccess: true || false,
|
|
163
|
+
* applyOnFailure: true || false,
|
|
164
|
+
* },
|
|
165
|
+
* variables: {},
|
|
166
|
+
* result: {},
|
|
167
|
+
* },
|
|
168
|
+
* ],
|
|
133
169
|
* },
|
|
134
170
|
* ],
|
|
135
171
|
* capabilities: [ // VoiceBotCapabilitiesList
|
|
@@ -155,10 +191,42 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
155
191
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
156
192
|
* instructions: "STRING_VALUE",
|
|
157
193
|
* },
|
|
194
|
+
* annotations: [
|
|
195
|
+
* {// Union: only one key present
|
|
196
|
+
* tag: {
|
|
197
|
+
* value: "STRING_VALUE",
|
|
198
|
+
* applyOnSuccess: true || false,
|
|
199
|
+
* applyOnFailure: true || false,
|
|
200
|
+
* },
|
|
201
|
+
* comment: {
|
|
202
|
+
* value: "STRING_VALUE",
|
|
203
|
+
* applyOnSuccess: true || false,
|
|
204
|
+
* applyOnFailure: true || false,
|
|
205
|
+
* },
|
|
206
|
+
* variables: {},
|
|
207
|
+
* result: {},
|
|
208
|
+
* },
|
|
209
|
+
* ],
|
|
158
210
|
* },
|
|
159
211
|
* kb: { // VoiceBotKnowledgeBase
|
|
160
212
|
* knowledgeBaseId: "STRING_VALUE",
|
|
161
213
|
* instructions: "STRING_VALUE",
|
|
214
|
+
* annotations: [
|
|
215
|
+
* {// Union: only one key present
|
|
216
|
+
* tag: {
|
|
217
|
+
* value: "STRING_VALUE",
|
|
218
|
+
* applyOnSuccess: true || false,
|
|
219
|
+
* applyOnFailure: true || false,
|
|
220
|
+
* },
|
|
221
|
+
* comment: {
|
|
222
|
+
* value: "STRING_VALUE",
|
|
223
|
+
* applyOnSuccess: true || false,
|
|
224
|
+
* applyOnFailure: true || false,
|
|
225
|
+
* },
|
|
226
|
+
* variables: {},
|
|
227
|
+
* result: {},
|
|
228
|
+
* },
|
|
229
|
+
* ],
|
|
162
230
|
* },
|
|
163
231
|
* },
|
|
164
232
|
* ],
|
|
@@ -211,10 +279,12 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
211
279
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
212
280
|
* instructions: "STRING_VALUE",
|
|
213
281
|
* },
|
|
282
|
+
* annotations: "<VoiceBotToolAnnotationsList>",
|
|
214
283
|
* },
|
|
215
284
|
* kb: {
|
|
216
285
|
* knowledgeBaseId: "STRING_VALUE",
|
|
217
286
|
* instructions: "STRING_VALUE",
|
|
287
|
+
* annotations: "<VoiceBotToolAnnotationsList>",
|
|
218
288
|
* },
|
|
219
289
|
* },
|
|
220
290
|
* ],
|
|
@@ -280,6 +350,22 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
280
350
|
* // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
|
|
281
351
|
* // name: "STRING_VALUE", // required
|
|
282
352
|
* // parameters: "DOCUMENT_VALUE",
|
|
353
|
+
* // annotations: [ // VoiceBotToolAnnotationsList
|
|
354
|
+
* // { // VoiceBotToolAnnotation Union: only one key present
|
|
355
|
+
* // tag: { // VoiceBotToolTagAnnotation
|
|
356
|
+
* // value: "STRING_VALUE",
|
|
357
|
+
* // applyOnSuccess: true || false,
|
|
358
|
+
* // applyOnFailure: true || false,
|
|
359
|
+
* // },
|
|
360
|
+
* // comment: { // VoiceBotToolCommentAnnotation
|
|
361
|
+
* // value: "STRING_VALUE",
|
|
362
|
+
* // applyOnSuccess: true || false,
|
|
363
|
+
* // applyOnFailure: true || false,
|
|
364
|
+
* // },
|
|
365
|
+
* // variables: {},
|
|
366
|
+
* // result: {},
|
|
367
|
+
* // },
|
|
368
|
+
* // ],
|
|
283
369
|
* // },
|
|
284
370
|
* // ],
|
|
285
371
|
* // tools: [ // VoiceBotToolsList
|
|
@@ -321,6 +407,22 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
321
407
|
* // },
|
|
322
408
|
* // },
|
|
323
409
|
* // },
|
|
410
|
+
* // annotations: [
|
|
411
|
+
* // {// Union: only one key present
|
|
412
|
+
* // tag: {
|
|
413
|
+
* // value: "STRING_VALUE",
|
|
414
|
+
* // applyOnSuccess: true || false,
|
|
415
|
+
* // applyOnFailure: true || false,
|
|
416
|
+
* // },
|
|
417
|
+
* // comment: {
|
|
418
|
+
* // value: "STRING_VALUE",
|
|
419
|
+
* // applyOnSuccess: true || false,
|
|
420
|
+
* // applyOnFailure: true || false,
|
|
421
|
+
* // },
|
|
422
|
+
* // variables: {},
|
|
423
|
+
* // result: {},
|
|
424
|
+
* // },
|
|
425
|
+
* // ],
|
|
324
426
|
* // },
|
|
325
427
|
* // ],
|
|
326
428
|
* // capabilities: [ // VoiceBotCapabilitiesList
|
|
@@ -346,10 +448,42 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
346
448
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
347
449
|
* // instructions: "STRING_VALUE",
|
|
348
450
|
* // },
|
|
451
|
+
* // annotations: [
|
|
452
|
+
* // {// Union: only one key present
|
|
453
|
+
* // tag: {
|
|
454
|
+
* // value: "STRING_VALUE",
|
|
455
|
+
* // applyOnSuccess: true || false,
|
|
456
|
+
* // applyOnFailure: true || false,
|
|
457
|
+
* // },
|
|
458
|
+
* // comment: {
|
|
459
|
+
* // value: "STRING_VALUE",
|
|
460
|
+
* // applyOnSuccess: true || false,
|
|
461
|
+
* // applyOnFailure: true || false,
|
|
462
|
+
* // },
|
|
463
|
+
* // variables: {},
|
|
464
|
+
* // result: {},
|
|
465
|
+
* // },
|
|
466
|
+
* // ],
|
|
349
467
|
* // },
|
|
350
468
|
* // kb: { // VoiceBotKnowledgeBase
|
|
351
469
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
352
470
|
* // instructions: "STRING_VALUE",
|
|
471
|
+
* // annotations: [
|
|
472
|
+
* // {// Union: only one key present
|
|
473
|
+
* // tag: {
|
|
474
|
+
* // value: "STRING_VALUE",
|
|
475
|
+
* // applyOnSuccess: true || false,
|
|
476
|
+
* // applyOnFailure: true || false,
|
|
477
|
+
* // },
|
|
478
|
+
* // comment: {
|
|
479
|
+
* // value: "STRING_VALUE",
|
|
480
|
+
* // applyOnSuccess: true || false,
|
|
481
|
+
* // applyOnFailure: true || false,
|
|
482
|
+
* // },
|
|
483
|
+
* // variables: {},
|
|
484
|
+
* // result: {},
|
|
485
|
+
* // },
|
|
486
|
+
* // ],
|
|
353
487
|
* // },
|
|
354
488
|
* // },
|
|
355
489
|
* // ],
|
|
@@ -402,10 +536,12 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
402
536
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
403
537
|
* // instructions: "STRING_VALUE",
|
|
404
538
|
* // },
|
|
539
|
+
* // annotations: "<VoiceBotToolAnnotationsList>",
|
|
405
540
|
* // },
|
|
406
541
|
* // kb: {
|
|
407
542
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
408
543
|
* // instructions: "STRING_VALUE",
|
|
544
|
+
* // annotations: "<VoiceBotToolAnnotationsList>",
|
|
409
545
|
* // },
|
|
410
546
|
* // },
|
|
411
547
|
* // ],
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
clientContextParams?: {
|
|
7
|
+
env?: string | undefined | Provider<string | undefined>;
|
|
8
|
+
};
|
|
9
|
+
env?: string | undefined | Provider<string | undefined>;
|
|
10
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
16
|
+
defaultSigningName: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const commonParams: {
|
|
26
|
+
readonly env: {
|
|
27
|
+
readonly type: "clientContextParams";
|
|
28
|
+
readonly name: "env";
|
|
29
|
+
};
|
|
30
|
+
readonly endpoint: {
|
|
31
|
+
readonly type: "builtInParams";
|
|
32
|
+
readonly name: "endpoint";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
39
|
+
env?: string | undefined;
|
|
40
|
+
endpoint?: string | undefined;
|
|
41
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpHandlerExtensionConfiguration } from "@smithy/
|
|
2
|
-
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
2
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface VoiceBotsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
export interface VoiceBotsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
7
8
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from "./VoiceBotsClient";
|
|
2
2
|
export * from "./VoiceBots";
|
|
3
|
+
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
3
4
|
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
5
|
export type { VoiceBotsExtensionConfiguration } from "./extensionConfiguration";
|
|
5
6
|
export * from "./commands";
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
7
11
|
export { VoiceBotsServiceException } from "./models/VoiceBotsServiceException";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
|
|
2
2
|
export type { __ServiceExceptionOptions };
|
|
3
3
|
export { __ServiceException };
|
|
4
4
|
/**
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AnnotationSourceType: {
|
|
6
|
+
readonly CHATBOT: "chatbot";
|
|
7
|
+
readonly SYSTEM: "system";
|
|
8
|
+
readonly USER: "user";
|
|
9
|
+
readonly VOICEBOT: "voicebot";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type AnnotationSourceType = (typeof AnnotationSourceType)[keyof typeof AnnotationSourceType];
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
* @enum
|
|
18
|
+
*/
|
|
19
|
+
export declare const VoiceBotEventType: {
|
|
20
|
+
readonly AUDIO: "audio";
|
|
21
|
+
readonly COMPLETE: "complete";
|
|
22
|
+
readonly ENDED: "ended";
|
|
23
|
+
readonly INTERRUPTION: "interruption";
|
|
24
|
+
readonly PLAYBACK: "playback";
|
|
25
|
+
readonly REPLY: "reply";
|
|
26
|
+
readonly STARTED: "started";
|
|
27
|
+
readonly TRANSCRIPTION: "transcription";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type VoiceBotEventType = (typeof VoiceBotEventType)[keyof typeof VoiceBotEventType];
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
* @enum
|
|
36
|
+
*/
|
|
37
|
+
export declare const VoiceBotCapabilityToolPipelineType: {
|
|
38
|
+
readonly ASYNC_REQUEST: "async_request";
|
|
39
|
+
readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
|
|
40
|
+
readonly BLOCKING_REQUEST: "blocking_request";
|
|
41
|
+
readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export type VoiceBotCapabilityToolPipelineType = (typeof VoiceBotCapabilityToolPipelineType)[keyof typeof VoiceBotCapabilityToolPipelineType];
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* @enum
|
|
50
|
+
*/
|
|
51
|
+
export declare const VoiceBotEmbeddedToolType: {
|
|
52
|
+
readonly DELEGATE: "DELEGATE";
|
|
53
|
+
readonly HANGUP: "HANGUP";
|
|
54
|
+
readonly TRANSFER: "TRANSFER";
|
|
55
|
+
readonly WAIT: "WAIT";
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export type VoiceBotEmbeddedToolType = (typeof VoiceBotEmbeddedToolType)[keyof typeof VoiceBotEmbeddedToolType];
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* @enum
|
|
64
|
+
*/
|
|
65
|
+
export declare const VoiceBotFunctionIntegrationMethod: {
|
|
66
|
+
readonly DELETE: "delete";
|
|
67
|
+
readonly GET: "get";
|
|
68
|
+
readonly PATCH: "patch";
|
|
69
|
+
readonly POST: "post";
|
|
70
|
+
readonly PUT: "put";
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export type VoiceBotFunctionIntegrationMethod = (typeof VoiceBotFunctionIntegrationMethod)[keyof typeof VoiceBotFunctionIntegrationMethod];
|
|
76
|
+
/**
|
|
77
|
+
* @public
|
|
78
|
+
* @enum
|
|
79
|
+
*/
|
|
80
|
+
export declare const VoiceBotToolType: {
|
|
81
|
+
readonly FUNCTION: "function";
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export type VoiceBotToolType = (typeof VoiceBotToolType)[keyof typeof VoiceBotToolType];
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
* @enum
|
|
90
|
+
*/
|
|
91
|
+
export declare const VoiceBotCommandType: {
|
|
92
|
+
readonly HANGUP: "hangup";
|
|
93
|
+
readonly PLAY: "play";
|
|
94
|
+
readonly SAY: "say";
|
|
95
|
+
readonly STOP: "stop";
|
|
96
|
+
readonly TRANSFER: "transfer";
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export type VoiceBotCommandType = (typeof VoiceBotCommandType)[keyof typeof VoiceBotCommandType];
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
* @enum
|
|
105
|
+
*/
|
|
106
|
+
export declare const TraceActivityStatus: {
|
|
107
|
+
readonly CANCELLED: "cancelled";
|
|
108
|
+
readonly COMPLETE: "complete";
|
|
109
|
+
readonly ERROR: "error";
|
|
110
|
+
readonly PENDING: "pending";
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export type TraceActivityStatus = (typeof TraceActivityStatus)[keyof typeof TraceActivityStatus];
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
export declare const TraceSegmentStatus: {
|
|
121
|
+
readonly COMPLETE: "complete";
|
|
122
|
+
readonly ERROR: "error";
|
|
123
|
+
readonly PENDING: "pending";
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export type TraceSegmentStatus = (typeof TraceSegmentStatus)[keyof typeof TraceSegmentStatus];
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
* @enum
|
|
132
|
+
*/
|
|
133
|
+
export declare const TraceSessionStatus: {
|
|
134
|
+
readonly COMPLETE: "complete";
|
|
135
|
+
readonly COMPLETE_WITH_ERROR: "complete_with_error";
|
|
136
|
+
readonly PENDING: "pending";
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export type TraceSessionStatus = (typeof TraceSessionStatus)[keyof typeof TraceSessionStatus];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare class ForbiddenException extends __BaseException {
|
|
7
|
+
readonly name: "ForbiddenException";
|
|
8
|
+
readonly $fault: "client";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare class ValidationException extends __BaseException {
|
|
18
|
+
readonly name: "ValidationException";
|
|
19
|
+
readonly $fault: "client";
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare class VoiceBotNonUniqueNameException extends __BaseException {
|
|
29
|
+
readonly name: "VoiceBotNonUniqueNameException";
|
|
30
|
+
readonly $fault: "client";
|
|
31
|
+
type?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
constructor(opts: __ExceptionOptionType<VoiceBotNonUniqueNameException, __BaseException>);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export declare class VoiceBotNotFoundException extends __BaseException {
|
|
41
|
+
readonly name: "VoiceBotNotFoundException";
|
|
42
|
+
readonly $fault: "client";
|
|
43
|
+
type?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
constructor(opts: __ExceptionOptionType<VoiceBotNotFoundException, __BaseException>);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare class VoiceSessionNotFoundException extends __BaseException {
|
|
53
|
+
readonly name: "VoiceSessionNotFoundException";
|
|
54
|
+
readonly $fault: "client";
|
|
55
|
+
type?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
constructor(opts: __ExceptionOptionType<VoiceSessionNotFoundException, __BaseException>);
|
|
60
|
+
}
|