@wildix/wms-api-client 1.1.25 → 1.1.27

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 (62) hide show
  1. package/dist-cjs/WmsApi.js +20 -0
  2. package/dist-cjs/commands/CallControlAnswerCommand.js +21 -0
  3. package/dist-cjs/commands/CallControlAttendantTransferCommand.js +21 -0
  4. package/dist-cjs/commands/CallControlBlindTransferCommand.js +21 -0
  5. package/dist-cjs/commands/CallControlHangupCommand.js +21 -0
  6. package/dist-cjs/commands/CallControlHoldCommand.js +21 -0
  7. package/dist-cjs/commands/CallControlMakeCallCommand.js +21 -0
  8. package/dist-cjs/commands/CallControlUnholdCommand.js +21 -0
  9. package/dist-cjs/commands/CallControlUpdateContactInfoCommand.js +21 -0
  10. package/dist-cjs/commands/ListUserActiveCallsCommand.js +21 -0
  11. package/dist-cjs/commands/ListUserDevicesCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +10 -0
  13. package/dist-cjs/models/models_0.js +35 -1
  14. package/dist-cjs/protocols/Aws_restJson1.js +385 -1
  15. package/dist-es/WmsApi.js +20 -0
  16. package/dist-es/commands/CallControlAnswerCommand.js +17 -0
  17. package/dist-es/commands/CallControlAttendantTransferCommand.js +17 -0
  18. package/dist-es/commands/CallControlBlindTransferCommand.js +17 -0
  19. package/dist-es/commands/CallControlHangupCommand.js +17 -0
  20. package/dist-es/commands/CallControlHoldCommand.js +17 -0
  21. package/dist-es/commands/CallControlMakeCallCommand.js +17 -0
  22. package/dist-es/commands/CallControlUnholdCommand.js +17 -0
  23. package/dist-es/commands/CallControlUpdateContactInfoCommand.js +17 -0
  24. package/dist-es/commands/ListUserActiveCallsCommand.js +17 -0
  25. package/dist-es/commands/ListUserDevicesCommand.js +17 -0
  26. package/dist-es/commands/index.js +10 -0
  27. package/dist-es/models/models_0.js +32 -0
  28. package/dist-es/protocols/Aws_restJson1.js +364 -1
  29. package/dist-types/WmsApi.d.ts +72 -0
  30. package/dist-types/WmsApiClient.d.ts +12 -2
  31. package/dist-types/commands/CallControlAnswerCommand.d.ts +80 -0
  32. package/dist-types/commands/CallControlAttendantTransferCommand.d.ts +80 -0
  33. package/dist-types/commands/CallControlBlindTransferCommand.d.ts +80 -0
  34. package/dist-types/commands/CallControlHangupCommand.d.ts +80 -0
  35. package/dist-types/commands/CallControlHoldCommand.d.ts +79 -0
  36. package/dist-types/commands/CallControlMakeCallCommand.d.ts +78 -0
  37. package/dist-types/commands/CallControlUnholdCommand.d.ts +79 -0
  38. package/dist-types/commands/CallControlUpdateContactInfoCommand.d.ts +81 -0
  39. package/dist-types/commands/CreatePbxAclGroupCommand.d.ts +2 -0
  40. package/dist-types/commands/CreatePbxColleagueCommand.d.ts +2 -0
  41. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +2 -0
  42. package/dist-types/commands/DeletePbxAclGroupCommand.d.ts +2 -0
  43. package/dist-types/commands/DeletePbxColleagueCommand.d.ts +2 -0
  44. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +2 -0
  45. package/dist-types/commands/GetColleagueByIdCommand.d.ts +2 -0
  46. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -0
  47. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -0
  48. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
  49. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +2 -1
  50. package/dist-types/commands/GetPbxesCommand.d.ts +2 -0
  51. package/dist-types/commands/GetPersonalInfoCommand.d.ts +2 -0
  52. package/dist-types/commands/ListUserActiveCallsCommand.d.ts +86 -0
  53. package/dist-types/commands/ListUserDevicesCommand.d.ts +87 -0
  54. package/dist-types/commands/NotificationsCommand.d.ts +2 -0
  55. package/dist-types/commands/OriginateCallCommand.d.ts +2 -0
  56. package/dist-types/commands/OriginateCommand.d.ts +2 -0
  57. package/dist-types/commands/ReloadBroadcastsCommand.d.ts +2 -0
  58. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +2 -0
  59. package/dist-types/commands/index.d.ts +10 -0
  60. package/dist-types/models/models_0.d.ts +321 -8
  61. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  62. package/package.json +1 -1
