@wildix/xbees-users-client 1.0.11 → 1.0.14

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 (46) hide show
  1. package/dist-cjs/Users.js +10 -2
  2. package/dist-cjs/commands/{BatchGetUsersStreamLinkDataCommand.js → BatchGetUsersCommand.js} +7 -7
  3. package/dist-cjs/commands/GetUserCommand.js +21 -0
  4. package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +21 -0
  5. package/dist-cjs/commands/QueryUserCommand.js +21 -0
  6. package/dist-cjs/commands/QueryUsersCommand.js +21 -0
  7. package/dist-cjs/commands/index.js +5 -1
  8. package/dist-cjs/models/models_0.js +46 -1
  9. package/dist-cjs/protocols/Aws_restJson1.js +233 -15
  10. package/dist-es/Users.js +10 -2
  11. package/dist-es/commands/BatchGetUsersCommand.js +17 -0
  12. package/dist-es/commands/GetUserCommand.js +17 -0
  13. package/dist-es/commands/GetUserPbxLinkDataCommand.js +17 -0
  14. package/dist-es/commands/QueryUserCommand.js +17 -0
  15. package/dist-es/commands/QueryUsersCommand.js +17 -0
  16. package/dist-es/commands/index.js +5 -1
  17. package/dist-es/models/models_0.js +43 -0
  18. package/dist-es/protocols/Aws_restJson1.js +222 -12
  19. package/dist-types/Users.d.ts +35 -7
  20. package/dist-types/UsersClient.d.ts +7 -3
  21. package/dist-types/commands/BatchGetUsersCommand.d.ts +85 -0
  22. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +55 -5
  23. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +2 -1
  24. package/dist-types/commands/CreateBotCommand.d.ts +4 -5
  25. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +2 -1
  26. package/dist-types/commands/DeleteBotCommand.d.ts +2 -1
  27. package/dist-types/commands/GetBotCallbackCommand.d.ts +4 -5
  28. package/dist-types/commands/GetBotCommand.d.ts +2 -1
  29. package/dist-types/commands/GetUserCommand.d.ts +83 -0
  30. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +120 -0
  31. package/dist-types/commands/ListBotApiKeysCommand.d.ts +2 -1
  32. package/dist-types/commands/ListBotsCommand.d.ts +2 -1
  33. package/dist-types/commands/QueryUserCommand.d.ts +92 -0
  34. package/dist-types/commands/QueryUsersCommand.d.ts +92 -0
  35. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +6 -9
  36. package/dist-types/commands/UpdateBotCommand.d.ts +2 -1
  37. package/dist-types/commands/UploadPictureCommand.d.ts +2 -1
  38. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +2 -1
  39. package/dist-types/commands/index.d.ts +5 -1
  40. package/dist-types/index.d.ts +2 -2
  41. package/dist-types/models/UsersServiceException.d.ts +2 -1
  42. package/dist-types/models/models_0.d.ts +439 -35
  43. package/dist-types/protocols/Aws_restJson1.d.ts +45 -9
  44. package/package.json +9 -9
  45. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +0 -17
  46. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +0 -82
