@wildix/wim-voicebots-client 1.0.21 → 1.0.23

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.
Files changed (43) hide show
  1. package/dist-cjs/VoiceBots.js +4 -0
  2. package/dist-cjs/VoiceBotsClient.js +4 -5
  3. package/dist-cjs/commands/SendPlayCommand.js +21 -0
  4. package/dist-cjs/commands/SendStopCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +28 -22
  7. package/dist-cjs/protocols/Aws_restJson1.js +104 -85
  8. package/dist-cjs/runtimeConfig.browser.js +1 -1
  9. package/dist-cjs/runtimeConfig.js +4 -3
  10. package/dist-cjs/runtimeExtensions.js +2 -10
  11. package/dist-es/VoiceBots.js +4 -0
  12. package/dist-es/VoiceBotsClient.js +4 -5
  13. package/dist-es/commands/SendPlayCommand.js +17 -0
  14. package/dist-es/commands/SendStopCommand.js +17 -0
  15. package/dist-es/commands/index.js +2 -0
  16. package/dist-es/models/models_0.js +16 -10
  17. package/dist-es/protocols/Aws_restJson1.js +68 -53
  18. package/dist-es/runtimeConfig.browser.js +2 -2
  19. package/dist-es/runtimeConfig.js +5 -4
  20. package/dist-es/runtimeExtensions.js +2 -10
  21. package/dist-types/VoiceBots.d.ts +14 -0
  22. package/dist-types/VoiceBotsClient.d.ts +5 -3
  23. package/dist-types/commands/CreateVoiceBotCommand.d.ts +12 -0
  24. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +12 -0
  25. package/dist-types/commands/DescribeEventCommand.d.ts +78 -22
  26. package/dist-types/commands/GetTraceCommand.d.ts +33 -8
  27. package/dist-types/commands/GetVoiceBotCommand.d.ts +12 -0
  28. package/dist-types/commands/ListTracesCommand.d.ts +12 -0
  29. package/dist-types/commands/ListVoiceBotsCommand.d.ts +12 -0
  30. package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +12 -0
  31. package/dist-types/commands/SendHangupCommand.d.ts +12 -0
  32. package/dist-types/commands/SendPlayCommand.d.ts +79 -0
  33. package/dist-types/commands/SendSayCommand.d.ts +16 -0
  34. package/dist-types/commands/SendStopCommand.d.ts +76 -0
  35. package/dist-types/commands/SendTransferCommand.d.ts +12 -0
  36. package/dist-types/commands/UpdateVoiceBotCommand.d.ts +12 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/models/models_0.d.ts +212 -109
  39. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  41. package/dist-types/runtimeConfig.d.ts +3 -2
  42. package/dist-types/runtimeConfig.native.d.ts +3 -2
  43. package/package.json +37 -33
@@ -1,29 +1,30 @@
1
1
  import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
2
2
  export class ValidationException extends __BaseException {
3
+ name = "ValidationException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "ValidationException",
6
8
  $fault: "client",
7
9
  ...opts
8
10
  });
9
- this.name = "ValidationException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, ValidationException.prototype);
12
12
  }
13
13
  }
14
14
  export class ForbiddenException extends __BaseException {
15
+ name = "ForbiddenException";
16
+ $fault = "client";
15
17
  constructor(opts) {
16
18
  super({
17
19
  name: "ForbiddenException",
18
20
  $fault: "client",
19
21
  ...opts
20
22
  });
21
- this.name = "ForbiddenException";
22
- this.$fault = "client";
23
23
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
25
  }
26
26
  export const VoiceBotEventType = {
27
+ AUDIO: "audio",
27
28
  COMPLETE: "complete",
28
29
  ENDED: "ended",
29
30
  INTERRUPTION: "interruption",
@@ -95,21 +96,24 @@ export var VoiceBotPipelineTerminateAction;
95
96
  };
96
97
  })(VoiceBotPipelineTerminateAction || (VoiceBotPipelineTerminateAction = {}));
