@wildix/xbees-users-client 1.0.38 → 1.0.40

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 (51) hide show
  1. package/dist-cjs/UsersClient.js +4 -5
  2. package/dist-cjs/models/models_0.js +26 -21
  3. package/dist-cjs/protocols/Aws_restJson1.js +73 -116
  4. package/dist-cjs/runtimeConfig.browser.js +1 -1
  5. package/dist-cjs/runtimeConfig.js +4 -3
  6. package/dist-cjs/runtimeExtensions.js +2 -10
  7. package/dist-es/UsersClient.js +4 -5
  8. package/dist-es/models/models_0.js +21 -16
  9. package/dist-es/protocols/Aws_restJson1.js +6 -49
  10. package/dist-es/runtimeConfig.browser.js +2 -2
  11. package/dist-es/runtimeConfig.js +5 -4
  12. package/dist-es/runtimeExtensions.js +2 -10
  13. package/dist-types/UsersClient.d.ts +1 -1
  14. package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
  15. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
  16. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
  17. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
  18. package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
  19. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +14 -1
  20. package/dist-types/commands/CreateBotCommand.d.ts +17 -3
  21. package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
  22. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
  23. package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
  24. package/dist-types/commands/GetBotCallbackCommand.d.ts +13 -1
  25. package/dist-types/commands/GetBotCommand.d.ts +14 -1
  26. package/dist-types/commands/GetUserCommand.d.ts +12 -0
  27. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
  28. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
  29. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
  30. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
  31. package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
  32. package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
  33. package/dist-types/commands/ListBotsCommand.d.ts +14 -1
  34. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  35. package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
  36. package/dist-types/commands/QueryUserCommand.d.ts +12 -0
  37. package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
  38. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
  39. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
  40. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +14 -2
  41. package/dist-types/commands/UpdateBotCommand.d.ts +17 -3
  42. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  43. package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
  44. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
  45. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
  46. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
  47. package/dist-types/models/models_0.d.ts +162 -118
  48. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  49. package/dist-types/runtimeConfig.d.ts +3 -2
  50. package/dist-types/runtimeConfig.native.d.ts +3 -2
  51. package/package.json +37 -33
@@ -10,8 +10,11 @@ const smithy_client_1 = require("@smithy/smithy-client");
10
10
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
11
11
  const smithy_utils_1 = require("@wildix/smithy-utils");
12
12
  class UsersClient extends smithy_client_1.Client {
13
+ config;
13
14
  constructor(...[configuration]) {
14
15
  let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
16
+ super(_config_0);
17
+ this.initConfig = _config_0;
15
18
  let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
16
19
  let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
17
20
  let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
@@ -24,11 +27,7 @@ class UsersClient extends smithy_client_1.Client {
24
27
  path: ''
25
28
  };
26
29
  };
27
- const config = {
28
- ..._config_3,
29
- endpoint,
30
- };
31
- super(config);
30
+ const config = { ..._config_3, endpoint };
32
31
  this.config = config;
33
32
  this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
34
33
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ValidationException extends UsersServiceException_1.UsersServiceException {
6
+ name = "ValidationException";
7
+ $fault = "client";
6
8
  constructor(opts) {
7
9
  super({
8
10
  name: "ValidationException",
9
11
  $fault: "client",
10
12
  ...opts
11
13
  });
12
- this.name = "ValidationException";
13
- this.$fault = "client";
14
14
  Object.setPrototypeOf(this, ValidationException.prototype);
15
15
  }
16
16
  }
17
17
  exports.ValidationException = ValidationException;
18
18
  class ForbiddenException extends UsersServiceException_1.UsersServiceException {
19
+ name = "ForbiddenException";
20
+ $fault = "client";
19
21
  constructor(opts) {
20
22
  super({
21
23
  name: "ForbiddenException",
22
24
  $fault: "client",
23
25
  ...opts
24
26
  });
25
- this.name = "ForbiddenException";
26
- this.$fault = "client";
27
27
  Object.setPrototypeOf(this, ForbiddenException.prototype);
28
28
  }
29
29
  }
@@ -69,6 +69,10 @@ exports.PbxColleaguesSearchStrategy = {
69
69
  CONTAIN: "contain",
70
70
  STARTS_WITH: "startsWith",
71
71
  };
72
+ exports.BotAccess = {
73
+ EVERYBODY: "EVERYBODY",
74
+ ORGANIZATION: "ORGANIZATION",
75
+ };
72
76
  exports.BotIntegrationType = {
73
77
  DIALOGFLOW_CX: "DIALOGFLOW_CX",
74
78
  LLM: "LLM",
@@ -77,14 +81,14 @@ exports.BotIntegrationType = {
77
81
  WEBHOOK: "WEBHOOK",
78
82
  };
79
83
  class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
84
+ name = "BotApiKeyNotFoundException";
85
+ $fault = "client";
80
86
  constructor(opts) {
81
87
  super({
82
88
  name: "BotApiKeyNotFoundException",
83
89
  $fault: "client",
84
90
  ...opts
85
91
  });
86
- this.name = "BotApiKeyNotFoundException";
87
- this.$fault = "client";
88
92
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
89
93
  }
90
94
  }
@@ -92,6 +96,7 @@ exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
92
96
  exports.BotLlmEmbeddedToolType = {
93
97
  DELEGATE: "DELEGATE",
94
98
  HANDOVER: "HANDOVER",
99
+ SUGGESTIONS: "SUGGESTIONS",
95
100
  };
96
101
  var BotLlmFunctionIntegrationWebhookAuthorization;
97
102
  (function (BotLlmFunctionIntegrationWebhookAuthorization) {
@@ -104,7 +109,7 @@ var BotLlmFunctionIntegrationWebhookAuthorization;
104
109
  return visitor.oauth(value.oauth);
105
110
  return visitor._(value.$unknown[0], value.$unknown[1]);
106
111
  };
107
- })(BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmFunctionIntegrationWebhookAuthorization || (exports.BotLlmFunctionIntegrationWebhookAuthorization = {}));
112
+ })(BotLlmFunctionIntegrationWebhookAuthorization || (exports.BotLlmFunctionIntegrationWebhookAuthorization = BotLlmFunctionIntegrationWebhookAuthorization = {}));
108
113
  exports.BotLlmFunctionIntegrationMethod = {
109
114
  DELETE: "delete",
110
115
  GET: "get",
@@ -119,7 +124,7 @@ var BotLlmFunctionIntegration;
119
124
  return visitor.webhook(value.webhook);
120
125
  return visitor._(value.$unknown[0], value.$unknown[1]);
121
126
  };
