@wildix/xbees-users-client 1.3.2 → 3.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.
Files changed (198) hide show
  1. package/dist-cjs/Users.js +3 -3
  2. package/dist-cjs/UsersClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +81 -0
  5. package/dist-cjs/commands/BatchGetUsersCommand.js +10 -11
  6. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +10 -11
  7. package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +10 -11
  8. package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +10 -11
  9. package/dist-cjs/commands/ChangeUserEmailCommand.js +10 -11
  10. package/dist-cjs/commands/CreateAnonymousSessionCommand.js +10 -11
  11. package/dist-cjs/commands/CreateBotApiKeyCommand.js +10 -11
  12. package/dist-cjs/commands/CreateBotCommand.js +10 -11
  13. package/dist-cjs/commands/CreateSystemBotCommand.js +10 -11
  14. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +10 -11
  15. package/dist-cjs/commands/DeleteBotCommand.js +10 -11
  16. package/dist-cjs/commands/GetAccountCommand.js +10 -11
  17. package/dist-cjs/commands/GetAppVersionCommand.js +10 -11
  18. package/dist-cjs/commands/GetBotCallbackCommand.js +10 -11
  19. package/dist-cjs/commands/GetBotCommand.js +10 -11
  20. package/dist-cjs/commands/GetUserCommand.js +10 -11
  21. package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +10 -11
  22. package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +10 -11
  23. package/dist-cjs/commands/GetUserPbxLinkSuggestionCommand.js +10 -11
  24. package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +10 -11
  25. package/dist-cjs/commands/IntelligenceSearchCommand.js +10 -11
  26. package/dist-cjs/commands/InviteCommand.js +10 -11
  27. package/dist-cjs/commands/LinkIdentityCommand.js +10 -11
  28. package/dist-cjs/commands/ListBotApiKeysCommand.js +10 -11
  29. package/dist-cjs/commands/ListBotsCommand.js +10 -11
  30. package/dist-cjs/commands/ListIdentitiesCommand.js +10 -11
  31. package/dist-cjs/commands/ListWorkspacesCommand.js +10 -11
  32. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +10 -11
  33. package/dist-cjs/commands/QueryColleaguesCommand.js +10 -11
  34. package/dist-cjs/commands/QueryUserCommand.js +10 -11
  35. package/dist-cjs/commands/QueryUsersCommand.js +10 -11
  36. package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +10 -11
  37. package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +10 -11
  38. package/dist-cjs/commands/UnlinkIdentityCommand.js +10 -11
  39. package/dist-cjs/commands/UnlinkWorkspaceCommand.js +10 -11
  40. package/dist-cjs/commands/UpdateAccountCommand.js +10 -11
  41. package/dist-cjs/commands/UpdateBotCallbackCommand.js +10 -11
  42. package/dist-cjs/commands/UpdateBotCommand.js +10 -11
  43. package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +10 -11
  44. package/dist-cjs/commands/UpdateWorkspaceCommand.js +10 -11
  45. package/dist-cjs/commands/UploadPictureCommand.js +10 -11
  46. package/dist-cjs/commands/UploadPictureV1Command.js +10 -11
  47. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +10 -11
  48. package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +10 -11
  49. package/dist-cjs/commands/VerifyIdentityCommand.js +10 -11
  50. package/dist-cjs/commands/index.js +4 -4
  51. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  52. package/dist-cjs/endpoint/bdd.js +28 -0
  53. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  54. package/dist-cjs/index.js +4 -1
  55. package/dist-cjs/models/UsersServiceException.js +3 -3
  56. package/dist-cjs/models/enums.js +86 -0
  57. package/dist-cjs/models/errors.js +225 -0
  58. package/dist-cjs/models/models_0.js +0 -400
  59. package/dist-cjs/runtimeConfig.browser.js +11 -11
  60. package/dist-cjs/runtimeConfig.js +22 -18
  61. package/dist-cjs/runtimeConfig.shared.js +35 -10
  62. package/dist-cjs/runtimeExtensions.js +6 -5
  63. package/dist-cjs/schemas/schemas_0.js +1463 -0
  64. package/dist-es/Users.js +10 -10
  65. package/dist-es/UsersClient.js +30 -22
  66. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  67. package/dist-es/auth/httpAuthSchemeProvider.js +75 -0
  68. package/dist-es/commands/BatchGetUsersCommand.js +9 -10
  69. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +9 -10
  70. package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +9 -10
  71. package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +9 -10
  72. package/dist-es/commands/ChangeUserEmailCommand.js +9 -10
  73. package/dist-es/commands/CreateAnonymousSessionCommand.js +9 -10
  74. package/dist-es/commands/CreateBotApiKeyCommand.js +9 -10
  75. package/dist-es/commands/CreateBotCommand.js +9 -10
  76. package/dist-es/commands/CreateSystemBotCommand.js +9 -10
  77. package/dist-es/commands/DeleteBotApiKeyCommand.js +9 -10
  78. package/dist-es/commands/DeleteBotCommand.js +9 -10
  79. package/dist-es/commands/GetAccountCommand.js +9 -10
  80. package/dist-es/commands/GetAppVersionCommand.js +9 -10
  81. package/dist-es/commands/GetBotCallbackCommand.js +9 -10
  82. package/dist-es/commands/GetBotCommand.js +9 -10
  83. package/dist-es/commands/GetUserCommand.js +9 -10
  84. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +9 -10
  85. package/dist-es/commands/GetUserPbxLinkDataCommand.js +9 -10
  86. package/dist-es/commands/GetUserPbxLinkSuggestionCommand.js +9 -10
  87. package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +9 -10
  88. package/dist-es/commands/IntelligenceSearchCommand.js +9 -10
  89. package/dist-es/commands/InviteCommand.js +9 -10
  90. package/dist-es/commands/LinkIdentityCommand.js +9 -10
  91. package/dist-es/commands/ListBotApiKeysCommand.js +9 -10
  92. package/dist-es/commands/ListBotsCommand.js +9 -10
  93. package/dist-es/commands/ListIdentitiesCommand.js +9 -10
  94. package/dist-es/commands/ListWorkspacesCommand.js +9 -10
  95. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +9 -10
  96. package/dist-es/commands/QueryColleaguesCommand.js +9 -10
  97. package/dist-es/commands/QueryUserCommand.js +9 -10
  98. package/dist-es/commands/QueryUsersCommand.js +9 -10
  99. package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +9 -10
  100. package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +9 -10
  101. package/dist-es/commands/UnlinkIdentityCommand.js +9 -10
  102. package/dist-es/commands/UnlinkWorkspaceCommand.js +9 -10
  103. package/dist-es/commands/UpdateAccountCommand.js +9 -10
  104. package/dist-es/commands/UpdateBotCallbackCommand.js +9 -10
  105. package/dist-es/commands/UpdateBotCommand.js +9 -10
  106. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +9 -10
  107. package/dist-es/commands/UpdateWorkspaceCommand.js +9 -10
  108. package/dist-es/commands/UploadPictureCommand.js +9 -10
  109. package/dist-es/commands/UploadPictureV1Command.js +9 -10
  110. package/dist-es/commands/VerifyBotSecretKeyCommand.js +9 -10
  111. package/dist-es/commands/VerifyBotSecretKeyV1Command.js +9 -10
  112. package/dist-es/commands/VerifyIdentityCommand.js +9 -10
  113. package/dist-es/commands/index.js +4 -4
  114. package/dist-es/endpoint/EndpointParameters.js +12 -0
  115. package/dist-es/endpoint/bdd.js +25 -0
  116. package/dist-es/endpoint/endpointResolver.js +12 -0
  117. package/dist-es/index.js +4 -1
  118. package/dist-es/models/UsersServiceException.js +1 -1
  119. package/dist-es/models/enums.js +83 -0
  120. package/dist-es/models/errors.js +205 -0
  121. package/dist-es/models/models_0.js +1 -382
  122. package/dist-es/runtimeConfig.browser.js +7 -7
  123. package/dist-es/runtimeConfig.js +17 -13
  124. package/dist-es/runtimeConfig.shared.js +29 -4
  125. package/dist-es/runtimeExtensions.js +6 -5
  126. package/dist-es/schemas/schemas_0.js +1456 -0
  127. package/dist-types/Users.d.ts +46 -46
  128. package/dist-types/UsersClient.d.ts +75 -57
  129. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  130. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  131. package/dist-types/commands/BatchGetUsersCommand.d.ts +11 -7
  132. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +11 -7
  133. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +11 -7
  134. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +11 -7
  135. package/dist-types/commands/ChangeUserEmailCommand.d.ts +11 -7
  136. package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +11 -7
  137. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -7
  138. package/dist-types/commands/CreateBotCommand.d.ts +11 -7
  139. package/dist-types/commands/CreateSystemBotCommand.d.ts +11 -7
  140. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +11 -7
  141. package/dist-types/commands/DeleteBotCommand.d.ts +11 -7
  142. package/dist-types/commands/GetAccountCommand.d.ts +11 -7
  143. package/dist-types/commands/GetAppVersionCommand.d.ts +11 -7
  144. package/dist-types/commands/GetBotCallbackCommand.d.ts +11 -7
  145. package/dist-types/commands/GetBotCommand.d.ts +11 -7
  146. package/dist-types/commands/GetUserCommand.d.ts +11 -7
  147. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +11 -7
  148. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +11 -7
  149. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +11 -7
  150. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +11 -7
  151. package/dist-types/commands/IntelligenceSearchCommand.d.ts +11 -7
  152. package/dist-types/commands/InviteCommand.d.ts +11 -7
  153. package/dist-types/commands/LinkIdentityCommand.d.ts +11 -7
  154. package/dist-types/commands/ListBotApiKeysCommand.d.ts +11 -7
  155. package/dist-types/commands/ListBotsCommand.d.ts +11 -7
  156. package/dist-types/commands/ListIdentitiesCommand.d.ts +11 -7
  157. package/dist-types/commands/ListWorkspacesCommand.d.ts +11 -7
  158. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
  159. package/dist-types/commands/QueryColleaguesCommand.d.ts +11 -7
  160. package/dist-types/commands/QueryUserCommand.d.ts +11 -7
  161. package/dist-types/commands/QueryUsersCommand.d.ts +11 -7
  162. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +11 -7
  163. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +11 -7
  164. package/dist-types/commands/UnlinkIdentityCommand.d.ts +11 -7
  165. package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +11 -7
  166. package/dist-types/commands/UpdateAccountCommand.d.ts +11 -7
  167. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +11 -7
  168. package/dist-types/commands/UpdateBotCommand.d.ts +11 -7
  169. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +11 -7
  170. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +11 -7
  171. package/dist-types/commands/UploadPictureCommand.d.ts +11 -7
  172. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -8
  173. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +11 -7
  174. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +11 -7
  175. package/dist-types/commands/VerifyIdentityCommand.d.ts +11 -7
  176. package/dist-types/commands/index.d.ts +4 -4
  177. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  178. package/dist-types/endpoint/bdd.d.ts +2 -0
  179. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  180. package/dist-types/extensionConfiguration.d.ts +4 -3
  181. package/dist-types/index.d.ts +5 -1
  182. package/dist-types/models/UsersServiceException.d.ts +1 -1
  183. package/dist-types/models/enums.d.ts +196 -0
  184. package/dist-types/models/errors.d.ts +189 -0
  185. package/dist-types/models/models_0.d.ts +75 -435
  186. package/dist-types/runtimeConfig.browser.d.ts +39 -16
  187. package/dist-types/runtimeConfig.d.ts +38 -15
  188. package/dist-types/runtimeConfig.native.d.ts +40 -17
  189. package/dist-types/runtimeConfig.shared.d.ts +24 -3
  190. package/dist-types/runtimeExtensions.d.ts +1 -1
  191. package/dist-types/schemas/schemas_0.d.ts +217 -0
  192. package/package.json +14 -40
  193. package/dist-cjs/models/index.js +0 -4
  194. package/dist-cjs/protocols/Aws_restJson1.js +0 -1915
  195. package/dist-es/models/index.js +0 -1
  196. package/dist-es/protocols/Aws_restJson1.js +0 -1821
  197. package/dist-types/models/index.d.ts +0 -1
  198. package/dist-types/protocols/Aws_restJson1.d.ts +0 -407
