@wildix/xbees-users-client 1.0.24 → 1.0.25

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.
@@ -7,7 +7,7 @@ export const se_BatchGetUsersCommand = async (input, context) => {
7
7
  const headers = {
8
8
  'content-type': 'application/json',
9
9
  };
10
- b.bp("/v2/users/BatchGetUsers");
10
+ b.bp("/v2/users/batch-get-users");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  'id': _ => _json(_),
@@ -18,6 +18,21 @@ export const se_BatchGetUsersCommand = async (input, context) => {
18
18
  return b.build();
19
19
  };
20
20
  export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
21
+ const b = rb(input, context);
22
+ const headers = {
23
+ 'content-type': 'application/json',
24
+ };
25
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
26
+ let body;
27
+ body = JSON.stringify(take(input, {
28
+ 'id': _ => _json(_),
29
+ }));
30
+ b.m("POST")
31
+ .h(headers)
32
+ .b(body);
33
+ return b.build();
34
+ };
35
+ export const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
21
36
  const b = rb(input, context);
22
37
  const headers = {
23
38
  'content-type': 'application/json',
@@ -164,20 +179,30 @@ export const se_GetUserCommand = async (input, context) => {
164
179
  };
165
180
  export const se_GetUserPbxLinkDataCommand = async (input, context) => {
166
181
  const b = rb(input, context);
167
- const headers = {
168
- 'content-type': 'application/json',
169
- };
170
- b.bp("/v2/users/GetUserPbxLinkData");
182
+ const headers = {};
183
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
184
+ b.p('userId', () => input.userId, '{userId}', false);
171
185
  let body;
172
- body = JSON.stringify(take(input, {
173
- 'id': [],
174
- }));
175
- b.m("POST")
186
+ b.m("GET")
176
187
  .h(headers)
177
188
  .b(body);
178
189
  return b.build();
179
190
  };
180
191
  export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
192
+ const b = rb(input, context);
193
+ const headers = {};
194
+ b.bp("/v2/users/get-user-pbx-link-suggestion");
195
+ const query = map({
196
+ [_e]: [, input[_e]],
197
+ });
198
+ let body;
199
+ b.m("GET")
200
+ .h(headers)
201
+ .q(query)
202
+ .b(body);
203
+ return b.build();
204
+ };
205
+ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
181
206
  const b = rb(input, context);
182
207
  const headers = {};
183
208
  b.bp("/v2/users/GetUserPbxLinkSuggestion");
