@wildix/wim-voicebots-client 1.0.7 → 1.0.9

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.
@@ -38,6 +38,7 @@ exports.VoiceBotEventType = {
38
38
  TRANSCRIPTION: "transcription",
39
39
  };
40
40
  exports.VoiceBotEmbeddedToolType = {
41
+ DELEGATE: "DELEGATE",
41
42
  HANGUP: "HANGUP",
42
43
  TRANSFER: "TRANSFER",
43
44
  };
@@ -457,6 +457,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
457
457
  'async': [],
458
458
  'authorization': _ => se_Document(_, context),
459
459
  'headers': smithy_client_1._json,
460
+ 'parameters': _ => se_Document(_, context),
460
461
  'timeout': [],
461
462
  'url': [],
462
463
  });
@@ -563,6 +564,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
563
564
  'async': smithy_client_1.expectBoolean,
564
565
  'authorization': (_) => de_Document(_, context),
565
566
  'headers': smithy_client_1._json,
567
+ 'parameters': (_) => de_Document(_, context),
566
568
  'timeout': smithy_client_1.expectInt32,
567
569
  'url': smithy_client_1.expectString,
568
570
  });
@@ -33,6 +33,7 @@ export const VoiceBotEventType = {
33
33
  TRANSCRIPTION: "transcription",
34
34
  };
35
35
  export const VoiceBotEmbeddedToolType = {
36
+ DELEGATE: "DELEGATE",
36
37
  HANGUP: "HANGUP",
37
38
  TRANSFER: "TRANSFER",
38
39
  };
@@ -434,6 +434,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
434
434
  'async': [],
435
435
  'authorization': _ => se_Document(_, context),
436
436
  'headers': _json,
437
+ 'parameters': _ => se_Document(_, context),
437
438
  'timeout': [],
438
439
  'url': [],
439
440
  });
@@ -540,6 +541,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
540
541
  'async': __expectBoolean,
541
542
  'authorization': (_) => de_Document(_, context),
542
543
  'headers': _json,
544
+ 'parameters': (_) => de_Document(_, context),
543
545
  'timeout': __expectInt32,
544
546
  'url': __expectString,
545
547
  });
@@ -50,7 +50,7 @@ declare const CreateVoiceBotCommand_base: {
50
50
  * prompt: "STRING_VALUE", // required
51
51
  * embeddedTools: [ // VoiceBotEmbeddedToolsList
52
52
  * { // VoiceBotEmbeddedTool
53
- * type: "HANGUP" || "TRANSFER", // required
53
+ * type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
54
54
  * name: "STRING_VALUE", // required
55
55
  * parameters: "DOCUMENT_VALUE",
56
56
  * },
@@ -74,6 +74,7 @@ declare const CreateVoiceBotCommand_base: {
74
74
  * value: "STRING_VALUE", // required
75
75
  * },
76
76
  * ],
77
+ * parameters: "DOCUMENT_VALUE",
77
78
  * },
78
79
  * },
79
80
  * },