@@ -0,0 +1,92 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { QueryUsersInput, QueryUsersOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link QueryUsersCommand}.
14
+ */
15
+ export interface QueryUsersCommandInput extends QueryUsersInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryUsersCommand}.
21
+ */
22
+ export interface QueryUsersCommandOutput extends QueryUsersOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryUsersCommand_base: {
25
+ new (input: QueryUsersCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: QueryUsersCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { UsersClient, QueryUsersCommand } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, QueryUsersCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // QueryUsersInput
39
+ * queries: [ // UsersQueryList // required
40
+ * { // UserQuery Union: only one key present
41
+ * id: "STRING_VALUE",
42
+ * email: "STRING_VALUE",
43
+ * phone: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * predicate: { // UserQueryPredicate
47
+ * license: "basic" || "essential" || "business" || "premium" || "wizyconf",
48
+ * },
49
+ * };
50
+ * const command = new QueryUsersCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // QueryUsersOutput
53
+ * // users: [ // UsersList // required
54
+ * // { // User
55
+ * // id: "STRING_VALUE", // required
56
+ * // name: "STRING_VALUE",
57
+ * // email: "STRING_VALUE",
58
+ * // phone: "STRING_VALUE",
59
+ * // picture: "STRING_VALUE",
60
+ * // locale: "STRING_VALUE",
61
+ * // timeZone: "STRING_VALUE",
62
+ * // company: "STRING_VALUE",
63
+ * // bot: true || false,
64
+ * // pbxDomain: "STRING_VALUE",
65
+ * // pbxPort: "STRING_VALUE",
66
+ * // pbxExtension: "STRING_VALUE",
67
+ * // pbxSerial: "STRING_VALUE",
68
+ * // pbxUserId: "STRING_VALUE",
69
+ * // createdAt: "STRING_VALUE",
70
+ * // updatedAt: "STRING_VALUE",
71
+ * // },
72
+ * // ],
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param QueryUsersCommandInput - {@link QueryUsersCommandInput}
78
+ * @returns {@link QueryUsersCommandOutput}
79
+ * @see {@link QueryUsersCommandInput} for command's `input` shape.
80
+ * @see {@link QueryUsersCommandOutput} for command's `response` shape.
81
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
82
+ *
83
+ * @throws {@link ForbiddenException} (client fault)
84
+ *
85
+ * @throws {@link ValidationException} (client fault)
86
+ *
87
+ * @throws {@link UsersServiceException}
88
+ * <p>Base exception class for all service exceptions from Users service.</p>
89
+ *
90
+ */
91
+ export declare class QueryUsersCommand extends QueryUsersCommand_base {
92
+ }
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -40,12 +41,10 @@ declare const UpdateBotCallbackCommand_base: {
40
41
  * callback: { // BotCallback
41
42
  * endpoint: { // BotEndpoint Union: only one key present
42
43
  * dialogflowCx: { // BotDialogflowCxEndpoint
43
- * projectId: "STRING_VALUE", // required
44
- * agentId: "STRING_VALUE", // required
44
+ * credentials: "DOCUMENT_VALUE", // required
45
+ * agent: "STRING_VALUE", // required
45
46
  * location: "STRING_VALUE", // required
46
47
  * language: "STRING_VALUE", // required
47
- * privateKey: "STRING_VALUE", // required
48
- * clientEmail: "STRING_VALUE",
49
48
  * },
50
49
  * openAiAssistant: { // BotOpenAiAssistantEndpoint
51
50
  * key: "STRING_VALUE", // required
@@ -69,12 +68,10 @@ declare const UpdateBotCallbackCommand_base: {
69
68
  * // callback: { // BotCallback
70
69
  * // endpoint: { // BotEndpoint Union: only one key present
71
70
  * // dialogflowCx: { // BotDialogflowCxEndpoint
72
- * // projectId: "STRING_VALUE", // required
73
- * // agentId: "STRING_VALUE", // required
71
+ * // credentials: "DOCUMENT_VALUE", // required
72
+ * // agent: "STRING_VALUE", // required
74
73
  * // location: "STRING_VALUE", // required
75
74
  * // language: "STRING_VALUE", // required
76
- * // privateKey: "STRING_VALUE", // required
77
- * // clientEmail: "STRING_VALUE",
78
75
  * // },
79
76
  * // openAiAssistant: { // BotOpenAiAssistantEndpoint
80
77
  * // key: "STRING_VALUE", // required
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -1,13 +1,17 @@
1
+ export * from "./BatchGetUsersCommand";
1
2
  export * from "./BatchGetUsersPbxLinkDataCommand";
2
- export * from "./BatchGetUsersStreamLinkDataCommand";
3
3
  export * from "./CreateBotCommand";
4
4
  export * from "./CreateBotApiKeyCommand";
5
5
  export * from "./DeleteBotCommand";
6
6
  export * from "./DeleteBotApiKeyCommand";
7
7
  export * from "./GetBotCommand";
8
8
  export * from "./GetBotCallbackCommand";
9
+ export * from "./GetUserCommand";
10
+ export * from "./GetUserPbxLinkDataCommand";
9
11
  export * from "./ListBotApiKeysCommand";
10
12
  export * from "./ListBotsCommand";
13
+ export * from "./QueryUserCommand";
14
+ export * from "./QueryUsersCommand";
11
15
  export * from "./UpdateBotCommand";
12
16
  export * from "./UpdateBotCallbackCommand";
13
17
  export * from "./UploadPictureCommand";
@@ -1,7 +1,7 @@
1
1
  export * from "./UsersClient";
2
2
  export * from "./Users";
3
- export { RuntimeExtension } from "./runtimeExtensions";
4
- export { UsersExtensionConfiguration } from "./extensionConfiguration";
3
+ export type { RuntimeExtension } from "./runtimeExtensions";
4
+ export type { UsersExtensionConfiguration } from "./extensionConfiguration";
5
5
  export * from "./commands";
6
6
  export * from "./models";
7
7
  export { UsersServiceException } from "./models/UsersServiceException";
@@ -1,5 +1,6 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
- export { __ServiceException, __ServiceExceptionOptions };
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
3
4
  /**
4
5
  * @public
5
6
  *