@@ -225,7 +250,7 @@ export const se_QueryUserCommand = async (input, context) => {
225
250
  const headers = {
226
251
  'content-type': 'application/json',
227
252
  };
228
- b.bp("/v2/users/QueryUser");
253
+ b.bp("/v2/users/query-user");
229
254
  let body;
230
255
  body = JSON.stringify(take(input, {
231
256
  'predicate': _ => _json(_),
@@ -241,7 +266,7 @@ export const se_QueryUsersCommand = async (input, context) => {
241
266
  const headers = {
242
267
  'content-type': 'application/json',
243
268
  };
244
- b.bp("/v2/users/QueryUsers");
269
+ b.bp("/v2/users/query-users");
245
270
  let body;
246
271
  body = JSON.stringify(take(input, {
247
272
  'predicate': _ => _json(_),
@@ -295,6 +320,21 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
295
320
  return b.build();
296
321
  };
297
322
  export const se_UploadPictureCommand = async (input, context) => {
323
+ const b = rb(input, context);
324
+ const headers = {
325
+ 'content-type': 'application/json',
326
+ };
327
+ b.bp("/v2/users/upload-picture");
328
+ let body;
329
+ body = JSON.stringify(take(input, {
330
+ 'picture': [],
331
+ }));
332
+ b.m("POST")
333
+ .h(headers)
334
+ .b(body);
335
+ return b.build();
336
+ };
337
+ export const se_UploadPictureV1Command = async (input, context) => {
298
338
  const b = rb(input, context);
299
339
  const headers = {
300
340
  'content-type': 'application/json',
@@ -310,6 +350,21 @@ export const se_UploadPictureCommand = async (input, context) => {
310
350
  return b.build();
311
351
  };
312
352
  export const se_VerifyBotSecretKeyCommand = async (input, context) => {
353
+ const b = rb(input, context);
354
+ const headers = {
355
+ 'content-type': 'application/json',
356
+ };
357
+ b.bp("/v2/users/verify-bot-secret-key");
358
+ let body;
359
+ body = JSON.stringify(take(input, {
360
+ 'secret': [],
361
+ }));
362
+ b.m("POST")
363
+ .h(headers)
364
+ .b(body);
365
+ return b.build();
366
+ };
367
+ export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
313
368
  const b = rb(input, context);
314
369
  const headers = {
315
370
  'content-type': 'application/json',
@@ -352,6 +407,20 @@ export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
352
407
  Object.assign(contents, doc);
353
408
  return contents;
354
409
  };
410
+ export const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
411
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
412
+ return de_CommandError(output, context);
413
+ }
414
+ const contents = map({
415
+ $metadata: deserializeMetadata(output),
416
+ });
417
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
418
+ const doc = take(data, {
419
+ 'users': _json,
420
+ });
421
+ Object.assign(contents, doc);
422
+ return contents;
423
+ };
355
424
  export const de_ChangeUserEmailCommand = async (output, context) => {
356
425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
357
426
  return de_CommandError(output, context);
@@ -485,6 +554,20 @@ export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
485
554
  Object.assign(contents, doc);
486
555
  return contents;
487
556
  };
557
+ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
558
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
559
+ return de_CommandError(output, context);
560
+ }
561
+ const contents = map({
562
+ $metadata: deserializeMetadata(output),
563
+ });
564
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
565
+ const doc = take(data, {
566
+ 'suggestion': _json,
567
+ });
568
+ Object.assign(contents, doc);
569
+ return contents;
570
+ };
488
571
  export const de_ListBotApiKeysCommand = async (output, context) => {
489
572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
490
573
  return de_CommandError(output, context);
@@ -583,6 +666,20 @@ export const de_UploadPictureCommand = async (output, context) => {
583
666
  Object.assign(contents, doc);
584
667
  return contents;
585
668
  };
669
+ export const de_UploadPictureV1Command = async (output, context) => {
670
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
671
+ return de_CommandError(output, context);
672
+ }
673
+ const contents = map({
674
+ $metadata: deserializeMetadata(output),
675
+ });
676
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
677
+ const doc = take(data, {
678
+ 'url': __expectString,
679
+ });
680
+ Object.assign(contents, doc);
681
+ return contents;
682
+ };
586
683
  export const de_VerifyBotSecretKeyCommand = async (output, context) => {
587
684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
588
685
  return de_CommandError(output, context);
@@ -599,6 +696,22 @@ export const de_VerifyBotSecretKeyCommand = async (output, context) => {
599
696
  Object.assign(contents, doc);
600
697
  return contents;
601
698
  };
699
+ export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
700
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
701
+ return de_CommandError(output, context);
702
+ }
703
+ const contents = map({
704
+ $metadata: deserializeMetadata(output),
705
+ });
706
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
707
+ const doc = take(data, {
708
+ 'company': __expectString,
709
+ 'id': __expectString,
710
+ 'name': __expectString,
711
+ });
712
+ Object.assign(contents, doc);
713
+ return contents;
714
+ };
602
715
  const de_CommandError = async (output, context) => {
603
716
  const parsedOutput = {
604
717
  ...output,
@@ -1,6 +1,7 @@
1
1
  import { UsersClient } from "./UsersClient";
2
2
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
3
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
4
+ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
4
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
5
6
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
6
7
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -11,6 +12,7 @@ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotComman
11
12
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
12
13
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
13
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
15
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
14
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
15
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
16
18
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
@@ -18,7 +20,9 @@ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/Quer
18
20
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
19
21
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
20
22
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
23
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
21
24
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
25
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
22
26
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
23
27
  export interface Users {
24
28
  /**
@@ -33,6 +37,12 @@ export interface Users {
33
37
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataCommandOutput>;
34
38
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
35
39
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
40
+ /**
41
+ * @see {@link BatchGetUsersPbxLinkDataV1Command}
42
+ */
43
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataV1CommandOutput>;
44
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
45
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
36
46
  /**
37
47
  * @see {@link ChangeUserEmailCommand}
38
48
  */
@@ -94,6 +104,13 @@ export interface Users {
94
104
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionCommandOutput>;
95
105
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
96
106
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
107
+ /**
108
+ * @see {@link GetUserPbxLinkSuggestionV1Command}
109
+ */
110
+ getUserPbxLinkSuggestionV1(): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
111
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
112
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
113
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
97
114
  /**
98
115
  * @see {@link ListBotApiKeysCommand}
99
116
  */
@@ -137,12 +154,24 @@ export interface Users {
137
154
  uploadPicture(args: UploadPictureCommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureCommandOutput>;
138
155
  uploadPicture(args: UploadPictureCommandInput, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
139
156
  uploadPicture(args: UploadPictureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
157
+ /**
158
+ * @see {@link UploadPictureV1Command}
159
+ */
160
+ uploadPictureV1(args: UploadPictureV1CommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureV1CommandOutput>;
161
+ uploadPictureV1(args: UploadPictureV1CommandInput, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
162
+ uploadPictureV1(args: UploadPictureV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
140
163
  /**
141
164
  * @see {@link VerifyBotSecretKeyCommand}
142
165
  */
143
166
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyCommandOutput>;
144
167
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
145
168
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
169
+ /**
170
+ * @see {@link VerifyBotSecretKeyV1Command}
171
+ */
172
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyV1CommandOutput>;
173
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
174
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
146
175
  }
147
176
  /**
148
177
  * @public
@@ -1,5 +1,6 @@
1
1
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
3
+ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
3
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
4
5
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
5
6
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -10,6 +11,7 @@ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotComman
10
11
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
11
12
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
12
13
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
14
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
13
15
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
14
16
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
15
17
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
@@ -17,7 +19,9 @@ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/Quer
17
19
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
18
20
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
19
21
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
22
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
20
23
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
24
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
21
25
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
22
26
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
23
27
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -29,11 +33,11 @@ export { __Client };
29
33
  /**
30
34
  * @public
31
35
  */
32
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
36
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
33
37
  /**
34
38
  * @public
35
39
  */
36
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
40
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
37
41
  /**
38
42
  * @public
39
43
  */
@@ -0,0 +1,122 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { BatchGetUsersPbxLinkDataV1Input, BatchGetUsersPbxLinkDataV1Output } 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 BatchGetUsersPbxLinkDataV1Command}.
14
+ */
15
+ export interface BatchGetUsersPbxLinkDataV1CommandInput extends BatchGetUsersPbxLinkDataV1Input {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetUsersPbxLinkDataV1Command}.
21
+ */
22
+ export interface BatchGetUsersPbxLinkDataV1CommandOutput extends BatchGetUsersPbxLinkDataV1Output, __MetadataBearer {
23
+ }
24
+ declare const BatchGetUsersPbxLinkDataV1Command_base: {
25
+ new (input: BatchGetUsersPbxLinkDataV1CommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchGetUsersPbxLinkDataV1CommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput, 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, BatchGetUsersPbxLinkDataV1Command } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, BatchGetUsersPbxLinkDataV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // BatchGetUsersPbxLinkDataV1Input
39
+ * id: [ // UsersIdList // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new BatchGetUsersPbxLinkDataV1Command(input);
44
+ * const response = await client.send(command);
45
+ * // { // BatchGetUsersPbxLinkDataV1Output
46
+ * // users: [ // UsersPbxLinkDataList // required
47
+ * // { // UserPbxLinkData
48
+ * // id: "STRING_VALUE", // required
49
+ * // company: "STRING_VALUE", // required
50
+ * // companyName: "STRING_VALUE",
51
+ * // domain: "STRING_VALUE", // required
52
+ * // email: "STRING_VALUE",
53
+ * // info: { // UserPersonalInfo
54
+ * // dn: "STRING_VALUE", // required
55
+ * // id: "STRING_VALUE", // required
56
+ * // name: "STRING_VALUE", // required
57
+ * // extension: "STRING_VALUE", // required
58
+ * // officePhone: "STRING_VALUE",
59
+ * // mobilePhone: "STRING_VALUE",
60
+ * // faxNumber: "STRING_VALUE",
61
+ * // email: "STRING_VALUE",
62
+ * // role: "STRING_VALUE", // required
63
+ * // language: "STRING_VALUE", // required
64
+ * // dialplan: "STRING_VALUE", // required
65
+ * // faxDialplan: "STRING_VALUE", // required
66
+ * // departament: "STRING_VALUE",
67
+ * // picture: "STRING_VALUE", // required
68
+ * // groupDn: "STRING_VALUE", // required
69
+ * // groupName: "STRING_VALUE", // required
70
+ * // jid: "STRING_VALUE", // required
71
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
72
+ * // login: "STRING_VALUE",
73
+ * // pbx: "STRING_VALUE",
74
+ * // pbxDn: "STRING_VALUE", // required
75
+ * // sourceId: "STRING_VALUE",
76
+ * // sipPassword: "STRING_VALUE",
77
+ * // },
78
+ * // pbx: { // UserPbxInfo
79
+ * // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
80
+ * // "STRING_VALUE",
81
+ * // ],
82
+ * // ports: [ // UserPbxInfoPorts // required
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // externalLinePrefix: "STRING_VALUE",
86
+ * // version: "STRING_VALUE", // required
87
+ * // serial: "STRING_VALUE", // required
88
+ * // },
89
+ * // picture: "STRING_VALUE", // required
90
+ * // pictureDeleted: true || false,
91
+ * // port: "STRING_VALUE", // required
92
+ * // serial: "STRING_VALUE", // required
93
+ * // services: { // UserPbxServices
94
+ * // xcaracal: true || false,
95
+ * // wizyWebinar: true || false,
96
+ * // },
97
+ * // personalSettings: {},
98
+ * // dialplanSettings: {},
99
+ * // awsRegion: "STRING_VALUE",
100
+ * // updatedAt: "STRING_VALUE",
101
+ * // },
102
+ * // ],
103
+ * // };
104
+ *
105
+ * ```
106
+ *
107
+ * @param BatchGetUsersPbxLinkDataV1CommandInput - {@link BatchGetUsersPbxLinkDataV1CommandInput}
108
+ * @returns {@link BatchGetUsersPbxLinkDataV1CommandOutput}
109
+ * @see {@link BatchGetUsersPbxLinkDataV1CommandInput} for command's `input` shape.
110
+ * @see {@link BatchGetUsersPbxLinkDataV1CommandOutput} for command's `response` shape.
111
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
112
+ *
113
+ * @throws {@link ForbiddenException} (client fault)
114
+ *
115
+ * @throws {@link ValidationException} (client fault)
116
+ *
117
+ * @throws {@link UsersServiceException}
118
+ * <p>Base exception class for all service exceptions from Users service.</p>
119
+ *
120
+ */
121
+ export declare class BatchGetUsersPbxLinkDataV1Command extends BatchGetUsersPbxLinkDataV1Command_base {
122
+ }
@@ -36,7 +36,7 @@ declare const GetUserPbxLinkDataCommand_base: {
36
36
  * // const { UsersClient, GetUserPbxLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
37
  * const client = new UsersClient(config);
38
38
  * const input = { // GetUserPbxLinkDataInput
39
- * id: "STRING_VALUE", // required
39
+ * userId: "STRING_VALUE", // required
40
40
  * };
41
41
  * const command = new GetUserPbxLinkDataCommand(input);
42
42
  * const response = await client.send(command);
@@ -0,0 +1,67 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { GetUserPbxLinkSuggestionV1Input, GetUserPbxLinkSuggestionV1Output } 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 GetUserPbxLinkSuggestionV1Command}.
14
+ */
15
+ export interface GetUserPbxLinkSuggestionV1CommandInput extends GetUserPbxLinkSuggestionV1Input {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetUserPbxLinkSuggestionV1Command}.
21
+ */
22
+ export interface GetUserPbxLinkSuggestionV1CommandOutput extends GetUserPbxLinkSuggestionV1Output, __MetadataBearer {
23
+ }
24
+ declare const GetUserPbxLinkSuggestionV1Command_base: {
25
+ new (input: GetUserPbxLinkSuggestionV1CommandInput): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetUserPbxLinkSuggestionV1CommandInput]): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput, 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, GetUserPbxLinkSuggestionV1Command } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, GetUserPbxLinkSuggestionV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // GetUserPbxLinkSuggestionV1Input
39
+ * email: "STRING_VALUE",
40
+ * };
41
+ * const command = new GetUserPbxLinkSuggestionV1Command(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetUserPbxLinkSuggestionV1Output
44
+ * // suggestion: { // UserPbxLinkSuggestion
45
+ * // domain: "STRING_VALUE", // required
46
+ * // port: "STRING_VALUE", // required
47
+ * // },
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param GetUserPbxLinkSuggestionV1CommandInput - {@link GetUserPbxLinkSuggestionV1CommandInput}
53
+ * @returns {@link GetUserPbxLinkSuggestionV1CommandOutput}
54
+ * @see {@link GetUserPbxLinkSuggestionV1CommandInput} for command's `input` shape.
55
+ * @see {@link GetUserPbxLinkSuggestionV1CommandOutput} for command's `response` shape.
56
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
57
+ *
58
+ * @throws {@link ForbiddenException} (client fault)
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ *
62
+ * @throws {@link UsersServiceException}
63
+ * <p>Base exception class for all service exceptions from Users service.</p>
64
+ *
65
+ */
66
+ export declare class GetUserPbxLinkSuggestionV1Command extends GetUserPbxLinkSuggestionV1Command_base {
67
+ }
@@ -0,0 +1,64 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { UploadPictureV1Input, UploadPictureV1Output } 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 UploadPictureV1Command}.
14
+ */
15
+ export interface UploadPictureV1CommandInput extends UploadPictureV1Input {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UploadPictureV1Command}.
21
+ */
22
+ export interface UploadPictureV1CommandOutput extends UploadPictureV1Output, __MetadataBearer {
23
+ }
24
+ declare const UploadPictureV1Command_base: {
25
+ new (input: UploadPictureV1CommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureV1CommandInput, UploadPictureV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UploadPictureV1CommandInput): import("@smithy/smithy-client").CommandImpl<UploadPictureV1CommandInput, UploadPictureV1CommandOutput, 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, UploadPictureV1Command } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, UploadPictureV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // UploadPictureV1Input
39
+ * picture: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new UploadPictureV1Command(input);
42
+ * const response = await client.send(command);
43
+ * // { // UploadPictureV1Output
44
+ * // url: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param UploadPictureV1CommandInput - {@link UploadPictureV1CommandInput}
50
+ * @returns {@link UploadPictureV1CommandOutput}
51
+ * @see {@link UploadPictureV1CommandInput} for command's `input` shape.
52
+ * @see {@link UploadPictureV1CommandOutput} for command's `response` shape.
53
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
54
+ *
55
+ * @throws {@link ForbiddenException} (client fault)
56
+ *
57
+ * @throws {@link ValidationException} (client fault)
58
+ *
59
+ * @throws {@link UsersServiceException}
60
+ * <p>Base exception class for all service exceptions from Users service.</p>
61
+ *
62
+ */
63
+ export declare class UploadPictureV1Command extends UploadPictureV1Command_base {
64
+ }