@wildix/wim-voicebots-client 1.0.22 → 1.0.24

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 +108 -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 +72 -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 +16 -0
  24. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +12 -0
  25. package/dist-types/commands/DescribeEventCommand.d.ts +74 -23
  26. package/dist-types/commands/GetTraceCommand.d.ts +33 -8
  27. package/dist-types/commands/GetVoiceBotCommand.d.ts +14 -0
  28. package/dist-types/commands/ListTracesCommand.d.ts +12 -0
  29. package/dist-types/commands/ListVoiceBotsCommand.d.ts +14 -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 +16 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/models/models_0.d.ts +221 -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 +38 -34
@@ -7,7 +7,9 @@ import { ListTracesCommandInput, ListTracesCommandOutput } from "../commands/Lis
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 { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
@@ -48,10 +50,18 @@ export declare const se_ListVoiceBotsNamesCommand: (input: ListVoiceBotsNamesCom
48
50
  * serializeAws_restJson1SendHangupCommand
49
51
  */
50
52
  export declare const se_SendHangupCommand: (input: SendHangupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
53
+ /**
54
+ * serializeAws_restJson1SendPlayCommand
55
+ */
56
+ export declare const se_SendPlayCommand: (input: SendPlayCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
51
57
  /**
52
58
  * serializeAws_restJson1SendSayCommand
53
59
  */
54
60
  export declare const se_SendSayCommand: (input: SendSayCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
61
+ /**
62
+ * serializeAws_restJson1SendStopCommand
63
+ */
64
+ export declare const se_SendStopCommand: (input: SendStopCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
55
65
  /**
56
66
  * serializeAws_restJson1SendTransferCommand
57
67
  */
@@ -96,10 +106,18 @@ export declare const de_ListVoiceBotsNamesCommand: (output: __HttpResponse, cont
96
106
  * deserializeAws_restJson1SendHangupCommand
97
107
  */
98
108
  export declare const de_SendHangupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendHangupCommandOutput>;
109
+ /**
110
+ * deserializeAws_restJson1SendPlayCommand
111
+ */
112
+ export declare const de_SendPlayCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendPlayCommandOutput>;
99
113
  /**
100
114
  * deserializeAws_restJson1SendSayCommand
101
115
  */
102
116
  export declare const de_SendSayCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendSayCommandOutput>;
117
+ /**
118
+ * deserializeAws_restJson1SendStopCommand
119
+ */
120
+ export declare const de_SendStopCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendStopCommandOutput>;
103
121
  /**
104
122
  * deserializeAws_restJson1SendTransferCommand
105
123
  */
@@ -7,13 +7,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
12
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
- env: "stage" | "stable" | "prod";
16
+ env?: "stage" | "stable" | "prod" | undefined;
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
18
  apiVersion: string;
19
19
  cacheMiddleware?: boolean | undefined;
@@ -26,5 +26,6 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
26
26
  logger: import("@smithy/types").Logger;
27
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
28
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
29
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
29
30
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
31
  };
@@ -7,13 +7,14 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
10
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
11
11
  maxAttempts: number | import("@smithy/types").Provider<number>;
12
12
  requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
13
13
  retryMode: string | import("@smithy/types").Provider<string>;
14
14
  sha256: import("@smithy/types").HashConstructor;
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
- env: "stage" | "stable" | "prod";
16
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
17
+ env?: "stage" | "stable" | "prod" | undefined;
17
18
  token: import("@wildix/smithy-utils").TokenProvider;
18
19
  apiVersion: string;
19
20
  cacheMiddleware?: boolean | undefined;
@@ -5,7 +5,7 @@ import { VoiceBotsClientConfig } from "./VoiceBotsClient";
5
5
  export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- env: "stage" | "stable" | "prod";
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
11
  apiVersion: string;
@@ -18,12 +18,13 @@ export declare const getRuntimeConfig: (config: VoiceBotsClientConfig) => {
18
18
  utf8Decoder: import("@smithy/types").Decoder;
19
19
  utf8Encoder: (input: string | Uint8Array) => string;
20
20
  disableHostPrefix: boolean;
21
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
21
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
22
22
  maxAttempts: number | import("@smithy/types").Provider<number>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  logger: import("@smithy/types").Logger;
25
25
  extensions: import("./runtimeExtensions").RuntimeExtension[];
26
26
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
27
27
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
28
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
28
29
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
29
30
  };
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.22",
4
+ "version": "1.0.24",
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",
@@ -18,46 +18,50 @@
18
18
  "sideEffects": false,
19
19
  "dependencies": {
20
20
  "tslib": "^2.6.2",
21
- "@aws-crypto/sha256-browser": "3.0.0",
22
- "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/middleware-user-agent": "3.587.0",
21
+ "@aws-crypto/sha256-browser": "5.2.0",
22
+ "@aws-crypto/sha256-js": "5.2.0",
23
+ "@aws-sdk/core": "3.775.0",
24
+ "@aws-sdk/middleware-host-header": "3.775.0",
25
+ "@aws-sdk/middleware-logger": "3.775.0",
26
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
27
+ "@aws-sdk/middleware-user-agent": "3.775.0",
24
28
  "@aws-sdk/types": "latest",
25
- "@aws-sdk/util-user-agent-browser": "3.577.0",
26
- "@aws-sdk/util-user-agent-node": "3.587.0",
27
- "@smithy/config-resolver": "^3.0.1",
28
- "@smithy/core": "^2.2.0",
29
- "@smithy/fetch-http-handler": "^3.0.1",
30
- "@smithy/hash-node": "^3.0.0",
31
- "@smithy/invalid-dependency": "^3.0.0",
32
- "@smithy/middleware-content-length": "^3.0.0",
33
- "@smithy/middleware-retry": "^3.0.3",
34
- "@smithy/middleware-serde": "^3.0.0",
35
- "@smithy/middleware-stack": "^3.0.0",
36
- "@smithy/node-config-provider": "^3.1.0",
37
- "@smithy/node-http-handler": "^3.0.0",
38
- "@smithy/protocol-http": "^4.0.0",
39
- "@smithy/smithy-client": "^3.1.1",
40
- "@smithy/types": "^3.0.0",
41
- "@smithy/url-parser": "^3.0.0",
42
- "@smithy/util-base64": "^3.0.0",
43
- "@smithy/util-body-length-browser": "^3.0.0",
44
- "@smithy/util-body-length-node": "^3.0.0",
45
- "@smithy/util-defaults-mode-browser": "^3.0.3",
46
- "@smithy/util-defaults-mode-node": "^3.0.3",
47
- "@smithy/util-retry": "^3.0.0",
48
- "@smithy/util-utf8": "^3.0.0",
49
- "@wildix/smithy-utils": "^1.0.2"
29
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
30
+ "@aws-sdk/util-user-agent-node": "3.775.0",
31
+ "@smithy/config-resolver": "^4.1.0",
32
+ "@smithy/core": "^3.2.0",
33
+ "@smithy/fetch-http-handler": "^5.0.2",
34
+ "@smithy/hash-node": "^4.0.2",
35
+ "@smithy/invalid-dependency": "^4.0.2",
36
+ "@smithy/middleware-content-length": "^4.0.2",
37
+ "@smithy/middleware-retry": "^4.1.0",
38
+ "@smithy/middleware-serde": "^4.0.3",
39
+ "@smithy/middleware-stack": "^4.0.2",
40
+ "@smithy/node-config-provider": "^4.0.2",
41
+ "@smithy/node-http-handler": "^4.0.4",
42
+ "@smithy/protocol-http": "^5.1.0",
43
+ "@smithy/smithy-client": "^4.2.0",
44
+ "@smithy/types": "^4.2.0",
45
+ "@smithy/url-parser": "^4.0.2",
46
+ "@smithy/util-base64": "^4.0.0",
47
+ "@smithy/util-body-length-browser": "^4.0.0",
48
+ "@smithy/util-body-length-node": "^4.0.0",
49
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
50
+ "@smithy/util-defaults-mode-node": "^4.0.8",
51
+ "@smithy/util-retry": "^4.0.2",
52
+ "@smithy/util-utf8": "^4.0.0",
53
+ "@wildix/smithy-utils": "^1.0.3"
50
54
  },
51
55
  "devDependencies": {
52
- "@tsconfig/node16": "16.1.3",
56
+ "@tsconfig/node18": "18.2.4",
53
57
  "concurrently": "7.0.0",
54
58
  "downlevel-dts": "0.10.1",
55
59
  "rimraf": "^3.0.0",
56
- "typescript": "~4.9.5",
57
- "@types/node": "^16.18.96"
60
+ "typescript": "~5.2.2",
61
+ "@types/node": "^18.19.69"
58
62
  },
59
63
  "engines": {
60
- "node": ">=16.0.0"
64
+ "node": ">=18.0.0"
61
65
  },
62
66
  "typesVersions": {
63
67
  "<4.0": {
@@ -76,4 +80,4 @@
76
80
  "react-native": {
77
81
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
82
  }
79
- }
83
+ }