@@ -1,17 +1,16 @@
1
- import { de_UpdateBotCallbackCommand, se_UpdateBotCallbackCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateBotCallback$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UpdateBotCallbackCommand extends $Command.classBuilder()
6
+ export class UpdateBotCallbackCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UpdateBotCallback", {})
12
13
  .n("UsersClient", "UpdateBotCallbackCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UpdateBotCallbackCommand)
15
- .de(de_UpdateBotCallbackCommand)
14
+ .sc(UpdateBotCallback$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UpdateBotCommand, se_UpdateBotCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateBot$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UpdateBotCommand extends $Command.classBuilder()
6
+ export class UpdateBotCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UpdateBot", {})
12
13
  .n("UsersClient", "UpdateBotCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UpdateBotCommand)
15
- .de(de_UpdateBotCommand)
14
+ .sc(UpdateBot$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UpdateUserEmailNotificationsSettingsCommand, se_UpdateUserEmailNotificationsSettingsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateUserEmailNotificationsSettings$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UpdateUserEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ export class UpdateUserEmailNotificationsSettingsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UpdateUserEmailNotificationsSettings", {})
12
13
  .n("UsersClient", "UpdateUserEmailNotificationsSettingsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UpdateUserEmailNotificationsSettingsCommand)
15
- .de(de_UpdateUserEmailNotificationsSettingsCommand)
14
+ .sc(UpdateUserEmailNotificationsSettings$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UpdateWorkspaceCommand, se_UpdateWorkspaceCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateWorkspace$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UpdateWorkspaceCommand extends $Command.classBuilder()
6
+ export class UpdateWorkspaceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UpdateWorkspace", {})
12
13
  .n("UsersClient", "UpdateWorkspaceCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UpdateWorkspaceCommand)
15
- .de(de_UpdateWorkspaceCommand)
14
+ .sc(UpdateWorkspace$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UploadPictureCommand, se_UploadPictureCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UploadPicture$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UploadPictureCommand extends $Command.classBuilder()
6
+ export class UploadPictureCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UploadPicture", {})
12
13
  .n("UsersClient", "UploadPictureCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UploadPictureCommand)
15
- .de(de_UploadPictureCommand)
14
+ .sc(UploadPicture$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UploadPictureV1Command, se_UploadPictureV1Command, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UploadPictureV1$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UploadPictureV1Command extends $Command.classBuilder()
6
+ export class UploadPictureV1Command extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "UploadPictureV1", {})
12
13
  .n("UsersClient", "UploadPictureV1Command")
13
- .f(void 0, void 0)
14
- .ser(se_UploadPictureV1Command)
15
- .de(de_UploadPictureV1Command)
14
+ .sc(UploadPictureV1$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_VerifyBotSecretKeyCommand, se_VerifyBotSecretKeyCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { VerifyBotSecretKey$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class VerifyBotSecretKeyCommand extends $Command.classBuilder()
6
+ export class VerifyBotSecretKeyCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "VerifyBotSecretKey", {})
12
13
  .n("UsersClient", "VerifyBotSecretKeyCommand")
13
- .f(void 0, void 0)
14
- .ser(se_VerifyBotSecretKeyCommand)
15
- .de(de_VerifyBotSecretKeyCommand)
14
+ .sc(VerifyBotSecretKey$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_VerifyBotSecretKeyV1Command, se_VerifyBotSecretKeyV1Command, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { VerifyBotSecretKeyV1$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class VerifyBotSecretKeyV1Command extends $Command.classBuilder()
6
+ export class VerifyBotSecretKeyV1Command extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "VerifyBotSecretKeyV1", {})
12
13
  .n("UsersClient", "VerifyBotSecretKeyV1Command")
13
- .f(void 0, void 0)
14
- .ser(se_VerifyBotSecretKeyV1Command)
15
- .de(de_VerifyBotSecretKeyV1Command)
14
+ .sc(VerifyBotSecretKeyV1$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_VerifyIdentityCommand, se_VerifyIdentityCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { VerifyIdentity$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class VerifyIdentityCommand extends $Command.classBuilder()
6
+ export class VerifyIdentityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
6
9
  .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
10
11
  })
11
12
  .s("Users", "VerifyIdentity", {})
12
13
  .n("UsersClient", "VerifyIdentityCommand")
13
- .f(void 0, void 0)
14
- .ser(se_VerifyIdentityCommand)
15
- .de(de_VerifyIdentityCommand)
14
+ .sc(VerifyIdentity$)
16
15
  .build() {
17
16
  }
@@ -4,15 +4,15 @@ export * from "./BatchGetUsersPbxLinkDataCommand";
4
4
  export * from "./BatchGetUsersPbxLinkDataV1Command";
5
5
  export * from "./ChangeUserEmailCommand";
6
6
  export * from "./CreateAnonymousSessionCommand";
7
- export * from "./CreateBotCommand";
8
7
  export * from "./CreateBotApiKeyCommand";
8
+ export * from "./CreateBotCommand";
9
9
  export * from "./CreateSystemBotCommand";
10
- export * from "./DeleteBotCommand";
11
10
  export * from "./DeleteBotApiKeyCommand";
11
+ export * from "./DeleteBotCommand";
12
12
  export * from "./GetAccountCommand";
13
13
  export * from "./GetAppVersionCommand";
14
- export * from "./GetBotCommand";
15
14
  export * from "./GetBotCallbackCommand";
15
+ export * from "./GetBotCommand";
16
16
  export * from "./GetUserCommand";
17
17
  export * from "./GetUserEmailNotificationsSettingsCommand";
18
18
  export * from "./GetUserPbxLinkDataCommand";
@@ -34,8 +34,8 @@ export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
34
34
  export * from "./UnlinkIdentityCommand";
35
35
  export * from "./UnlinkWorkspaceCommand";
36
36
  export * from "./UpdateAccountCommand";
37
- export * from "./UpdateBotCommand";
38
37
  export * from "./UpdateBotCallbackCommand";
38
+ export * from "./UpdateBotCommand";
39
39
  export * from "./UpdateUserEmailNotificationsSettingsCommand";
40
40
  export * from "./UpdateWorkspaceCommand";
41
41
  export * from "./UploadPictureCommand";
@@ -0,0 +1,12 @@
1
+ const clientContextParamDefaults = {};
2
+ export const resolveClientEndpointParameters = (options) => {
3
+ return Object.assign(options, {
4
+ env: options.env ?? "prod",
5
+ defaultSigningName: "",
6
+ clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
7
+ });
8
+ };
9
+ export const commonParams = {
10
+ env: { type: "clientContextParams", name: "env" },
11
+ endpoint: { type: "builtInParams", name: "endpoint" },
12
+ };
@@ -0,0 +1,25 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
3
+ const _data = {
4
+ conditions: [
5
+ ["isSet", [b]],
6
+ [a, [c, "stable"]],
7
+ [a, [c, "stage"]]
8
+ ],
9
+ results: [
10
+ [-1],
11
+ [b, {}],
12
+ ["https://api-stable.x-bees.com", {}],
13
+ ["https://api-stage.x-bees.com", {}],
14
+ ["https://api.x-bees.com", {}]
15
+ ]
16
+ };
17
+ const root = 2;
18
+ const r = 100_000_000;
19
+ const nodes = new Int32Array([
20
+ -1, 1, -1,
21
+ 0, r + 1, 3,
22
+ 1, r + 2, 4,
23
+ 2, r + 3, r + 4,
24
+ ]);
25
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,12 @@
1
+ import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
2
+ import { bdd } from "./bdd";
3
+ const cache = new EndpointCache({
4
+ size: 50,
5
+ params: ["endpoint", "env"],
6
+ });
7
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
8
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
9
+ endpointParams: endpointParams,
10
+ logger: context.logger,
11
+ }));
12
+ };
package/dist-es/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  export * from "./UsersClient";
2
2
  export * from "./Users";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./schemas/schemas_0";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
7
+ export * from "./models/models_0";
5
8
  export { UsersServiceException } from "./models/UsersServiceException";
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class UsersServiceException extends __ServiceException {
4
4
  constructor(options) {
@@ -0,0 +1,83 @@
1
+ export const PbxLicenseType = {
2
+ BASIC: "basic",
3
+ BUSINESS: "business",
4
+ ESSENTIAL: "essential",
5
+ PREMIUM: "premium",
6
+ WIZYCONF: "wizyconf",
7
+ };
8
+ export const PbxColleagueRole = {
9
+ ADMIN: "admin",
10
+ FAX: "fax",
11
+ PARK_ORBIT: "park_orbit",
12
+ ROOM: "room",
13
+ USER: "user",
14
+ };
15
+ export const GetPbxColleaguesDir = {
16
+ ASC: "asc",
17
+ DESC: "desc",
18
+ };
19
+ export const PbxColleaguesQueryField = {
20
+ DEPARTMENT: "department",
21
+ DIALPLAN: "dialplan",
22
+ EMAIL: "email",
23
+ EXTENSION: "extension",
24
+ FAX_DIALPLAN: "faxDialplan",
25
+ GROUP_DN: "groupDn",
26
+ ID: "id",
27
+ LANGUAGE: "language",
28
+ LICENSE_TYPE: "licenseType",
29
+ LOGIN: "login",
30
+ MOBILE_PHONE: "mobilePhone",
31
+ NAME: "name",
32
+ OFFICE_PHONE: "officePhone",
33
+ PBX_DN: "pbxDn",
34
+ PICTURE: "picture",
35
+ ROLE: "role",
36
+ SOURCE_ID: "sourceId",
37
+ };
38
+ export const PbxColleaguesSearchStrategy = {
39
+ CONTAIN: "contain",
40
+ STARTS_WITH: "startsWith",
41
+ };
42
+ export const AppType = {
43
+ COLLABORATION: "collaboration",
44
+ X_BEES: "x-bees",
45
+ X_HOPPERS: "x-hoppers",
46
+ };
47
+ export const BotAccess = {
48
+ EVERYBODY: "EVERYBODY",
49
+ ORGANIZATION: "ORGANIZATION",
50
+ };
51
+ export const BotIntegrationType = {
52
+ DIALOGFLOW_CX: "DIALOGFLOW_CX",
53
+ LLM: "LLM",
54
+ OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT",
55
+ SQS: "SQS",
56
+ WEBHOOK: "WEBHOOK",
57
+ };
58
+ export const BotCapabilityToolPipelineType = {
59
+ ASYNC_REQUEST: "async_request",
60
+ ASYNC_REQUEST_GUIDED: "async_request_guided",
61
+ BLOCKING_REQUEST: "blocking_request",
62
+ BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
63
+ };
64
+ export const BotLlmEmbeddedToolType = {
65
+ DELEGATE: "DELEGATE",
66
+ HANDOVER: "HANDOVER",
67
+ SUGGESTIONS: "SUGGESTIONS",
68
+ };
69
+ export const BotLlmFunctionIntegrationMethod = {
70
+ DELETE: "delete",
71
+ GET: "get",
72
+ PATCH: "patch",
73
+ POST: "post",
74
+ PUT: "put",
75
+ };
76
+ export const BotLlmToolType = {
77
+ FUNCTION: "function",
78
+ };
79
+ export const WorkspaceType = {
80
+ PERSONAL: "personal",
81
+ SUPPORT: "support",
82
+ WORK: "work",
83
+ };
@@ -0,0 +1,205 @@
1
+ import { UsersServiceException as __BaseException } from "./UsersServiceException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ForbiddenException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
+ }
13
+ }
14
+ export class ValidationException extends __BaseException {
15
+ name = "ValidationException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ValidationException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
+ }
25
+ }
26
+ export class ChannelNotFoundException extends __BaseException {
27
+ name = "ChannelNotFoundException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "ChannelNotFoundException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
36
+ }
37
+ }
38
+ export class WidgetNotFoundException extends __BaseException {
39
+ name = "WidgetNotFoundException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "WidgetNotFoundException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
48
+ }
49
+ }
50
+ export class AccountNotFoundException extends __BaseException {
51
+ name = "AccountNotFoundException";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "AccountNotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, AccountNotFoundException.prototype);
60
+ }
61
+ }
62
+ export class BotApiKeyNotFoundException extends __BaseException {
63
+ name = "BotApiKeyNotFoundException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "BotApiKeyNotFoundException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
72
+ }
73
+ }
74
+ export class BotNotFoundException extends __BaseException {
75
+ name = "BotNotFoundException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "BotNotFoundException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, BotNotFoundException.prototype);
84
+ }
85
+ }
86
+ export class BotSecretKeyNotValidException extends __BaseException {
87
+ name = "BotSecretKeyNotValidException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "BotSecretKeyNotValidException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
96
+ }
97
+ }
98
+ export class CannotRemovePrimaryIdentityException extends __BaseException {
99
+ name = "CannotRemovePrimaryIdentityException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "CannotRemovePrimaryIdentityException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
108
+ }
109
+ }
110
+ export class CannotUnbindDefaultWorkspaceException extends __BaseException {
111
+ name = "CannotUnbindDefaultWorkspaceException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "CannotUnbindDefaultWorkspaceException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, CannotUnbindDefaultWorkspaceException.prototype);
120
+ }
121
+ }
122
+ export class UserCompanyNotValidException extends __BaseException {
123
+ name = "UserCompanyNotValidException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "UserCompanyNotValidException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, UserCompanyNotValidException.prototype);
132
+ }
133
+ }
134
+ export class UserNotFoundException extends __BaseException {
135
+ name = "UserNotFoundException";
136
+ $fault = "client";
137
+ constructor(opts) {
138
+ super({
139
+ name: "UserNotFoundException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, UserNotFoundException.prototype);
144
+ }
145
+ }
146
+ export class PublicAccessIsRestrictedException extends __BaseException {
147
+ name = "PublicAccessIsRestrictedException";
148
+ $fault = "client";
149
+ constructor(opts) {
150
+ super({
151
+ name: "PublicAccessIsRestrictedException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
156
+ }
157
+ }
158
+ export class IdentityAlreadyLinkedException extends __BaseException {
159
+ name = "IdentityAlreadyLinkedException";
160
+ $fault = "client";
161
+ constructor(opts) {
162
+ super({
163
+ name: "IdentityAlreadyLinkedException",
164
+ $fault: "client",
165
+ ...opts,
166
+ });
167
+ Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
168
+ }
169
+ }
170
+ export class IdentityNotFoundException extends __BaseException {
171
+ name = "IdentityNotFoundException";
172
+ $fault = "client";
173
+ constructor(opts) {
174
+ super({
175
+ name: "IdentityNotFoundException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
180
+ }
181
+ }
182
+ export class UserQueryPredicateNotMetException extends __BaseException {
183
+ name = "UserQueryPredicateNotMetException";
184
+ $fault = "client";
185
+ constructor(opts) {
186
+ super({
187
+ name: "UserQueryPredicateNotMetException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
192
+ }
193
+ }
194
+ export class WorkspaceNotFoundException extends __BaseException {
195
+ name = "WorkspaceNotFoundException";
196
+ $fault = "client";
197
+ constructor(opts) {
198
+ super({
199
+ name: "WorkspaceNotFoundException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ Object.setPrototypeOf(this, WorkspaceNotFoundException.prototype);
204
+ }
205
+ }