@@ -1,3 +1,11 @@
1
+ export * from "./CallControlAnswerCommand";
2
+ export * from "./CallControlAttendantTransferCommand";
3
+ export * from "./CallControlBlindTransferCommand";
4
+ export * from "./CallControlHangupCommand";
5
+ export * from "./CallControlHoldCommand";
6
+ export * from "./CallControlMakeCallCommand";
7
+ export * from "./CallControlUnholdCommand";
8
+ export * from "./CallControlUpdateContactInfoCommand";
1
9
  export * from "./CreatePbxAclGroupCommand";
2
10
  export * from "./CreatePbxColleagueCommand";
3
11
  export * from "./CreatePbxOAuth2ClientCommand";
@@ -11,6 +19,8 @@ export * from "./GetPbxColleaguesCommand";
11
19
  export * from "./GetPbxesCommand";
12
20
  export * from "./GetPbxOAuth2ClientsCommand";
13
21
  export * from "./GetPersonalInfoCommand";
22
+ export * from "./ListUserActiveCallsCommand";
23
+ export * from "./ListUserDevicesCommand";
14
24
  export * from "./NotificationsCommand";
15
25
  export * from "./OriginateCommand";
16
26
  export * from "./OriginateCallCommand";
@@ -18,6 +18,38 @@ export const ResponseType = {
18
18
  ERROR: "error",
19
19
  RESULT: "result",
20
20
  };