97
98
  export class VoiceBotNonUniqueNameException extends __BaseException {
99
+ name = "VoiceBotNonUniqueNameException";
100
+ $fault = "client";
101
+ type;
98
102
  constructor(opts) {
99
103
  super({
100
104
  name: "VoiceBotNonUniqueNameException",
101
105
  $fault: "client",
102
106
  ...opts
103
107
  });
104
- this.name = "VoiceBotNonUniqueNameException";
105
- this.$fault = "client";
106
108
  Object.setPrototypeOf(this, VoiceBotNonUniqueNameException.prototype);
107
109
  this.type = opts.type;
108
110
  }
109
111
  }
110
112
  export const VoiceBotCommandType = {
111
113
  HANGUP: "hangup",
114
+ PLAY: "play",
112
115
  SAY: "say",
116
+ STOP: "stop",
113
117
  TRANSFER: "transfer",
114
118
  };
115
119
  export var TraceActivityResult;
@@ -243,27 +247,29 @@ export const TraceSessionStatus = {
243
247
  PENDING: "pending",
244
248
  };
245
249
  export class VoiceBotNotFoundException extends __BaseException {
250
+ name = "VoiceBotNotFoundException";
251
+ $fault = "client";
252
+ type;
246
253
  constructor(opts) {
247
254
  super({
248
255
  name: "VoiceBotNotFoundException",
249
256
  $fault: "client",
250
257
  ...opts
251
258
  });
252
- this.name = "VoiceBotNotFoundException";
253
- this.$fault = "client";
254
259
  Object.setPrototypeOf(this, VoiceBotNotFoundException.prototype);
255
260
  this.type = opts.type;
256
261
  }
257
262
  }