@@ -120,7 +121,7 @@ declare const CreateVoiceBotCommand_base: {
120
121
  * // prompt: "STRING_VALUE", // required
121
122
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
122
123
  * // { // VoiceBotEmbeddedTool
123
- * // type: "HANGUP" || "TRANSFER", // required
124
+ * // type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
124
125
  * // name: "STRING_VALUE", // required
125
126
  * // parameters: "DOCUMENT_VALUE",
126
127
  * // },
@@ -144,6 +145,7 @@ declare const CreateVoiceBotCommand_base: {
144
145
  * // value: "STRING_VALUE", // required
145
146
  * // },
146
147
  * // ],
148
+ * // parameters: "DOCUMENT_VALUE",
147
149
  * // },
148
150
  * // },
149
151
  * // },
@@ -27,8 +27,7 @@ declare const DescribeEventCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Utility method to describe available events for websocket and webhook events.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -208,6 +207,7 @@ declare const DescribeEventCommand_base: {
208
207
  * @throws {@link VoiceBotsServiceException}
209
208
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
210
209
  *
210
+ * @public
211
211
  */
212
212
  export declare class DescribeEventCommand extends DescribeEventCommand_base {
213
213
  }
@@ -57,7 +57,7 @@ declare const GetVoiceBotCommand_base: {
57
57
  * // prompt: "STRING_VALUE", // required
58
58
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
59
59
  * // { // VoiceBotEmbeddedTool
60
- * // type: "HANGUP" || "TRANSFER", // required
60
+ * // type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
61
61
  * // name: "STRING_VALUE", // required
62
62
  * // parameters: "DOCUMENT_VALUE",
63
63
  * // },
@@ -81,6 +81,7 @@ declare const GetVoiceBotCommand_base: {
81
81
  * // value: "STRING_VALUE", // required
82
82
  * // },
83
83
  * // ],
84
+ * // parameters: "DOCUMENT_VALUE",
84
85
  * // },
85
86
  * // },
86
87
  * // },
@@ -57,7 +57,7 @@ declare const ListVoiceBotsCommand_base: {
57
57
  * // prompt: "STRING_VALUE", // required
58
58
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
59
59
  * // { // VoiceBotEmbeddedTool
60
- * // type: "HANGUP" || "TRANSFER", // required
60
+ * // type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
61
61
  * // name: "STRING_VALUE", // required
62
62
  * // parameters: "DOCUMENT_VALUE",
63
63
  * // },
@@ -81,6 +81,7 @@ declare const ListVoiceBotsCommand_base: {
81
81
  * // value: "STRING_VALUE", // required
82
82
  * // },
83
83
  * // ],
84
+ * // parameters: "DOCUMENT_VALUE",
84
85
  * // },
85
86
  * // },
86
87
  * // },
@@ -27,8 +27,7 @@ declare const SendHangupCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Terminates the voice session and the call.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -60,6 +59,7 @@ declare const SendHangupCommand_base: {
60
59
  * @throws {@link VoiceBotsServiceException}
61
60
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
62
61
  *
62
+ * @public
63
63
  */
64
64
  export declare class SendHangupCommand extends SendHangupCommand_base {
65
65
  }
@@ -27,8 +27,7 @@ declare const SendSayCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Generates and plays the specified text through the audio stream of the voice session.
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -62,6 +61,7 @@ declare const SendSayCommand_base: {
62
61
  * @throws {@link VoiceBotsServiceException}
63
62
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
64
63
  *
64
+ * @public
65
65
  */
66
66
  export declare class SendSayCommand extends SendSayCommand_base {
67
67
  }
@@ -27,8 +27,7 @@ declare const SendTransferCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * @public
31
- *
30
+ * Transfers the call to the specified context and extension, and terminates the 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
@@ -61,6 +60,7 @@ declare const SendTransferCommand_base: {
61
60
  * @throws {@link VoiceBotsServiceException}
62
61
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
63
62
  *
63
+ * @public
64
64
  */
65
65
  export declare class SendTransferCommand extends SendTransferCommand_base {
66
66
  }
@@ -50,7 +50,7 @@ declare const UpdateVoiceBotCommand_base: {
50
50
  * prompt: "STRING_VALUE", // required
51
51
  * embeddedTools: [ // VoiceBotEmbeddedToolsList
52
52
  * { // VoiceBotEmbeddedTool
53
- * type: "HANGUP" || "TRANSFER", // required
53
+ * type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
54
54
  * name: "STRING_VALUE", // required
55
55
  * parameters: "DOCUMENT_VALUE",
56
56
  * },
@@ -74,6 +74,7 @@ declare const UpdateVoiceBotCommand_base: {
74
74
  * value: "STRING_VALUE", // required
75
75
  * },
76
76
  * ],
77
+ * parameters: "DOCUMENT_VALUE",
77
78
  * },
78
79
  * },
79
80
  * },
@@ -121,7 +122,7 @@ declare const UpdateVoiceBotCommand_base: {
121
122
  * // prompt: "STRING_VALUE", // required
122
123
  * // embeddedTools: [ // VoiceBotEmbeddedToolsList
123
124
  * // { // VoiceBotEmbeddedTool
124
- * // type: "HANGUP" || "TRANSFER", // required
125
+ * // type: "HANGUP" || "TRANSFER" || "DELEGATE", // required
125
126
  * // name: "STRING_VALUE", // required
126
127
  * // parameters: "DOCUMENT_VALUE",
127
128
  * // },
@@ -145,6 +146,7 @@ declare const UpdateVoiceBotCommand_base: {
145
146
  * // value: "STRING_VALUE", // required
146
147
  * // },
147
148
  * // ],
149
+ * // parameters: "DOCUMENT_VALUE",
148
150
  * // },
149
151
  * // },
150
152
  * // },
@@ -94,6 +94,7 @@ export interface BotDialogflowCxEndpoint {
94
94
  * @enum
95
95
  */
96
96
  export declare const VoiceBotEmbeddedToolType: {
97
+ readonly DELEGATE: "DELEGATE";
97
98
  readonly HANGUP: "HANGUP";
98
99
  readonly TRANSFER: "TRANSFER";
99
100
  };
@@ -129,6 +130,7 @@ export interface VoiceBotFunctionIntegrationWebhook {
129
130
  timeout?: number;
130
131
  authorization?: __DocumentType;
131
132
  headers?: (VoiceBotFunctionIntegrationWebhookHeader)[];
133
+ parameters?: __DocumentType;
132
134
  }
133
135
  /**
134
136
  * @public
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.7",
4
+ "version": "1.0.9",
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",