@wildix/wim-voicebots-client 1.0.27 → 1.1.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.
@@ -1,33 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotEventType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.TraceSessionStatus = exports.TraceSegmentStatus = exports.TraceSegmentResult = exports.TraceSegmentInput = exports.TraceGenericInputBlockContent = exports.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotNonUniqueNameException = exports.VoiceBotPipelineTerminateAction = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotEventType = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
5
- class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
6
- name = "ValidationException";
5
+ class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
6
+ name = "ForbiddenException";
7
7
  $fault = "client";
8
8
  constructor(opts) {
9
9
  super({
10
- name: "ValidationException",
10
+ name: "ForbiddenException",
11
11
  $fault: "client",
12
12
  ...opts
13
13
  });
14
- Object.setPrototypeOf(this, ValidationException.prototype);
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
15
15
  }
16
16
  }
17
- exports.ValidationException = ValidationException;
18
- class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
19
- name = "ForbiddenException";
17
+ exports.ForbiddenException = ForbiddenException;
18
+ class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
19
+ name = "ValidationException";
20
20
  $fault = "client";
21
21
  constructor(opts) {
22
22
  super({
23
- name: "ForbiddenException",
23
+ name: "ValidationException",
24
24
  $fault: "client",
25
25
  ...opts
26
26
  });
27
- Object.setPrototypeOf(this, ForbiddenException.prototype);
27
+ Object.setPrototypeOf(this, ValidationException.prototype);
28
28
  }
29
29
  }
