@wildix/wim-voicebots-client 1.0.16 → 1.0.17

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,6 +1,6 @@
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.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = 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.TraceSegmentCompletionMessageItem = exports.TraceSegmentCompletionMessage = exports.TraceToolCall = exports.TraceActivityTrigger = exports.TraceActivityStatus = exports.TraceActivityResult = exports.VoiceBotCommandType = exports.VoiceBotEndpoint = exports.VoiceBotToolType = exports.VoiceBotFunctionIntegration = exports.VoiceBotFunctionIntegrationMethod = exports.VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotEmbeddedToolType = exports.VoiceBotEventType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
5
5
  class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
6
6
  constructor(opts) {
@@ -55,6 +55,13 @@ var VoiceBotFunctionIntegrationWebhookAuthorization;
55
55
  return visitor._(value.$unknown[0], value.$unknown[1]);
56
56
  };
57
57
  })(VoiceBotFunctionIntegrationWebhookAuthorization = exports.VoiceBotFunctionIntegrationWebhookAuthorization || (exports.VoiceBotFunctionIntegrationWebhookAuthorization = {}));
58
+ exports.VoiceBotFunctionIntegrationMethod = {
59
+ DELETE: "delete",
60
+ GET: "get",
61
+ PATCH: "patch",
62
+ POST: "post",
63
+ PUT: "put",
64
+ };
58
65
  var VoiceBotFunctionIntegration;
59
66
  (function (VoiceBotFunctionIntegration) {
60
67
  VoiceBotFunctionIntegration.visit = (value, visitor) => {
@@ -523,6 +523,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
523
523
  'async': [],
524
524
  'authorization': smithy_client_1._json,
525
525
  'headers': smithy_client_1._json,
526
+ 'method': [],
526
527
  'parameters': _ => se_Document(_, context),
527
528
  'url': [],
528
529
  });
@@ -837,6 +838,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
837
838
  'async': smithy_client_1.expectBoolean,
838
839
  'authorization': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
839
840
  'headers': smithy_client_1._json,
841
+ 'method': smithy_client_1.expectString,
840
842
  'parameters': (_) => de_Document(_, context),
841
843
  'url': smithy_client_1.expectString,
842
844
  });
@@ -50,6 +50,13 @@ export var VoiceBotFunctionIntegrationWebhookAuthorization;
50
50
  return visitor._(value.$unknown[0], value.$unknown[1]);
51
51
  };
52
52
  })(VoiceBotFunctionIntegrationWebhookAuthorization || (VoiceBotFunctionIntegrationWebhookAuthorization = {}));
53
+ export const VoiceBotFunctionIntegrationMethod = {
54
+ DELETE: "delete",
55
+ GET: "get",
56
+ PATCH: "patch",
57
+ POST: "post",
58
+ PUT: "put",
59
+ };
53
60
  export var VoiceBotFunctionIntegration;
54
61
  (function (VoiceBotFunctionIntegration) {
55
62
  VoiceBotFunctionIntegration.visit = (value, visitor) => {
@@ -496,6 +496,7 @@ const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
496
496
  'async': [],
497
497
  'authorization': _json,
498
498
  'headers': _json,
499
+ 'method': [],
499
500
  'parameters': _ => se_Document(_, context),
500
501
  'url': [],
501
502
  });
@@ -810,6 +811,7 @@ const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
810
811
  'async': __expectBoolean,
811
812
  'authorization': (_) => _json(__expectUnion(_)),
812
813
  'headers': _json,
814
+ 'method': __expectString,
813
815
  'parameters': (_) => de_Document(_, context),
814
816
  'url': __expectString,
815
817
  });
@@ -65,6 +65,7 @@ declare const CreateVoiceBotCommand_base: {
65
65
  * integration: { // VoiceBotFunctionIntegration Union: only one key present
66
66
  * webhook: { // VoiceBotFunctionIntegrationWebhook
67
67
  * url: "STRING_VALUE", // required
68
+ * method: "get" || "post" || "put" || "delete" || "patch",
68
69
  * async: true || false,
69
70
  * authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
70
71
  * bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -149,6 +150,7 @@ declare const CreateVoiceBotCommand_base: {
149
150
  * // integration: { // VoiceBotFunctionIntegration Union: only one key present
150
151
  * // webhook: { // VoiceBotFunctionIntegrationWebhook
151
152
  * // url: "STRING_VALUE", // required
153
+ * // method: "get" || "post" || "put" || "delete" || "patch",
152
154
  * // async: true || false,
153
155
  * // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
154
156
  * // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -72,6 +72,7 @@ declare const GetVoiceBotCommand_base: {
72
72
  * // integration: { // VoiceBotFunctionIntegration Union: only one key present
73
73
  * // webhook: { // VoiceBotFunctionIntegrationWebhook
74
74
  * // url: "STRING_VALUE", // required
75
+ * // method: "get" || "post" || "put" || "delete" || "patch",
75
76
  * // async: true || false,
76
77
  * // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
77
78
  * // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -72,6 +72,7 @@ declare const ListVoiceBotsCommand_base: {
72
72
  * // integration: { // VoiceBotFunctionIntegration Union: only one key present
73
73
  * // webhook: { // VoiceBotFunctionIntegrationWebhook
74
74
  * // url: "STRING_VALUE", // required
75
+ * // method: "get" || "post" || "put" || "delete" || "patch",
75
76
  * // async: true || false,
76
77
  * // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
77
78
  * // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -65,6 +65,7 @@ declare const UpdateVoiceBotCommand_base: {
65
65
  * integration: { // VoiceBotFunctionIntegration Union: only one key present
66
66
  * webhook: { // VoiceBotFunctionIntegrationWebhook
67
67
  * url: "STRING_VALUE", // required
68
+ * method: "get" || "post" || "put" || "delete" || "patch",
68
69
  * async: true || false,
69
70
  * authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
70
71
  * bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -150,6 +151,7 @@ declare const UpdateVoiceBotCommand_base: {
150
151
  * // integration: { // VoiceBotFunctionIntegration Union: only one key present
151
152
  * // webhook: { // VoiceBotFunctionIntegrationWebhook
152
153
  * // url: "STRING_VALUE", // required
154
+ * // method: "get" || "post" || "put" || "delete" || "patch",
153
155
  * // async: true || false,
154
156
  * // authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
155
157
  * // bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
@@ -187,11 +187,27 @@ export interface VoiceBotFunctionIntegrationWebhookHeader {
187
187
  key: string;
188
188
  value: string;
189
189
  }
190
+ /**
191
+ * @public
192
+ * @enum
193
+ */
194
+ export declare const VoiceBotFunctionIntegrationMethod: {
195
+ readonly DELETE: "delete";
196
+ readonly GET: "get";
197
+ readonly PATCH: "patch";
198
+ readonly POST: "post";
199
+ readonly PUT: "put";
200
+ };
201
+ /**
202
+ * @public
203
+ */
204
+ export type VoiceBotFunctionIntegrationMethod = typeof VoiceBotFunctionIntegrationMethod[keyof typeof VoiceBotFunctionIntegrationMethod];
190
205
  /**
191
206
  * @public
192
207
  */
193
208
  export interface VoiceBotFunctionIntegrationWebhook {
194
209
  url: string;
210
+ method?: VoiceBotFunctionIntegrationMethod;
195
211
  async?: boolean;
196
212
  authorization?: VoiceBotFunctionIntegrationWebhookAuthorization;
197
213
  headers?: (VoiceBotFunctionIntegrationWebhookHeader)[];
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.16",
4
+ "version": "1.0.17",
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",