258
263
  export class VoiceSessionNotFoundException extends __BaseException {
264
+ name = "VoiceSessionNotFoundException";
265
+ $fault = "client";
266
+ type;
259
267
  constructor(opts) {
260
268
  super({
261
269
  name: "VoiceSessionNotFoundException",
262
270
  $fault: "client",
263
271
  ...opts
264
272
  });
265
- this.name = "VoiceSessionNotFoundException";
266
- this.$fault = "client";
267
273
  Object.setPrototypeOf(this, VoiceSessionNotFoundException.prototype);
268
274
  this.type = opts.type;
269
275
  }
@@ -1,7 +1,8 @@
1
1
  import { VoiceBotsServiceException as __BaseException } from "../models/VoiceBotsServiceException";
2
2
  import { ForbiddenException, ValidationException, VoiceBotEndpoint, VoiceBotFunctionIntegration, VoiceBotNonUniqueNameException, VoiceBotNotFoundException, VoiceSessionNotFoundException, } from "../models/models_0";
3
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
3
4
  import { requestBuilder as rb } from "@smithy/core";
4
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
6
  export const se_CreateVoiceBotCommand = async (input, context) => {
6
7
  const b = rb(input, context);
7
8
  const headers = {
@@ -41,12 +42,9 @@ export const se_DeleteVoiceBotCommand = async (input, context) => {
41
42
  };
42
43
  export const se_DescribeEventCommand = async (input, context) => {
43
44
  const b = rb(input, context);
44
- const headers = {
45
- 'content-type': 'application/json',
46
- };
45
+ const headers = {};
47
46
  b.bp("/v2/voicebots/describe");
48
47
  let body;
49
- body = "";
50
48
  b.m("POST")
51
49
  .h(headers)
52
50
  .b(body);
@@ -140,6 +138,24 @@ export const se_SendHangupCommand = async (input, context) => {
140
138
  .b(body);
141
139
  return b.build();
142
140
  };
141
+ export const se_SendPlayCommand = async (input, context) => {
142
+ const b = rb(input, context);
143
+ const headers = {
144
+ 'content-type': 'application/json',
145
+ };
146
+ b.bp("/v2/voicebots/sessions/{sessionId}/play");
147
+ b.p('sessionId', () => input.sessionId, '{sessionId}', false);
148
+ let body;
149
+ body = JSON.stringify(take(input, {
150
+ 'data': [],
151
+ 'replyId': [],
152
+ 'streamId': [],
153
+ }));
154
+ b.m("POST")
155
+ .h(headers)
156
+ .b(body);
157
+ return b.build();
158
+ };
143
159
  export const se_SendSayCommand = async (input, context) => {
144
160
  const b = rb(input, context);
145
161
  const headers = {
@@ -149,6 +165,7 @@ export const se_SendSayCommand = async (input, context) => {
149
165
  b.p('sessionId', () => input.sessionId, '{sessionId}', false);
150
166
  let body;
151
167
  body = JSON.stringify(take(input, {
168
+ 'audio': _ => _json(_),
152
169
  'interruptible': [],
153
170
  'replyId': [],
154
171
  'text': [],
@@ -158,6 +175,17 @@ export const se_SendSayCommand = async (input, context) => {
158
175
  .b(body);
159
176
  return b.build();
160
177
  };
178
+ export const se_SendStopCommand = async (input, context) => {
179
+ const b = rb(input, context);
180
+ const headers = {};
181
+ b.bp("/v2/voicebots/sessions/{sessionId}/stop");
182
+ b.p('sessionId', () => input.sessionId, '{sessionId}', false);
183
+ let body;
184
+ b.m("POST")
185
+ .h(headers)
186
+ .b(body);
187
+ return b.build();
188
+ };
161
189
  export const se_SendTransferCommand = async (input, context) => {
162
190
  const b = rb(input, context);
163
191
  const headers = {
@@ -231,11 +259,13 @@ export const de_DescribeEventCommand = async (output, context) => {
231
259
  });
232
260
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
233
261
  const doc = take(data, {
262
+ 'AudioWebhookEvent': _json,
234
263
  'CompleteWebhookEvent': _json,
235
264
  'CompleteWebsocketEvent': _json,
236
265
  'HangupWebsocketCommand': _json,
237
266
  'InterruptionWebhookEvent': _json,
238
267
  'InterruptionWebsocketEvent': _json,
268
+ 'PlayWebsocketCommand': _json,
239
269
  'PlaybackWebhookEvent': _json,
240
270
  'PlaybackWebsocketEvent': _json,
241
271
  'PubSubBroadcastWebsocketEvent': _ => de_PubSubBroadcastWebsocketEvent(_, context),
@@ -248,6 +278,7 @@ export const de_DescribeEventCommand = async (output, context) => {
248
278
  'SayWebsocketCommand': _json,
249
279
  'SessionEndedWebhookEvent': _json,
250
280
  'SessionStartedWebhookEvent': _json,
281
+ 'StopWebsocketCommand': _json,
251
282
  'TranscriptionWebhookEvent': _json,
252
283
  'TranscriptionWebsocketEvent': _json,
253
284
  'TransferWebsocketCommand': _json,
@@ -335,6 +366,16 @@ export const de_SendHangupCommand = async (output, context) => {
335
366
  await collectBody(output.body, context);
336
367
  return contents;
337
368
  };
369
+ export const de_SendPlayCommand = async (output, context) => {
370
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
371
+ return de_CommandError(output, context);
372
+ }
373
+ const contents = map({
374
+ $metadata: deserializeMetadata(output),
375
+ });
376
+ await collectBody(output.body, context);
377
+ return contents;
378
+ };
338
379
  export const de_SendSayCommand = async (output, context) => {
339
380
  if (output.statusCode !== 200 && output.statusCode >= 300) {
340
381
  return de_CommandError(output, context);
@@ -345,6 +386,16 @@ export const de_SendSayCommand = async (output, context) => {
345
386
  await collectBody(output.body, context);
346
387
  return contents;
347
388
  };
389
+ export const de_SendStopCommand = async (output, context) => {
390
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
391
+ return de_CommandError(output, context);
392
+ }
393
+ const contents = map({
394
+ $metadata: deserializeMetadata(output),
395
+ });
396
+ await collectBody(output.body, context);
397
+ return contents;
398
+ };
348
399
  export const de_SendTransferCommand = async (output, context) => {
349
400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
350
401
  return de_CommandError(output, context);
@@ -491,7 +542,7 @@ const se_VoiceBotEndpoint = (input, context) => {
491
542
  openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
492
543
  sqs: value => ({ "sqs": _json(value) }),
493
544
  webhook: value => ({ "webhook": _json(value) }),
494
- _: (name, value) => ({ name: value })
545
+ _: (name, value) => ({ [name]: value })
495
546
  });
496
547
  };
497
548
  const se_VoiceBotFunctionDefinition = (input, context) => {
@@ -505,7 +556,7 @@ const se_VoiceBotFunctionDefinition = (input, context) => {
505
556
  const se_VoiceBotFunctionIntegration = (input, context) => {
506
557
  return VoiceBotFunctionIntegration.visit(input, {
507
558
  webhook: value => ({ "webhook": se_VoiceBotFunctionIntegrationWebhook(value, context) }),
508
- _: (name, value) => ({ name: value })
559
+ _: (name, value) => ({ [name]: value })
509
560
  });
510
561
  };
511
562
  const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
@@ -590,6 +641,7 @@ const de_TraceActivity = (output, context) => {
590
641
  'result': (_) => _json(__expectUnion(_)),
591
642
  'start': __limitedParseDouble,
592
643
  'status': __expectString,
644
+ 'timings': (_) => de_TraceTimings(_, context),
593
645
  'trigger': (_) => de_TraceActivityTrigger(__expectUnion(_), context),
594
646
  'usage': _json,
595
647
  'version': __expectInt32,
@@ -792,6 +844,15 @@ const de_TraceSilenceTimeoutTaskTrigger = (output, context) => {
792
844
  'parameters': (_) => de_Document(_, context),
793
845
  });
794
846
  };
847
+ const de_TraceTimings = (output, context) => {
848
+ return Object.entries(output).reduce((acc, [key, value]) => {
849
+ if (value === null) {
850
+ return acc;
851
+ }
852
+ acc[key] = __limitedParseDouble(value);
853
+ return acc;
854
+ }, {});
855
+ };
795
856
  const de_VoiceBot = (output, context) => {
796
857
  return take(output, {
797
858
  'createdAt': __expectString,
@@ -910,50 +971,4 @@ const deserializeMetadata = (output) => ({
910
971
  cfId: output.headers["x-amz-cf-id"],
911
972
  });
912
973
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
913
- const isSerializableHeaderValue = (value) => value !== undefined &&
914
- value !== null &&
915
- value !== "" &&
916
- (!Object.getOwnPropertyNames(value).includes("length") ||
917
- value.length != 0) &&
918
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
919
974
  const _c = "company";
920
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
921
- if (encoded.length) {
922
- return JSON.parse(encoded);
923
- }
924
- return {};
925
- });
926
- const parseErrorBody = async (errorBody, context) => {
927
- const value = await parseBody(errorBody, context);
928
- value.message = value.message ?? value.Message;
929
- return value;
930
- };
931
- const loadRestJsonErrorCode = (output, data) => {
932
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
933
- const sanitizeErrorCode = (rawValue) => {
934
- let cleanValue = rawValue;
935
- if (typeof cleanValue === "number") {
936
- cleanValue = cleanValue.toString();
937
- }
938
- if (cleanValue.indexOf(",") >= 0) {
939
- cleanValue = cleanValue.split(",")[0];
940
- }
941
- if (cleanValue.indexOf(":") >= 0) {
942
- cleanValue = cleanValue.split(":")[0];
943
- }
944
- if (cleanValue.indexOf("#") >= 0) {
945
- cleanValue = cleanValue.split("#")[1];
946
- }
947
- return cleanValue;
948
- };
949
- const headerKey = findKey(output.headers, "x-amzn-errortype");
950
- if (headerKey !== undefined) {
951
- return sanitizeErrorCode(output.headers[headerKey]);
952
- }
953
- if (data.code !== undefined) {
954
- return sanitizeErrorCode(data.code);
955
- }
956
- if (data["__type"] !== undefined) {
957
- return sanitizeErrorCode(data["__type"]);
958
- }
959
- };
@@ -1,6 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
5
5
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
6
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
@@ -17,7 +17,7 @@ export const getRuntimeConfig = (config) => {
17
17
  runtime: "browser",
18
18
  defaultsMode,
19
19
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
21
21
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
22
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
23
23
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
2
+ import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider, } from "@aws-sdk/util-user-agent-node";
3
3
  import { Hash } from "@smithy/hash-node";
4
4
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
5
5
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
@@ -21,11 +21,12 @@ export const getRuntimeConfig = (config) => {
21
21
  runtime: "node",
22
22
  defaultsMode,
23
23
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
25
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
26
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
- retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
27
+ retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config),
28
28
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
29
29
  streamCollector: config?.streamCollector ?? streamCollector,
30
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, { profile: 'wildix' }),
30
31
  };
31
32
  };
@@ -1,15 +1,7 @@
1
1
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "@smithy/protocol-http";
2
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, } from "@smithy/smithy-client";
3
- const asPartial = (t) => t;
4
3
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
5
- const extensionConfiguration = {
6
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
8
- };
4
+ const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig));
9
5
  extensions.forEach(extension => extension.configure(extensionConfiguration));
10
- return {
11
- ...runtimeConfig,
12
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
14
- };
6
+ return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration));
15
7
  };
@@ -8,7 +8,9 @@ import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/List
8
8
  import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
9
9
  import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
10
10
  import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
11
+ import { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
11
12
  import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
13
+ import { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
12
14
  import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
13
15
  import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
14
16
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
@@ -71,12 +73,24 @@ export interface VoiceBots {
71
73
  sendHangup(args: SendHangupCommandInput, options?: __HttpHandlerOptions): Promise<SendHangupCommandOutput>;
72
74
  sendHangup(args: SendHangupCommandInput, cb: (err: any, data?: SendHangupCommandOutput) => void): void;
73
75
  sendHangup(args: SendHangupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendHangupCommandOutput) => void): void;
76
+ /**
77
+ * @see {@link SendPlayCommand}
78
+ */
79
+ sendPlay(args: SendPlayCommandInput, options?: __HttpHandlerOptions): Promise<SendPlayCommandOutput>;
80
+ sendPlay(args: SendPlayCommandInput, cb: (err: any, data?: SendPlayCommandOutput) => void): void;
81
+ sendPlay(args: SendPlayCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendPlayCommandOutput) => void): void;
74
82
  /**
75
83
  * @see {@link SendSayCommand}
76
84
  */
77
85
  sendSay(args: SendSayCommandInput, options?: __HttpHandlerOptions): Promise<SendSayCommandOutput>;
78
86
  sendSay(args: SendSayCommandInput, cb: (err: any, data?: SendSayCommandOutput) => void): void;
79
87
  sendSay(args: SendSayCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSayCommandOutput) => void): void;
88
+ /**
89
+ * @see {@link SendStopCommand}
90
+ */
91
+ sendStop(args: SendStopCommandInput, options?: __HttpHandlerOptions): Promise<SendStopCommandOutput>;
92
+ sendStop(args: SendStopCommandInput, cb: (err: any, data?: SendStopCommandOutput) => void): void;
93
+ sendStop(args: SendStopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendStopCommandOutput) => void): void;
80
94
  /**
81
95
  * @see {@link SendTransferCommand}
82
96
  */
@@ -7,7 +7,9 @@ import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/List
7
7
  import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
8
8
  import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
9
9
  import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
10
+ import { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
10
11
  import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
12
+ import { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
11
13
  import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
12
14
  import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
13
15
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -21,11 +23,11 @@ export { __Client };
21
23
  /**
22
24
  * @public
23
25
  */
24
- export type ServiceInputTypes = CreateVoiceBotCommandInput | DeleteVoiceBotCommandInput | DescribeEventCommandInput | GetTraceCommandInput | GetVoiceBotCommandInput | ListTracesCommandInput | ListVoiceBotsCommandInput | ListVoiceBotsNamesCommandInput | SendHangupCommandInput | SendSayCommandInput | SendTransferCommandInput | UpdateVoiceBotCommandInput;
26
+ export type ServiceInputTypes = CreateVoiceBotCommandInput | DeleteVoiceBotCommandInput | DescribeEventCommandInput | GetTraceCommandInput | GetVoiceBotCommandInput | ListTracesCommandInput | ListVoiceBotsCommandInput | ListVoiceBotsNamesCommandInput | SendHangupCommandInput | SendPlayCommandInput | SendSayCommandInput | SendStopCommandInput | SendTransferCommandInput | UpdateVoiceBotCommandInput;
25
27
  /**
26
28
  * @public
27
29
  */
28
- export type ServiceOutputTypes = CreateVoiceBotCommandOutput | DeleteVoiceBotCommandOutput | DescribeEventCommandOutput | GetTraceCommandOutput | GetVoiceBotCommandOutput | ListTracesCommandOutput | ListVoiceBotsCommandOutput | ListVoiceBotsNamesCommandOutput | SendHangupCommandOutput | SendSayCommandOutput | SendTransferCommandOutput | UpdateVoiceBotCommandOutput;
30
+ export type ServiceOutputTypes = CreateVoiceBotCommandOutput | DeleteVoiceBotCommandOutput | DescribeEventCommandOutput | GetTraceCommandOutput | GetVoiceBotCommandOutput | ListTracesCommandOutput | ListVoiceBotsCommandOutput | ListVoiceBotsNamesCommandOutput | SendHangupCommandOutput | SendPlayCommandOutput | SendSayCommandOutput | SendStopCommandOutput | SendTransferCommandOutput | UpdateVoiceBotCommandOutput;
29
31
  /**
30
32
  * @public
31
33
  */
@@ -123,7 +125,7 @@ export type VoiceBotsClientConfigType = Partial<__SmithyConfiguration<__HttpHand
123
125
  * The configuration interface of VoiceBotsClient class constructor that set the region, credentials and other options.
124
126
  */
125
127
  export interface VoiceBotsClientConfig extends VoiceBotsClientConfigType {
126
- env: 'stage' | 'stable' | 'prod';
128
+ env?: 'stage' | 'stable' | 'prod';
127
129
  token: TokenProvider;
128
130
  }
129
131
  /**
@@ -251,6 +251,18 @@ declare const CreateVoiceBotCommand_base: {
251
251
  * @throws {@link VoiceBotsServiceException}
252
252
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
253
253
  *
254
+ *
254
255
  */
255
256
  export declare class CreateVoiceBotCommand extends CreateVoiceBotCommand_base {
257
+ /** @internal type navigation helper, not in runtime. */
258
+ protected static __types: {
259
+ api: {
260
+ input: CreateVoiceBotInput;
261
+ output: CreateVoiceBotOutput;
262
+ };
263
+ sdk: {
264
+ input: CreateVoiceBotCommandInput;
265
+ output: CreateVoiceBotCommandOutput;
266
+ };
267
+ };
256
268
  }
@@ -58,6 +58,18 @@ declare const DeleteVoiceBotCommand_base: {
58
58
  * @throws {@link VoiceBotsServiceException}
59
59
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
60
60
  *
61
+ *
61
62
  */
62
63
  export declare class DeleteVoiceBotCommand extends DeleteVoiceBotCommand_base {
64
+ /** @internal type navigation helper, not in runtime. */
65
+ protected static __types: {
66
+ api: {
67
+ input: DeleteVoiceBotInput;
68
+ output: {};
69
+ };
70
+ sdk: {
71
+ input: DeleteVoiceBotCommandInput;
72
+ output: DeleteVoiceBotCommandOutput;
73
+ };
74
+ };
63
75
  }