21
+ export class ChannelNotFoundException extends __BaseException {
22
+ name = "ChannelNotFoundException";
23
+ $fault = "client";
24
+ type;
25
+ reason;
26
+ constructor(opts) {
27
+ super({
28
+ name: "ChannelNotFoundException",
29
+ $fault: "client",
30
+ ...opts
31
+ });
32
+ Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
33
+ this.type = opts.type;
34
+ this.reason = opts.reason;
35
+ }
36
+ }
37
+ export class WmsForbiddenException extends __BaseException {
38
+ name = "WmsForbiddenException";
39
+ $fault = "client";
40
+ type;
41
+ reason;
42
+ constructor(opts) {
43
+ super({
44
+ name: "WmsForbiddenException",
45
+ $fault: "client",
46
+ ...opts
47
+ });
48
+ Object.setPrototypeOf(this, WmsForbiddenException.prototype);
49
+ this.type = opts.type;
50
+ this.reason = opts.reason;
51
+ }
52
+ }
21
53
  export class WmsUnauthorizedException extends __BaseException {
22
54
  name = "WmsUnauthorizedException";
23
55
  $fault = "client";
@@ -1,8 +1,167 @@
1
1
  import { WmsApiServiceException as __BaseException } from "../models/WmsApiServiceException";
2
- import { WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
2
+ import { ChannelNotFoundException, WmsForbiddenException, WmsNotFoundException, WmsUnauthorizedException, WmsValidationException, } from "../models/models_0";
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
5
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
+ export const se_CallControlAnswerCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {
9
+ 'content-type': 'application/json',
10
+ };
11
+ b.bp("/api/v2/call-control/answer");
12
+ const query = map({
13
+ [_u]: [, input[_u]],
14
+ });
15
+ let body;
16
+ body = JSON.stringify(take(input, {
17
+ 'device': [],
18
+ 'sipCallId': [],
19
+ }));
20
+ b.m("POST")
21
+ .h(headers)
22
+ .q(query)
23
+ .b(body);
24
+ return b.build();
25
+ };
26
+ export const se_CallControlAttendantTransferCommand = async (input, context) => {
27
+ const b = rb(input, context);
28
+ const headers = {
29
+ 'content-type': 'application/json',
30
+ };
31
+ b.bp("/api/v2/call-control/attendant-transfer");
32
+ const query = map({
33
+ [_u]: [, input[_u]],
34
+ });
35
+ let body;
36
+ body = JSON.stringify(take(input, {
37
+ 'destination': [],
38
+ 'sipCallId': [],
39
+ }));
40
+ b.m("POST")
41
+ .h(headers)
42
+ .q(query)
43
+ .b(body);
44
+ return b.build();
45
+ };
46
+ export const se_CallControlBlindTransferCommand = async (input, context) => {
47
+ const b = rb(input, context);
48
+ const headers = {
49
+ 'content-type': 'application/json',
50
+ };
51
+ b.bp("/api/v2/call-control/blind-transfer");
52
+ const query = map({
53
+ [_u]: [, input[_u]],
54
+ });
55
+ let body;
56
+ body = JSON.stringify(take(input, {
57
+ 'destination': [],
58
+ 'sipCallId': [],
59
+ }));
60
+ b.m("POST")
61
+ .h(headers)
62
+ .q(query)
63
+ .b(body);
64
+ return b.build();
65
+ };
66
+ export const se_CallControlHangupCommand = async (input, context) => {
67
+ const b = rb(input, context);
68
+ const headers = {
69
+ 'content-type': 'application/json',
70
+ };
71
+ b.bp("/api/v2/call-control/hangup");
72
+ const query = map({
73
+ [_u]: [, input[_u]],
74
+ });
75
+ let body;
76
+ body = JSON.stringify(take(input, {
77
+ 'reason': [],
78
+ 'sipCallId': [],
79
+ }));
80
+ b.m("POST")
81
+ .h(headers)
82
+ .q(query)
83
+ .b(body);
84
+ return b.build();
85
+ };
86
+ export const se_CallControlHoldCommand = async (input, context) => {
87
+ const b = rb(input, context);
88
+ const headers = {
89
+ 'content-type': 'application/json',
90
+ };
91
+ b.bp("/api/v2/call-control/hold");
92
+ const query = map({
93
+ [_u]: [, input[_u]],
94
+ });
95
+ let body;
96
+ body = JSON.stringify(take(input, {
97
+ 'sipCallId': [],
98
+ }));
99
+ b.m("POST")
100
+ .h(headers)
101
+ .q(query)
102
+ .b(body);
103
+ return b.build();
104
+ };
105
+ export const se_CallControlMakeCallCommand = async (input, context) => {
106
+ const b = rb(input, context);
107
+ const headers = {
108
+ 'content-type': 'application/json',
109
+ };
110
+ b.bp("/api/v2/call-control/make-call");
111
+ const query = map({
112
+ [_u]: [, input[_u]],
113
+ });
114
+ let body;
115
+ body = JSON.stringify(take(input, {
116
+ 'destination': [],
117
+ 'device': [],
118
+ }));
119
+ b.m("POST")
120
+ .h(headers)
121
+ .q(query)
122
+ .b(body);
123
+ return b.build();
124
+ };
125
+ export const se_CallControlUnholdCommand = async (input, context) => {
126
+ const b = rb(input, context);
127
+ const headers = {
128
+ 'content-type': 'application/json',
129
+ };
130
+ b.bp("/api/v2/call-control/unhold");
131
+ const query = map({
132
+ [_u]: [, input[_u]],
133
+ });
134
+ let body;
135
+ body = JSON.stringify(take(input, {
136
+ 'sipCallId': [],
137
+ }));
138
+ b.m("POST")
139
+ .h(headers)
140
+ .q(query)
141
+ .b(body);
142
+ return b.build();
143
+ };
144
+ export const se_CallControlUpdateContactInfoCommand = async (input, context) => {
145
+ const b = rb(input, context);
146
+ const headers = {
147
+ 'content-type': 'application/json',
148
+ };
149
+ b.bp("/api/v2/call-control/update-contact-info");
150
+ const query = map({
151
+ [_u]: [, input[_u]],
152
+ });
153
+ let body;
154
+ body = JSON.stringify(take(input, {
155
+ 'name': [],
156
+ 'phone': [],
157
+ 'sipCallId': [],
158
+ }));
159
+ b.m("POST")
160
+ .h(headers)
161
+ .q(query)
162
+ .b(body);
163
+ return b.build();
164
+ };
6
165
  export const se_CreatePbxAclGroupCommand = async (input, context) => {
7
166
  const b = rb(input, context);
8
167
  const headers = {
@@ -227,6 +386,34 @@ export const se_GetPersonalInfoCommand = async (input, context) => {
227
386
  .b(body);
228
387
  return b.build();
229
388
  };
389
+ export const se_ListUserActiveCallsCommand = async (input, context) => {
390
+ const b = rb(input, context);
391
+ const headers = {};
392
+ b.bp("/api/v2/call-control/list-calls");
393
+ const query = map({
394
+ [_u]: [, input[_u]],
395
+ });
396
+ let body;
397
+ b.m("GET")
398
+ .h(headers)
399
+ .q(query)
400
+ .b(body);
401
+ return b.build();
402
+ };
403
+ export const se_ListUserDevicesCommand = async (input, context) => {
404
+ const b = rb(input, context);
405
+ const headers = {};
406
+ b.bp("/api/v2/call-control/list-devices");
407
+ const query = map({
408
+ [_u]: [, input[_u]],
409
+ });
410
+ let body;
411
+ b.m("GET")
412
+ .h(headers)
413
+ .q(query)
414
+ .b(body);
415
+ return b.build();
416
+ };
230
417
  export const se_NotificationsCommand = async (input, context) => {
231
418
  const b = rb(input, context);
232
419
  const headers = {
@@ -322,6 +509,118 @@ export const se_UpdatePbxOAuth2ClientCommand = async (input, context) => {
322
509
  .b(body);
323
510
  return b.build();
324
511
  };
512
+ export const de_CallControlAnswerCommand = async (output, context) => {
513
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
514
+ return de_CommandError(output, context);
515
+ }
516
+ const contents = map({
517
+ $metadata: deserializeMetadata(output),
518
+ });
519
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
520
+ const doc = take(data, {
521
+ 'message': __expectString,
522
+ });
523
+ Object.assign(contents, doc);
524
+ return contents;
525
+ };
526
+ export const de_CallControlAttendantTransferCommand = async (output, context) => {
527
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
528
+ return de_CommandError(output, context);
529
+ }
530
+ const contents = map({
531
+ $metadata: deserializeMetadata(output),
532
+ });
533
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
534
+ const doc = take(data, {
535
+ 'message': __expectString,
536
+ });
537
+ Object.assign(contents, doc);
538
+ return contents;
539
+ };
540
+ export const de_CallControlBlindTransferCommand = async (output, context) => {
541
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
542
+ return de_CommandError(output, context);
543
+ }
544
+ const contents = map({
545
+ $metadata: deserializeMetadata(output),
546
+ });
547
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
548
+ const doc = take(data, {
549
+ 'message': __expectString,
550
+ });
551
+ Object.assign(contents, doc);
552
+ return contents;
553
+ };
554
+ export const de_CallControlHangupCommand = async (output, context) => {
555
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
556
+ return de_CommandError(output, context);
557
+ }
558
+ const contents = map({
559
+ $metadata: deserializeMetadata(output),
560
+ });
561
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
562
+ const doc = take(data, {
563
+ 'message': __expectString,
564
+ });
565
+ Object.assign(contents, doc);
566
+ return contents;
567
+ };
568
+ export const de_CallControlHoldCommand = async (output, context) => {
569
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
570
+ return de_CommandError(output, context);
571
+ }
572
+ const contents = map({
573
+ $metadata: deserializeMetadata(output),
574
+ });
575
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
576
+ const doc = take(data, {
577
+ 'message': __expectString,
578
+ });
579
+ Object.assign(contents, doc);
580
+ return contents;
581
+ };
582
+ export const de_CallControlMakeCallCommand = async (output, context) => {
583
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
584
+ return de_CommandError(output, context);
585
+ }
586
+ const contents = map({
587
+ $metadata: deserializeMetadata(output),
588
+ });
589
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
590
+ const doc = take(data, {
591
+ 'message': __expectString,
592
+ });
593
+ Object.assign(contents, doc);
594
+ return contents;
595
+ };
596
+ export const de_CallControlUnholdCommand = async (output, context) => {
597
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
598
+ return de_CommandError(output, context);
599
+ }
600
+ const contents = map({
601
+ $metadata: deserializeMetadata(output),
602
+ });
603
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
604
+ const doc = take(data, {
605
+ 'message': __expectString,
606
+ });
607
+ Object.assign(contents, doc);
608
+ return contents;
609
+ };
610
+ export const de_CallControlUpdateContactInfoCommand = async (output, context) => {
611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
612
+ return de_CommandError(output, context);
613
+ }
614
+ const contents = map({
615
+ $metadata: deserializeMetadata(output),
616
+ });
617
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
618
+ const doc = take(data, {
619
+ 'message': __expectString,
620
+ });
621
+ Object.assign(contents, doc);
622
+ return contents;
623
+ };
325
624
  export const de_CreatePbxAclGroupCommand = async (output, context) => {
326
625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
327
626
  return de_CommandError(output, context);
@@ -517,6 +816,35 @@ export const de_GetPersonalInfoCommand = async (output, context) => {
517
816
  Object.assign(contents, doc);
518
817
  return contents;
519
818
  };
819
+ export const de_ListUserActiveCallsCommand = async (output, context) => {
820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
821
+ return de_CommandError(output, context);
822
+ }
823
+ const contents = map({
824
+ $metadata: deserializeMetadata(output),
825
+ });
826
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
827
+ const doc = take(data, {
828
+ 'calls': _json,
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
832
+ };
833
+ export const de_ListUserDevicesCommand = async (output, context) => {
834
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
835
+ return de_CommandError(output, context);
836
+ }
837
+ const contents = map({
838
+ $metadata: deserializeMetadata(output),
839
+ });
840
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
841
+ const doc = take(data, {
842
+ 'activeDevice': _json,
843
+ 'devices': _json,
844
+ });
845
+ Object.assign(contents, doc);
846
+ return contents;
847
+ };
520
848
  export const de_NotificationsCommand = async (output, context) => {
521
849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
522
850
  return de_CommandError(output, context);
@@ -599,6 +927,12 @@ const de_CommandError = async (output, context) => {
599
927
  };
600
928
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
601
929
  switch (errorCode) {
930
+ case "ChannelNotFoundException":
931
+ case "wildix.wms.api#ChannelNotFoundException":
932
+ throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
933
+ case "WmsForbiddenException":
934
+ case "wildix.wms.api#WmsForbiddenException":
935
+ throw await de_WmsForbiddenExceptionRes(parsedOutput, context);
602
936
  case "WmsUnauthorizedException":
603
937
  case "wildix.wms.api#WmsUnauthorizedException":
604
938
  throw await de_WmsUnauthorizedExceptionRes(parsedOutput, context);
@@ -618,6 +952,34 @@ const de_CommandError = async (output, context) => {
618
952
  }
619
953
  };
620
954
  const throwDefaultError = withBaseException(__BaseException);
955
+ const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
956
+ const contents = map({});
957
+ const data = parsedOutput.body;
958
+ const doc = take(data, {
959
+ 'reason': __expectString,
960
+ 'type': __expectString,
961
+ });
962
+ Object.assign(contents, doc);
963
+ const exception = new ChannelNotFoundException({
964
+ $metadata: deserializeMetadata(parsedOutput),
965
+ ...contents
966
+ });
967
+ return __decorateServiceException(exception, parsedOutput.body);
968
+ };
969
+ const de_WmsForbiddenExceptionRes = async (parsedOutput, context) => {
970
+ const contents = map({});
971
+ const data = parsedOutput.body;
972
+ const doc = take(data, {
973
+ 'reason': __expectString,
974
+ 'type': __expectString,
975
+ });
976
+ Object.assign(contents, doc);
977
+ const exception = new WmsForbiddenException({
978
+ $metadata: deserializeMetadata(parsedOutput),
979
+ ...contents
980
+ });
981
+ return __decorateServiceException(exception, parsedOutput.body);
982
+ };
621
983
  const de_WmsNotFoundExceptionRes = async (parsedOutput, context) => {
622
984
  const contents = map({});
623
985
  const data = parsedOutput.body;
@@ -708,3 +1070,4 @@ const _sF = "searchFields";
708
1070
  const _sS = "searchStrategy";
709
1071
  const _so = "sort";
710
1072
  const _st = "start";
1073
+ const _u = "user";
@@ -1,4 +1,12 @@
1
1
  import { WmsApiClient } from "./WmsApiClient";
2
+ import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
3
+ import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
4
+ import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
5
+ import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
6
+ import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
7
+ import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
8
+ import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
9
+ import { CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput } from "./commands/CallControlUpdateContactInfoCommand";
2
10
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
3
11
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
4
12
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -12,6 +20,8 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
12
20
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
13
21
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
14
22
  import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
23
+ import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
24
+ import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
15
25
  import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
16
26
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
17
27
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
@@ -19,6 +29,54 @@ import { ReloadBroadcastsCommandInput, ReloadBroadcastsCommandOutput } from "./c
19
29
  import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "./commands/UpdatePbxOAuth2ClientCommand";
20
30
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
21
31
  export interface WmsApi {
32
+ /**
33
+ * @see {@link CallControlAnswerCommand}
34
+ */
35
+ callControlAnswer(args: CallControlAnswerCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAnswerCommandOutput>;
36
+ callControlAnswer(args: CallControlAnswerCommandInput, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
37
+ callControlAnswer(args: CallControlAnswerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAnswerCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link CallControlAttendantTransferCommand}
40
+ */
41
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlAttendantTransferCommandOutput>;
42
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
43
+ callControlAttendantTransfer(args: CallControlAttendantTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlAttendantTransferCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link CallControlBlindTransferCommand}
46
+ */
47
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options?: __HttpHandlerOptions): Promise<CallControlBlindTransferCommandOutput>;
48
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
49
+ callControlBlindTransfer(args: CallControlBlindTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlBlindTransferCommandOutput) => void): void;
50
+ /**
51
+ * @see {@link CallControlHangupCommand}
52
+ */
53
+ callControlHangup(args: CallControlHangupCommandInput, options?: __HttpHandlerOptions): Promise<CallControlHangupCommandOutput>;
54
+ callControlHangup(args: CallControlHangupCommandInput, cb: (err: any, data?: CallControlHangupCommandOutput) => void): void;
55
+ callControlHangup(args: CallControlHangupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlHangupCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link CallControlHoldCommand}
58
+ */
59
+ callControlHold(args: CallControlHoldCommandInput, options?: __HttpHandlerOptions): Promise<CallControlHoldCommandOutput>;
60
+ callControlHold(args: CallControlHoldCommandInput, cb: (err: any, data?: CallControlHoldCommandOutput) => void): void;
61
+ callControlHold(args: CallControlHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlHoldCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link CallControlMakeCallCommand}
64
+ */
65
+ callControlMakeCall(args: CallControlMakeCallCommandInput, options?: __HttpHandlerOptions): Promise<CallControlMakeCallCommandOutput>;
66
+ callControlMakeCall(args: CallControlMakeCallCommandInput, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
67
+ callControlMakeCall(args: CallControlMakeCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlMakeCallCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link CallControlUnholdCommand}
70
+ */
71
+ callControlUnhold(args: CallControlUnholdCommandInput, options?: __HttpHandlerOptions): Promise<CallControlUnholdCommandOutput>;
72
+ callControlUnhold(args: CallControlUnholdCommandInput, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
73
+ callControlUnhold(args: CallControlUnholdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlUnholdCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link CallControlUpdateContactInfoCommand}
76
+ */
77
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, options?: __HttpHandlerOptions): Promise<CallControlUpdateContactInfoCommandOutput>;
78
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, cb: (err: any, data?: CallControlUpdateContactInfoCommandOutput) => void): void;
79
+ callControlUpdateContactInfo(args: CallControlUpdateContactInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CallControlUpdateContactInfoCommandOutput) => void): void;
22
80
  /**
23
81
  * @see {@link CreatePbxAclGroupCommand}
24
82
  */
@@ -103,6 +161,20 @@ export interface WmsApi {
103
161
  getPersonalInfo(args: GetPersonalInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetPersonalInfoCommandOutput>;
104
162
  getPersonalInfo(args: GetPersonalInfoCommandInput, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
105
163
  getPersonalInfo(args: GetPersonalInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPersonalInfoCommandOutput) => void): void;
164
+ /**
165
+ * @see {@link ListUserActiveCallsCommand}
166
+ */
167
+ listUserActiveCalls(): Promise<ListUserActiveCallsCommandOutput>;
168
+ listUserActiveCalls(args: ListUserActiveCallsCommandInput, options?: __HttpHandlerOptions): Promise<ListUserActiveCallsCommandOutput>;
169
+ listUserActiveCalls(args: ListUserActiveCallsCommandInput, cb: (err: any, data?: ListUserActiveCallsCommandOutput) => void): void;
170
+ listUserActiveCalls(args: ListUserActiveCallsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUserActiveCallsCommandOutput) => void): void;
171
+ /**
172
+ * @see {@link ListUserDevicesCommand}
173
+ */
174
+ listUserDevices(): Promise<ListUserDevicesCommandOutput>;
175
+ listUserDevices(args: ListUserDevicesCommandInput, options?: __HttpHandlerOptions): Promise<ListUserDevicesCommandOutput>;
176
+ listUserDevices(args: ListUserDevicesCommandInput, cb: (err: any, data?: ListUserDevicesCommandOutput) => void): void;
177
+ listUserDevices(args: ListUserDevicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUserDevicesCommandOutput) => void): void;
106
178
  /**
107
179
  * @see {@link NotificationsCommand}
108
180
  */
@@ -1,3 +1,11 @@
1
+ import { CallControlAnswerCommandInput, CallControlAnswerCommandOutput } from "./commands/CallControlAnswerCommand";
2
+ import { CallControlAttendantTransferCommandInput, CallControlAttendantTransferCommandOutput } from "./commands/CallControlAttendantTransferCommand";
3
+ import { CallControlBlindTransferCommandInput, CallControlBlindTransferCommandOutput } from "./commands/CallControlBlindTransferCommand";
4
+ import { CallControlHangupCommandInput, CallControlHangupCommandOutput } from "./commands/CallControlHangupCommand";
5
+ import { CallControlHoldCommandInput, CallControlHoldCommandOutput } from "./commands/CallControlHoldCommand";
6
+ import { CallControlMakeCallCommandInput, CallControlMakeCallCommandOutput } from "./commands/CallControlMakeCallCommand";
7
+ import { CallControlUnholdCommandInput, CallControlUnholdCommandOutput } from "./commands/CallControlUnholdCommand";
8
+ import { CallControlUpdateContactInfoCommandInput, CallControlUpdateContactInfoCommandOutput } from "./commands/CallControlUpdateContactInfoCommand";
1
9
  import { CreatePbxAclGroupCommandInput, CreatePbxAclGroupCommandOutput } from "./commands/CreatePbxAclGroupCommand";
2
10
  import { CreatePbxColleagueCommandInput, CreatePbxColleagueCommandOutput } from "./commands/CreatePbxColleagueCommand";
3
11
  import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "./commands/CreatePbxOAuth2ClientCommand";
@@ -11,6 +19,8 @@ import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "./c
11
19
  import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "./commands/GetPbxOAuth2ClientsCommand";
12
20
  import { GetPbxesCommandInput, GetPbxesCommandOutput } from "./commands/GetPbxesCommand";
13
21
  import { GetPersonalInfoCommandInput, GetPersonalInfoCommandOutput } from "./commands/GetPersonalInfoCommand";
22
+ import { ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput } from "./commands/ListUserActiveCallsCommand";
23
+ import { ListUserDevicesCommandInput, ListUserDevicesCommandOutput } from "./commands/ListUserDevicesCommand";
14
24
  import { NotificationsCommandInput, NotificationsCommandOutput } from "./commands/NotificationsCommand";
15
25
  import { OriginateCallCommandInput, OriginateCallCommandOutput } from "./commands/OriginateCallCommand";
16
26
  import { OriginateCommandInput, OriginateCommandOutput } from "./commands/OriginateCommand";
@@ -27,11 +37,11 @@ export { __Client };
27
37
  /**
28
38
  * @public
29
39
  */
30
- export type ServiceInputTypes = CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
40
+ export type ServiceInputTypes = CallControlAnswerCommandInput | CallControlAttendantTransferCommandInput | CallControlBlindTransferCommandInput | CallControlHangupCommandInput | CallControlHoldCommandInput | CallControlMakeCallCommandInput | CallControlUnholdCommandInput | CallControlUpdateContactInfoCommandInput | CreatePbxAclGroupCommandInput | CreatePbxColleagueCommandInput | CreatePbxOAuth2ClientCommandInput | DeletePbxAclGroupCommandInput | DeletePbxColleagueCommandInput | DeletePbxOAuth2ClientCommandInput | GetColleagueByIdCommandInput | GetPbxAclGroupsPermissionsCommandInput | GetPbxCallGroupsCommandInput | GetPbxColleaguesCommandInput | GetPbxOAuth2ClientsCommandInput | GetPbxesCommandInput | GetPersonalInfoCommandInput | ListUserActiveCallsCommandInput | ListUserDevicesCommandInput | NotificationsCommandInput | OriginateCallCommandInput | OriginateCommandInput | ReloadBroadcastsCommandInput | UpdatePbxOAuth2ClientCommandInput;
31
41
  /**
32
42
  * @public
33
43
  */
34
- export type ServiceOutputTypes = CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
44
+ export type ServiceOutputTypes = CallControlAnswerCommandOutput | CallControlAttendantTransferCommandOutput | CallControlBlindTransferCommandOutput | CallControlHangupCommandOutput | CallControlHoldCommandOutput | CallControlMakeCallCommandOutput | CallControlUnholdCommandOutput | CallControlUpdateContactInfoCommandOutput | CreatePbxAclGroupCommandOutput | CreatePbxColleagueCommandOutput | CreatePbxOAuth2ClientCommandOutput | DeletePbxAclGroupCommandOutput | DeletePbxColleagueCommandOutput | DeletePbxOAuth2ClientCommandOutput | GetColleagueByIdCommandOutput | GetPbxAclGroupsPermissionsCommandOutput | GetPbxCallGroupsCommandOutput | GetPbxColleaguesCommandOutput | GetPbxOAuth2ClientsCommandOutput | GetPbxesCommandOutput | GetPersonalInfoCommandOutput | ListUserActiveCallsCommandOutput | ListUserDevicesCommandOutput | NotificationsCommandOutput | OriginateCallCommandOutput | OriginateCommandOutput | ReloadBroadcastsCommandOutput | UpdatePbxOAuth2ClientCommandOutput;
35
45
  /**
36
46
  * @public
37
47
  */