122
- })(BotLlmFunctionIntegration = exports.BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = {}));
127
+ })(BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = BotLlmFunctionIntegration = {}));
123
128
  exports.BotLlmToolType = {
124
129
  FUNCTION: "function",
125
130
  };
@@ -138,55 +143,55 @@ var BotEndpoint;
138
143
  return visitor.sqs(value.sqs);
139
144
  return visitor._(value.$unknown[0], value.$unknown[1]);
140
145
  };
141
- })(BotEndpoint = exports.BotEndpoint || (exports.BotEndpoint = {}));
146
+ })(BotEndpoint || (exports.BotEndpoint = BotEndpoint = {}));
142
147
  class BotNotFoundException extends UsersServiceException_1.UsersServiceException {
148
+ name = "BotNotFoundException";
149
+ $fault = "client";
143
150
  constructor(opts) {
144
151
  super({
145
152
  name: "BotNotFoundException",
146
153
  $fault: "client",
147
154
  ...opts
148
155
  });
149
- this.name = "BotNotFoundException";
150
- this.$fault = "client";
151
156
  Object.setPrototypeOf(this, BotNotFoundException.prototype);
152
157
  }
153
158
  }
154
159
  exports.BotNotFoundException = BotNotFoundException;
155
160
  class BotSecretKeyNotValidException extends UsersServiceException_1.UsersServiceException {
161
+ name = "BotSecretKeyNotValidException";
162
+ $fault = "client";
156
163
  constructor(opts) {
157
164
  super({
158
165
  name: "BotSecretKeyNotValidException",
159
166
  $fault: "client",
160
167
  ...opts
161
168
  });
162
- this.name = "BotSecretKeyNotValidException";
163
- this.$fault = "client";
164
169
  Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
165
170
  }
166
171
  }
167
172
  exports.BotSecretKeyNotValidException = BotSecretKeyNotValidException;
168
173
  class UserCompanyNotValidException extends UsersServiceException_1.UsersServiceException {
174
+ name = "UserCompanyNotValidException";
175
+ $fault = "client";
169
176
  constructor(opts) {
170
177
  super({
171
178
  name: "UserCompanyNotValidException",
172
179
  $fault: "client",
173
180
  ...opts
174
181
  });
175
- this.name = "UserCompanyNotValidException";
176
- this.$fault = "client";
177
182
  Object.setPrototypeOf(this, UserCompanyNotValidException.prototype);
178
183
  }
179
184
  }
180
185
  exports.UserCompanyNotValidException = UserCompanyNotValidException;
181
186
  class UserNotFoundException extends UsersServiceException_1.UsersServiceException {
187
+ name = "UserNotFoundException";
188
+ $fault = "client";
182
189
  constructor(opts) {
183
190
  super({
184
191
  name: "UserNotFoundException",
185
192
  $fault: "client",
186
193
  ...opts
187
194
  });
188
- this.name = "UserNotFoundException";
189
- this.$fault = "client";
190
195
  Object.setPrototypeOf(this, UserNotFoundException.prototype);
191
196
  }
192
197
  }
@@ -202,16 +207,16 @@ var UserQuery;
202
207
  return visitor.phone(value.phone);
203
208
  return visitor._(value.$unknown[0], value.$unknown[1]);
204
209
  };
205
- })(UserQuery = exports.UserQuery || (exports.UserQuery = {}));
210
+ })(UserQuery || (exports.UserQuery = UserQuery = {}));
206
211
  class UserQueryPredicateNotMetException extends UsersServiceException_1.UsersServiceException {
212
+ name = "UserQueryPredicateNotMetException";
213
+ $fault = "client";
207
214
  constructor(opts) {
208
215
  super({
209
216
  name: "UserQueryPredicateNotMetException",
210
217
  $fault: "client",
211
218
  ...opts
212
219
  });
213
- this.name = "UserQueryPredicateNotMetException";
214
- this.$fault = "client";
215
220
  Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
216
221
  }
217
222
  }