@wildix/xbees-users-client 1.0.6 → 1.0.8

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 (65) hide show
  1. package/dist-cjs/Users.js +6 -0
  2. package/dist-cjs/UsersClient.js +21 -3
  3. package/dist-cjs/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  4. package/dist-cjs/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  5. package/dist-cjs/commands/CreateBotApiKeyCommand.js +12 -32
  6. package/dist-cjs/commands/CreateBotCommand.js +12 -32
  7. package/dist-cjs/commands/DeleteBotApiKeyCommand.js +12 -32
  8. package/dist-cjs/commands/DeleteBotCommand.js +12 -32
  9. package/dist-cjs/commands/GetBotCallbackCommand.js +21 -0
  10. package/dist-cjs/commands/GetBotCommand.js +21 -0
  11. package/dist-cjs/commands/ListBotApiKeysCommand.js +12 -32
  12. package/dist-cjs/commands/ListBotsCommand.js +12 -32
  13. package/dist-cjs/commands/UpdateBotCallbackCommand.js +21 -0
  14. package/dist-cjs/commands/UpdateBotCommand.js +12 -32
  15. package/dist-cjs/commands/VerifyBotSecretKeyCommand.js +12 -32
  16. package/dist-cjs/commands/index.js +3 -0
  17. package/dist-cjs/models/models_0.js +25 -21
  18. package/dist-cjs/protocols/Aws_restJson1.js +200 -352
  19. package/dist-cjs/runtimeConfig.browser.js +5 -1
  20. package/dist-cjs/runtimeConfig.js +5 -1
  21. package/dist-cjs/runtimeConfig.shared.js +13 -11
  22. package/dist-es/Users.js +6 -0
  23. package/dist-es/UsersClient.js +21 -3
  24. package/dist-es/commands/BatchGetUsersPbxLinkDataCommand.js +12 -32
  25. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +12 -32
  26. package/dist-es/commands/CreateBotApiKeyCommand.js +12 -32
  27. package/dist-es/commands/CreateBotCommand.js +12 -32
  28. package/dist-es/commands/DeleteBotApiKeyCommand.js +12 -32
  29. package/dist-es/commands/DeleteBotCommand.js +12 -32
  30. package/dist-es/commands/GetBotCallbackCommand.js +17 -0
  31. package/dist-es/commands/GetBotCommand.js +17 -0
  32. package/dist-es/commands/ListBotApiKeysCommand.js +12 -32
  33. package/dist-es/commands/ListBotsCommand.js +12 -32
  34. package/dist-es/commands/UpdateBotCallbackCommand.js +17 -0
  35. package/dist-es/commands/UpdateBotCommand.js +12 -32
  36. package/dist-es/commands/VerifyBotSecretKeyCommand.js +12 -32
  37. package/dist-es/commands/index.js +3 -0
  38. package/dist-es/models/models_0.js +22 -18
  39. package/dist-es/protocols/Aws_restJson1.js +192 -350
  40. package/dist-es/runtimeConfig.browser.js +4 -1
  41. package/dist-es/runtimeConfig.js +4 -1
  42. package/dist-es/runtimeConfig.shared.js +13 -11
  43. package/dist-types/Users.d.ts +22 -0
  44. package/dist-types/UsersClient.d.ts +21 -9
  45. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +7 -19
  46. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +7 -19
  47. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +11 -45
  48. package/dist-types/commands/CreateBotCommand.d.ts +32 -66
  49. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +7 -19
  50. package/dist-types/commands/DeleteBotCommand.d.ts +7 -19
  51. package/dist-types/commands/GetBotCallbackCommand.d.ts +91 -0
  52. package/dist-types/commands/GetBotCommand.d.ts +73 -0
  53. package/dist-types/commands/ListBotApiKeysCommand.d.ts +7 -19
  54. package/dist-types/commands/ListBotsCommand.d.ts +9 -45
  55. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +115 -0
  56. package/dist-types/commands/UpdateBotCommand.d.ts +12 -71
  57. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +7 -19
  58. package/dist-types/commands/index.d.ts +3 -0
  59. package/dist-types/index.d.ts +2 -0
  60. package/dist-types/models/models_0.d.ts +155 -62
  61. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +5 -4
  63. package/dist-types/runtimeConfig.d.ts +5 -4
  64. package/dist-types/runtimeConfig.native.d.ts +5 -4
  65. package/package.json +32 -30
