@wildix/wim-voicebots-client 1.1.0 → 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.
- package/dist-cjs/models/models_0.js +11 -11
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +8 -8
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/ListTracesCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +11 -6
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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
|
|
6
|
-
name = "
|
|
5
|
+
class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
7
|
$fault = "client";
|
|
8
8
|
constructor(opts) {
|
|
9
9
|
super({
|
|
10
|
-
name: "
|
|
10
|
+
name: "ForbiddenException",
|
|
11
11
|
$fault: "client",
|
|
12
12
|
...opts
|
|
13
13
|
});
|
|
14
|
-
Object.setPrototypeOf(this,
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
18
|
-
class
|
|
19
|
-
name = "
|
|
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: "
|
|
23
|
+
name: "ValidationException",
|
|
24
24
|
$fault: "client",
|
|
25
25
|
...opts
|
|
26
26
|
});
|
|
27
|
-
Object.setPrototypeOf(this,
|
|
27
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
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
|
|
3
|
-
name = "
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
4
|
$fault = "client";
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
7
|
-
name: "
|
|
7
|
+
name: "ForbiddenException",
|
|
8
8
|
$fault: "client",
|
|
9
9
|
...opts
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
name = "
|
|
14
|
+
export class ValidationException extends __BaseException {
|
|
15
|
+
name = "ValidationException";
|
|
16
16
|
$fault = "client";
|
|
17
17
|
constructor(opts) {
|
|
18
18
|
super({
|
|
19
|
-
name: "
|
|
19
|
+
name: "ValidationException",
|
|
20
20
|
$fault: "client",
|
|
21
21
|
...opts
|
|
22
22
|
});
|
|
23
|
-
Object.setPrototypeOf(this,
|
|
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";
|
|
@@ -36,6 +36,7 @@ declare const ListTracesCommand_base: {
|
|
|
36
36
|
* const client = new VoiceBotsClient(config);
|
|
37
37
|
* const input = { // ListTracesInput
|
|
38
38
|
* company: "STRING_VALUE",
|
|
39
|
+
* search: "STRING_VALUE",
|
|
39
40
|
* };
|
|
40
41
|
* const command = new ListTracesCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -4,24 +4,24 @@ import { DocumentType as __DocumentType } from "@smithy/types";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
8
|
-
readonly name: "
|
|
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<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
19
|
-
readonly name: "
|
|
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<
|
|
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.1.
|
|
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
|
+
}
|