30
- exports.ForbiddenException = ForbiddenException;
30
+ exports.ValidationException = ValidationException;
31
31
  exports.VoiceBotEventType = {
32
32
  AUDIO: "audio",
33
33
  COMPLETE: "complete",
@@ -94,6 +94,7 @@ const se_ListTracesCommand = async (input, context) => {
94
94
  b.bp("/v2/voicebots/traces");
95
95
  const query = (0, smithy_client_1.map)({
96
96
  [_c]: [, input[_c]],
97
+ [_s]: [, input[_s]],
97
98
  });
98
99
  let body;
99
100
  b.m("GET")
@@ -1011,3 +1012,4 @@ const deserializeMetadata = (output) => ({
1011
1012
  });
1012
1013
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
1013
1014
  const _c = "company";
1015
+ const _s = "search";
@@ -1,26 +1,26 @@
1
1
  import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
2
- export class ValidationException extends __BaseException {
3
- name = "ValidationException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
4
4
  $fault = "client";
5
5
  constructor(opts) {
6
6
  super({
7
- name: "ValidationException",
7
+ name: "ForbiddenException",
8
8
  $fault: "client",
9
9
  ...opts
10
10
  });
11
- Object.setPrototypeOf(this, ValidationException.prototype);
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
12
  }
13
13
  }
14
- export class ForbiddenException extends __BaseException {
15
- name = "ForbiddenException";
14
+ export class ValidationException extends __BaseException {
15
+ name = "ValidationException";
16
16
  $fault = "client";
17
17
  constructor(opts) {
18
18
  super({
19
- name: "ForbiddenException",
19
+ name: "ValidationException",
20
20
  $fault: "client",
21
21
  ...opts
22
22
  });
23
- Object.setPrototypeOf(this, ForbiddenException.prototype);
23
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
24
  }
25
25
  }
26
26
  export const VoiceBotEventType = {
@@ -86,6 +86,7 @@ export const se_ListTracesCommand = async (input, context) => {
86
86
  b.bp("/v2/voicebots/traces");
87
87
  const query = map({
88
88
  [_c]: [, input[_c]],
89
+ [_s]: [, input[_s]],
89
90
  });
90
91
  let body;
91
92
  b.m("GET")
@@ -980,3 +981,4 @@ const deserializeMetadata = (output) => ({
980
981
  });
981
982
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
982
983
  const _c = "company";
984
+ const _s = "search";
@@ -27,8 +27,7 @@ declare const CreateVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Creates a new voice bot with the specified configuration for the company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -294,6 +293,7 @@ declare const CreateVoiceBotCommand_base: {
294
293
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
295
294
  *
296
295
  *
296
+ * @public
297
297
  */
298
298
  export declare class CreateVoiceBotCommand extends CreateVoiceBotCommand_base {
299
299
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const DeleteVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Deletes an existing voice bot and all its associated data.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -59,6 +58,7 @@ declare const DeleteVoiceBotCommand_base: {
59
58
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
60
59
  *
61
60
  *
61
+ * @public
62
62
  */
63
63
  export declare class DeleteVoiceBotCommand extends DeleteVoiceBotCommand_base {
64
64
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const GetTraceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves detailed trace information for a specific voice bot session.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -356,6 +355,7 @@ declare const GetTraceCommand_base: {
356
355
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
357
356
  *
358
357
  *
358
+ * @public
359
359
  */
360
360
  export declare class GetTraceCommand extends GetTraceCommand_base {
361
361
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const GetVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves details of a specific voice bot by its unique identifier.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -181,6 +180,7 @@ declare const GetVoiceBotCommand_base: {
181
180
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
182
181
  *
183
182
  *
183
+ * @public
184
184
  */
185
185
  export declare class GetVoiceBotCommand extends GetVoiceBotCommand_base {
186
186
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListTracesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of voice bot trace sessions for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -37,6 +36,7 @@ declare const ListTracesCommand_base: {
37
36
  * const client = new VoiceBotsClient(config);
38
37
  * const input = { // ListTracesInput
39
38
  * company: "STRING_VALUE",
39
+ * search: "STRING_VALUE",
40
40
  * };
41
41
  * const command = new ListTracesCommand(input);
42
42
  * const response = await client.send(command);
@@ -76,6 +76,7 @@ declare const ListTracesCommand_base: {
76
76
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
77
77
  *
78
78
  *
79
+ * @public
79
80
  */
80
81
  export declare class ListTracesCommand extends ListTracesCommand_base {
81
82
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListVoiceBotsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of all voice bots for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -180,6 +179,7 @@ declare const ListVoiceBotsCommand_base: {
180
179
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
181
180
  *
182
181
  *
182
+ * @public
183
183
  */
184
184
  export declare class ListVoiceBotsCommand extends ListVoiceBotsCommand_base {
185
185
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const ListVoiceBotsNamesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Retrieves a list of voice bot names and basic information for the specified company.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -65,6 +64,7 @@ declare const ListVoiceBotsNamesCommand_base: {
65
64
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
66
65
  *
67
66
  *
67
+ * @public
68
68
  */
69
69
  export declare class ListVoiceBotsNamesCommand extends ListVoiceBotsNamesCommand_base {
70
70
  /** @internal type navigation helper, not in runtime. */
@@ -27,8 +27,7 @@ declare const UpdateVoiceBotCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Updates the configuration of an existing voice bot with new settings.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -297,6 +296,7 @@ declare const UpdateVoiceBotCommand_base: {
297
296
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
298
297
  *
299
298
  *
299
+ * @public
300
300
  */
301
301
  export declare class UpdateVoiceBotCommand extends UpdateVoiceBotCommand_base {
302
302
  /** @internal type navigation helper, not in runtime. */
@@ -4,24 +4,24 @@ import { DocumentType as __DocumentType } from "@smithy/types";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare class ValidationException extends __BaseException {
8
- readonly name: "ValidationException";
7
+ export declare class ForbiddenException extends __BaseException {
8
+ readonly name: "ForbiddenException";
9
9
  readonly $fault: "client";
10
10
  /**
11
11
  * @internal
12
12
  */
13
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
13
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
14
14
  }
15
15
  /**
16
16
  * @public
17
17
  */
18
- export declare class ForbiddenException extends __BaseException {
19
- readonly name: "ForbiddenException";
18
+ export declare class ValidationException extends __BaseException {
19
+ readonly name: "ValidationException";
20
20
  readonly $fault: "client";
21
21
  /**
22
22
  * @internal
23
23
  */
24
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
24
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
25
25
  }
26
26
  /**
27
27
  * @public
@@ -1785,6 +1785,11 @@ export interface GetVoiceBotOutput {
1785
1785
  */
1786
1786
  export interface ListTracesInput {
1787
1787
  company?: string | undefined;
1788
+ /**
1789
+ * Optional search query to filter traces by caller name, bot name, or session ID.
1790
+ * @public
1791
+ */
1792
+ search?: string | undefined;
1788
1793
  }
1789
1794
  /**
1790
1795
  * @public
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
16
  env?: "stage" | "stable" | "prod" | undefined;
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
- apiVersion: string;
19
18
  cacheMiddleware?: boolean | undefined;
19
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
20
+ protocolSettings?: {
21
+ [setting: string]: unknown;
22
+ defaultNamespace?: string | undefined;
23
+ } | undefined;
24
+ apiVersion: string;
20
25
  urlParser: import("@smithy/types").UrlParser;
21
26
  base64Decoder: import("@smithy/types").Decoder;
22
27
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
16
16
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
17
17
  env?: "stage" | "stable" | "prod" | undefined;
18
18
  token: import("@wildix/smithy-utils").TokenProvider;
19
- apiVersion: string;
20
19
  cacheMiddleware?: boolean | undefined;
20
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
21
+ protocolSettings?: {
22
+ [setting: string]: unknown;
23
+ defaultNamespace?: string | undefined;
24
+ } | undefined;
25
+ apiVersion: string;
21
26
  urlParser: import("@smithy/types").UrlParser;
22
27
  base64Decoder: import("@smithy/types").Decoder;
23
28
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
8
8
  env?: "stage" | "stable" | "prod" | undefined;
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
10
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
- apiVersion: string;
12
11
  cacheMiddleware?: boolean | undefined;
12
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
+ protocolSettings?: {
14
+ [setting: string]: unknown;
15
+ defaultNamespace?: string | undefined;
16
+ } | undefined;
17
+ apiVersion: string;
13
18
  urlParser: import("@smithy/types").UrlParser;
14
19
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
20
  streamCollector: import("@smithy/types").StreamCollector;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wim-voicebots-client",
3
3
  "description": "@wildix/wim-voicebots-client client",
4
- "version": "1.0.27",
4
+ "version": "1.1.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -80,4 +80,4 @@
80
80
  "react-native": {
81
81
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
82
82
  }
83
- }
83
+ }