@@ -1,4 +1,6 @@
1
+ import packageInfo from "../package.json";
1
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
2
4
  import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
3
5
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
4
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
@@ -15,8 +17,9 @@ export const getRuntimeConfig = (config) => {
15
17
  runtime: "browser",
16
18
  defaultsMode,
17
19
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
18
21
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
19
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
22
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
20
23
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
21
24
  sha256: config?.sha256 ?? Sha256,
22
25
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -1,3 +1,5 @@
1
+ import packageInfo from "../package.json";
2
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
1
3
  import { Hash } from "@smithy/hash-node";
2
4
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
3
5
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
@@ -19,8 +21,9 @@ export const getRuntimeConfig = (config) => {
19
21
  runtime: "node",
20
22
  defaultsMode,
21
23
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: packageInfo.name, clientVersion: packageInfo.version }),
22
25
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
23
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
26
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
24
27
  retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
25
28
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
26
29
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -2,14 +2,16 @@ import { NoOpLogger } from "@smithy/smithy-client";
2
2
  import { parseUrl } from "@smithy/url-parser";
3
3
  import { fromBase64, toBase64, } from "@smithy/util-base64";
4
4
  import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
5
- export const getRuntimeConfig = (config) => ({
6
- apiVersion: "2018-05-10",
7
- base64Decoder: config?.base64Decoder ?? fromBase64,
8
- base64Encoder: config?.base64Encoder ?? toBase64,
9
- disableHostPrefix: config?.disableHostPrefix ?? false,
10
- extensions: config?.extensions ?? [],
11
- logger: config?.logger ?? new NoOpLogger(),
12
- urlParser: config?.urlParser ?? parseUrl,
13
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
14
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
15
- });
5
+ export const getRuntimeConfig = (config) => {
6
+ return {
7
+ apiVersion: "2018-05-10",
8
+ base64Decoder: config?.base64Decoder ?? fromBase64,
9
+ base64Encoder: config?.base64Encoder ?? toBase64,
10
+ disableHostPrefix: config?.disableHostPrefix ?? false,
11
+ extensions: config?.extensions ?? [],
12
+ logger: config?.logger ?? new NoOpLogger(),
13
+ urlParser: config?.urlParser ?? parseUrl,
14
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
15
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
16
+ };
17
+ };
@@ -5,8 +5,11 @@ import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./com
5
5
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
6
6
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
7
7
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
8
+ import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
9
+ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
8
10
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
9
11
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
12
+ import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
10
13
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
11
14
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
12
15
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
@@ -47,6 +50,18 @@ export interface Users {
47
50
  deleteBotApiKey(args: DeleteBotApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBotApiKeyCommandOutput>;
48
51
  deleteBotApiKey(args: DeleteBotApiKeyCommandInput, cb: (err: any, data?: DeleteBotApiKeyCommandOutput) => void): void;
49
52
  deleteBotApiKey(args: DeleteBotApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBotApiKeyCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link GetBotCommand}
55
+ */
56
+ getBot(args: GetBotCommandInput, options?: __HttpHandlerOptions): Promise<GetBotCommandOutput>;
57
+ getBot(args: GetBotCommandInput, cb: (err: any, data?: GetBotCommandOutput) => void): void;
58
+ getBot(args: GetBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link GetBotCallbackCommand}
61
+ */
62
+ getBotCallback(args: GetBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<GetBotCallbackCommandOutput>;
63
+ getBotCallback(args: GetBotCallbackCommandInput, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
64
+ getBotCallback(args: GetBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
50
65
  /**
51
66
  * @see {@link ListBotApiKeysCommand}
52
67
  */
@@ -56,6 +71,7 @@ export interface Users {
56
71
  /**
57
72
  * @see {@link ListBotsCommand}
58
73
  */
74
+ listBots(): Promise<ListBotsCommandOutput>;
59
75
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
60
76
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
61
77
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
@@ -65,6 +81,12 @@ export interface Users {
65
81
  updateBot(args: UpdateBotCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCommandOutput>;
66
82
  updateBot(args: UpdateBotCommandInput, cb: (err: any, data?: UpdateBotCommandOutput) => void): void;
67
83
  updateBot(args: UpdateBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCommandOutput) => void): void;
84
+ /**
85
+ * @see {@link UpdateBotCallbackCommand}
86
+ */
87
+ updateBotCallback(args: UpdateBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCallbackCommandOutput>;
88
+ updateBotCallback(args: UpdateBotCallbackCommandInput, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
89
+ updateBotCallback(args: UpdateBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
68
90
  /**
69
91
  * @see {@link VerifyBotSecretKeyCommand}
70
92
  */
@@ -4,31 +4,36 @@ import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./com
4
4
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
5
5
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
6
6
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
7
+ import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
8
+ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
7
9
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
8
10
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
11
+ import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
9
12
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
10
13
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
11
14
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
12
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
15
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
16
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
13
17
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
14
- import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser } from "@smithy/types";
18
+ import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
19
+ import { TokenProvider } from '@wildix/smithy-utils';
15
20
  export { __Client };
16
21
  /**
17
22
  * @public
18
23
  */
19
- export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCommandInput | VerifyBotSecretKeyCommandInput;
24
+ export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | VerifyBotSecretKeyCommandInput;
20
25
  /**
21
26
  * @public
22
27
  */
23
- export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCommandOutput | VerifyBotSecretKeyCommandOutput;
28
+ export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | VerifyBotSecretKeyCommandOutput;
24
29
  /**
25
30
  * @public
26
31
  */
27
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
32
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
28
33
  /**
29
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
34
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
30
35
  */
31
- requestHandler?: __HttpHandler;
36
+ requestHandler?: __HttpHandlerUserInput;
32
37
  /**
33
38
  * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
34
39
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
@@ -80,6 +85,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
80
85
  * trait of an operation.
81
86
  */
82
87
  disableHostPrefix?: boolean;
88
+ /**
89
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
90
+ * @internal
91
+ */
92
+ defaultUserAgentProvider?: Provider<__UserAgent>;
83
93
  /**
84
94
  * Value for how many times a request will be made at most in case of retry.
85
95
  */
@@ -106,18 +116,20 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
106
116
  /**
107
117
  * @public
108
118
  */
109
- export type UsersClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults;
119
+ export type UsersClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
110
120
  /**
111
121
  * @public
112
122
  *
113
123
  * The configuration interface of UsersClient class constructor that set the region, credentials and other options.
114
124
  */
115
125
  export interface UsersClientConfig extends UsersClientConfigType {
126
+ env: 'stage' | 'stable' | 'prod';
127
+ token: TokenProvider;
116
128
  }
117
129
  /**
118
130
  * @public
119
131
  */
120
- export type UsersClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig;
132
+ export type UsersClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
121
133
  /**
122
134
  * @public
123
135
  *
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { BatchGetUsersPbxLinkDataInput, BatchGetUsersPbxLinkDataOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface BatchGetUsersPbxLinkDataCommandInput extends BatchGetUsersPbxLi
20
20
  */
21
21
  export interface BatchGetUsersPbxLinkDataCommandOutput extends BatchGetUsersPbxLinkDataOutput, __MetadataBearer {
22
22
  }
23
+ declare const BatchGetUsersPbxLinkDataCommand_base: {
24
+ new (input: BatchGetUsersPbxLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: BatchGetUsersPbxLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -63,22 +68,5 @@ export interface BatchGetUsersPbxLinkDataCommandOutput extends BatchGetUsersPbxL
63
68
  * <p>Base exception class for all service exceptions from Users service.</p>
64
69
  *
65
70
  */
66
- export declare class BatchGetUsersPbxLinkDataCommand extends $Command<BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput, UsersClientResolvedConfig> {
67
- readonly input: BatchGetUsersPbxLinkDataCommandInput;
68
- /**
69
- * @public
70
- */
71
- constructor(input: BatchGetUsersPbxLinkDataCommandInput);
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput>;
76
- /**
77
- * @internal
78
- */
79
- private serialize;
80
- /**
81
- * @internal
82
- */
83
- private deserialize;
71
+ export declare class BatchGetUsersPbxLinkDataCommand extends BatchGetUsersPbxLinkDataCommand_base {
84
72
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { BatchGetUsersStreamLinkDataInput, BatchGetUsersStreamLinkDataOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface BatchGetUsersStreamLinkDataCommandInput extends BatchGetUsersSt
20
20
  */
21
21
  export interface BatchGetUsersStreamLinkDataCommandOutput extends BatchGetUsersStreamLinkDataOutput, __MetadataBearer {
22
22
  }
23
+ declare const BatchGetUsersStreamLinkDataCommand_base: {
24
+ new (input: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -73,22 +78,5 @@ export interface BatchGetUsersStreamLinkDataCommandOutput extends BatchGetUsersS
73
78
  * <p>Base exception class for all service exceptions from Users service.</p>
74
79
  *
75
80
  */
76
- export declare class BatchGetUsersStreamLinkDataCommand extends $Command<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig> {
77
- readonly input: BatchGetUsersStreamLinkDataCommandInput;
78
- /**
79
- * @public
80
- */
81
- constructor(input: BatchGetUsersStreamLinkDataCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
81
+ export declare class BatchGetUsersStreamLinkDataCommand extends BatchGetUsersStreamLinkDataCommand_base {
94
82
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { CreateBotApiKeyInput, CreateBotApiKeyOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface CreateBotApiKeyCommandInput extends CreateBotApiKeyInput {
20
20
  */
21
21
  export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __MetadataBearer {
22
22
  }
23
+ declare const CreateBotApiKeyCommand_base: {
24
+ new (input: CreateBotApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreateBotApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -40,32 +45,8 @@ export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __M
40
45
  * // bot: { // Bot
41
46
  * // id: "STRING_VALUE", // required
42
47
  * // name: "STRING_VALUE", // required
43
- * // secret: "STRING_VALUE", // required
44
- * // visibility: { // BotVisibilitySettings
45
- * // search: true || false,
46
- * // mention: true || false,
47
- * // },
48
- * // callback: { // BotCallbackSettings Union: only one key present
49
- * // webhook: { // BotCallbackWebhook
50
- * // url: "STRING_VALUE", // required
51
- * // secret: "STRING_VALUE", // required
52
- * // triggers: { // BotCallbackTriggers
53
- * // channel: true || false,
54
- * // company: true || false,
55
- * // mention: true || false,
56
- * // },
57
- * // },
58
- * // sqs: { // BotCallbackSqs
59
- * // url: "STRING_VALUE", // required
60
- * // key: "STRING_VALUE", // required
61
- * // secret: "STRING_VALUE", // required
62
- * // triggers: {
63
- * // channel: true || false,
64
- * // company: true || false,
65
- * // mention: true || false,
66
- * // },
67
- * // },
68
- * // },
48
+ * // picture: "STRING_VALUE",
49
+ * // searchable: true || false,
69
50
  * // createdAt: "STRING_VALUE", // required
70
51
  * // updated: "STRING_VALUE",
71
52
  * // },
@@ -84,6 +65,8 @@ export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __M
84
65
  * @see {@link CreateBotApiKeyCommandOutput} for command's `response` shape.
85
66
  * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
86
67
  *
68
+ * @throws {@link BotNotFoundException} (client fault)
69
+ *
87
70
  * @throws {@link ForbiddenException} (client fault)
88
71
  *
89
72
  * @throws {@link ValidationException} (client fault)
@@ -92,22 +75,5 @@ export interface CreateBotApiKeyCommandOutput extends CreateBotApiKeyOutput, __M
92
75
  * <p>Base exception class for all service exceptions from Users service.</p>
93
76
  *
94
77
  */
95
- export declare class CreateBotApiKeyCommand extends $Command<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput, UsersClientResolvedConfig> {
96
- readonly input: CreateBotApiKeyCommandInput;
97
- /**
98
- * @public
99
- */
100
- constructor(input: CreateBotApiKeyCommandInput);
101
- /**
102
- * @internal
103
- */
104
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput>;
105
- /**
106
- * @internal
107
- */
108
- private serialize;
109
- /**
110
- * @internal
111
- */
112
- private deserialize;
78
+ export declare class CreateBotApiKeyCommand extends CreateBotApiKeyCommand_base {
113
79
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { CreateBotInput, CreateBotOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface CreateBotCommandInput extends CreateBotInput {
20
20
  */
21
21
  export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBearer {
22
22
  }
23
+ declare const CreateBotCommand_base: {
24
+ new (input: CreateBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBotCommandInput, CreateBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreateBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBotCommandInput, CreateBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -32,28 +37,30 @@ export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBeare
32
37
  * const input = { // CreateBotInput
33
38
  * company: "STRING_VALUE",
34
39
  * name: "STRING_VALUE", // required
35
- * visibility: { // BotVisibilitySettings
36
- * search: true || false,
37
- * mention: true || false,
38
- * },
39
- * callback: { // BotCallbackSettings Union: only one key present
40
- * webhook: { // BotCallbackWebhook
41
- * url: "STRING_VALUE", // required
42
- * secret: "STRING_VALUE", // required
43
- * triggers: { // BotCallbackTriggers
44
- * channel: true || false,
45
- * company: true || false,
46
- * mention: true || false,
40
+ * picture: "STRING_VALUE",
41
+ * callback: { // BotCallback
42
+ * endpoint: { // BotEndpoint Union: only one key present
43
+ * dialogflowCx: { // BotDialogflowCxEndpoint
44
+ * projectId: "STRING_VALUE", // required
45
+ * agentId: "STRING_VALUE", // required
46
+ * location: "STRING_VALUE", // required
47
+ * privateKeyId: "STRING_VALUE", // required
48
+ * privateKey: "STRING_VALUE", // required
49
+ * clientEmail: "STRING_VALUE",
50
+ * clientId: "STRING_VALUE",
47
51
  * },
48
- * },
49
- * sqs: { // BotCallbackSqs
50
- * url: "STRING_VALUE", // required
51
- * key: "STRING_VALUE", // required
52
- * secret: "STRING_VALUE", // required
53
- * triggers: {
54
- * channel: true || false,
55
- * company: true || false,
56
- * mention: true || false,
52
+ * openAiAssistant: { // BotOpenAiAssistantEndpoint
53
+ * key: "STRING_VALUE", // required
54
+ * assistantId: "STRING_VALUE", // required
55
+ * },
56
+ * webhook: { // BotWebhookEndpoint
57
+ * url: "STRING_VALUE", // required
58
+ * secret: "STRING_VALUE", // required
59
+ * },
60
+ * sqs: { // BotSqsEndpoint
61
+ * url: "STRING_VALUE", // required
62
+ * key: "STRING_VALUE", // required
63
+ * secret: "STRING_VALUE", // required
57
64
  * },
58
65
  * },
59
66
  * },
@@ -64,32 +71,8 @@ export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBeare
64
71
  * // bot: { // Bot
65
72
  * // id: "STRING_VALUE", // required
66
73
  * // name: "STRING_VALUE", // required
67
- * // secret: "STRING_VALUE", // required
68
- * // visibility: { // BotVisibilitySettings
69
- * // search: true || false,
70
- * // mention: true || false,
71
- * // },
72
- * // callback: { // BotCallbackSettings Union: only one key present
73
- * // webhook: { // BotCallbackWebhook
74
- * // url: "STRING_VALUE", // required
75
- * // secret: "STRING_VALUE", // required
76
- * // triggers: { // BotCallbackTriggers
77
- * // channel: true || false,
78
- * // company: true || false,
79
- * // mention: true || false,
80
- * // },
81
- * // },
82
- * // sqs: { // BotCallbackSqs
83
- * // url: "STRING_VALUE", // required
84
- * // key: "STRING_VALUE", // required
85
- * // secret: "STRING_VALUE", // required
86
- * // triggers: {
87
- * // channel: true || false,
88
- * // company: true || false,
89
- * // mention: true || false,
90
- * // },
91
- * // },
92
- * // },
74
+ * // picture: "STRING_VALUE",
75
+ * // searchable: true || false,
93
76
  * // createdAt: "STRING_VALUE", // required
94
77
  * // updated: "STRING_VALUE",
95
78
  * // },
@@ -111,22 +94,5 @@ export interface CreateBotCommandOutput extends CreateBotOutput, __MetadataBeare
111
94
  * <p>Base exception class for all service exceptions from Users service.</p>
112
95
  *
113
96
  */
114
- export declare class CreateBotCommand extends $Command<CreateBotCommandInput, CreateBotCommandOutput, UsersClientResolvedConfig> {
115
- readonly input: CreateBotCommandInput;
116
- /**
117
- * @public
118
- */
119
- constructor(input: CreateBotCommandInput);
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBotCommandInput, CreateBotCommandOutput>;
124
- /**
125
- * @internal
126
- */
127
- private serialize;
128
- /**
129
- * @internal
130
- */
131
- private deserialize;
97
+ export declare class CreateBotCommand extends CreateBotCommand_base {
132
98
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { DeleteBotApiKeyInput, DeleteBotApiKeyOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface DeleteBotApiKeyCommandInput extends DeleteBotApiKeyInput {
20
20
  */
21
21
  export interface DeleteBotApiKeyCommandOutput extends DeleteBotApiKeyOutput, __MetadataBearer {
22
22
  }
23
+ declare const DeleteBotApiKeyCommand_base: {
24
+ new (input: DeleteBotApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteBotApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -58,22 +63,5 @@ export interface DeleteBotApiKeyCommandOutput extends DeleteBotApiKeyOutput, __M
58
63
  * <p>Base exception class for all service exceptions from Users service.</p>
59
64
  *
60
65
  */
61
- export declare class DeleteBotApiKeyCommand extends $Command<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput, UsersClientResolvedConfig> {
62
- readonly input: DeleteBotApiKeyCommandInput;
63
- /**
64
- * @public
65
- */
66
- constructor(input: DeleteBotApiKeyCommandInput);
67
- /**
68
- * @internal
69
- */
70
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput>;
71
- /**
72
- * @internal
73
- */
74
- private serialize;
75
- /**
76
- * @internal
77
- */
78
- private deserialize;
66
+ export declare class DeleteBotApiKeyCommand extends DeleteBotApiKeyCommand_base {
79
67
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
2
  import { DeleteBotInput, DeleteBotOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -20,6 +20,11 @@ export interface DeleteBotCommandInput extends DeleteBotInput {
20
20
  */
21
21
  export interface DeleteBotCommandOutput extends DeleteBotOutput, __MetadataBearer {
22
22
  }
23
+ declare const DeleteBotCommand_base: {
24
+ new (input: DeleteBotCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotCommandInput, DeleteBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteBotCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBotCommandInput, DeleteBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
23
28
  /**
24
29
  * @public
25
30
  *
@@ -55,22 +60,5 @@ export interface DeleteBotCommandOutput extends DeleteBotOutput, __MetadataBeare
55
60
  * <p>Base exception class for all service exceptions from Users service.</p>
56
61
  *
57
62
  */
58
- export declare class DeleteBotCommand extends $Command<DeleteBotCommandInput, DeleteBotCommandOutput, UsersClientResolvedConfig> {
59
- readonly input: DeleteBotCommandInput;
60
- /**
61
- * @public
62
- */
63
- constructor(input: DeleteBotCommandInput);
64
- /**
65
- * @internal
66
- */
67
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: UsersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteBotCommandInput, DeleteBotCommandOutput>;
68
- /**
69
- * @internal
70
- */
71
- private serialize;
72
- /**
73
- * @internal
74
- */
75
- private deserialize;
63
+ export declare class DeleteBotCommand extends DeleteBotCommand_base {
76
64
  }