@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
@@ -55,6 +55,8 @@ declare const DeletePbxAclGroupCommand_base: {
55
55
  *
56
56
  * @throws {@link WmsUnauthorizedException} (client fault)
57
57
  *
58
+ * @throws {@link WmsForbiddenException} (client fault)
59
+ *
58
60
  * @throws {@link WmsApiServiceException}
59
61
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
60
62
  *
@@ -55,6 +55,8 @@ declare const DeletePbxColleagueCommand_base: {
55
55
  *
56
56
  * @throws {@link WmsUnauthorizedException} (client fault)
57
57
  *
58
+ * @throws {@link WmsForbiddenException} (client fault)
59
+ *
58
60
  * @throws {@link WmsApiServiceException}
59
61
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
60
62
  *
@@ -56,6 +56,8 @@ declare const DeletePbxOAuth2ClientCommand_base: {
56
56
  *
57
57
  * @throws {@link WmsNotFoundException} (client fault)
58
58
  *
59
+ * @throws {@link WmsForbiddenException} (client fault)
60
+ *
59
61
  * @throws {@link WmsApiServiceException}
60
62
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
61
63
  *
@@ -77,6 +77,8 @@ declare const GetColleagueByIdCommand_base: {
77
77
  *
78
78
  * @throws {@link WmsUnauthorizedException} (client fault)
79
79
  *
80
+ * @throws {@link WmsForbiddenException} (client fault)
81
+ *
80
82
  * @throws {@link WmsApiServiceException}
81
83
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
82
84
  *
@@ -81,6 +81,8 @@ declare const GetPbxAclGroupsPermissionsCommand_base: {
81
81
  *
82
82
  * @throws {@link WmsUnauthorizedException} (client fault)
83
83
  *
84
+ * @throws {@link WmsForbiddenException} (client fault)
85
+ *
84
86
  * @throws {@link WmsApiServiceException}
85
87
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
86
88
  *
@@ -92,6 +92,8 @@ declare const GetPbxCallGroupsCommand_base: {
92
92
  *
93
93
  * @throws {@link WmsUnauthorizedException} (client fault)
94
94
  *
95
+ * @throws {@link WmsForbiddenException} (client fault)
96
+ *
95
97
  * @throws {@link WmsApiServiceException}
96
98
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
97
99
  *
@@ -121,6 +121,8 @@ declare const GetPbxColleaguesCommand_base: {
121
121
  *
122
122
  * @throws {@link WmsUnauthorizedException} (client fault)
123
123
  *
124
+ * @throws {@link WmsForbiddenException} (client fault)
125
+ *
124
126
  * @throws {@link WmsApiServiceException}
125
127
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
126
128
  *
@@ -49,7 +49,6 @@ declare const GetPbxOAuth2ClientsCommand_base: {
49
49
  * // ],
50
50
  * // secret: "STRING_VALUE", // required
51
51
  * // created: Number("int"), // required
52
- * // expireTime: Number("int"), // required
53
52
  * // },
54
53
  * // ],
55
54
  * // },
@@ -65,6 +64,8 @@ declare const GetPbxOAuth2ClientsCommand_base: {
65
64
  *
66
65
  * @throws {@link WmsUnauthorizedException} (client fault)
67
66
  *
67
+ * @throws {@link WmsForbiddenException} (client fault)
68
+ *
68
69
  * @throws {@link WmsApiServiceException}
69
70
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
70
71
  *
@@ -66,6 +66,8 @@ declare const GetPbxesCommand_base: {
66
66
  *
67
67
  * @throws {@link WmsUnauthorizedException} (client fault)
68
68
  *
69
+ * @throws {@link WmsForbiddenException} (client fault)
70
+ *
69
71
  * @throws {@link WmsApiServiceException}
70
72
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
73
  *
@@ -116,6 +116,8 @@ declare const GetPersonalInfoCommand_base: {
116
116
  *
117
117
  * @throws {@link WmsUnauthorizedException} (client fault)
118
118
  *
119
+ * @throws {@link WmsForbiddenException} (client fault)
120
+ *
119
121
  * @throws {@link WmsApiServiceException}
120
122
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
121
123
  *
@@ -0,0 +1,86 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { ListUserActiveCallsInput, ListUserActiveCallsOutput } 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 ListUserActiveCallsCommand}.
14
+ */
15
+ export interface ListUserActiveCallsCommandInput extends ListUserActiveCallsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListUserActiveCallsCommand}.
21
+ */
22
+ export interface ListUserActiveCallsCommandOutput extends ListUserActiveCallsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListUserActiveCallsCommand_base: {
25
+ new (input: ListUserActiveCallsCommandInput): import("@smithy/smithy-client").CommandImpl<ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListUserActiveCallsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListUserActiveCallsCommandInput, ListUserActiveCallsCommandOutput, WmsApiClientResolvedConfig, 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 { WmsApiClient, ListUserActiveCallsCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, ListUserActiveCallsCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // ListUserActiveCallsInput
39
+ * user: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListUserActiveCallsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListUserActiveCallsOutput
44
+ * // calls: [ // Calls // required
45
+ * // { // Call
46
+ * // sipCallId: "STRING_VALUE", // required
47
+ * // callerNumber: "STRING_VALUE", // required
48
+ * // callerName: "STRING_VALUE",
49
+ * // calleeNumber: "STRING_VALUE", // required
50
+ * // calleeName: "STRING_VALUE",
51
+ * // state: "STRING_VALUE", // required
52
+ * // duration: Number("int"), // required
53
+ * // },
54
+ * // ],
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListUserActiveCallsCommandInput - {@link ListUserActiveCallsCommandInput}
60
+ * @returns {@link ListUserActiveCallsCommandOutput}
61
+ * @see {@link ListUserActiveCallsCommandInput} for command's `input` shape.
62
+ * @see {@link ListUserActiveCallsCommandOutput} for command's `response` shape.
63
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
64
+ *
65
+ * @throws {@link WmsUnauthorizedException} (client fault)
66
+ *
67
+ * @throws {@link WmsForbiddenException} (client fault)
68
+ *
69
+ * @throws {@link WmsApiServiceException}
70
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
+ *
72
+ *
73
+ */
74
+ export declare class ListUserActiveCallsCommand extends ListUserActiveCallsCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: ListUserActiveCallsInput;
79
+ output: ListUserActiveCallsOutput;
80
+ };
81
+ sdk: {
82
+ input: ListUserActiveCallsCommandInput;
83
+ output: ListUserActiveCallsCommandOutput;
84
+ };
85
+ };
86
+ }
@@ -0,0 +1,87 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { ListUserDevicesInput, ListUserDevicesOutput } 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 ListUserDevicesCommand}.
14
+ */
15
+ export interface ListUserDevicesCommandInput extends ListUserDevicesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListUserDevicesCommand}.
21
+ */
22
+ export interface ListUserDevicesCommandOutput extends ListUserDevicesOutput, __MetadataBearer {
23
+ }
24
+ declare const ListUserDevicesCommand_base: {
25
+ new (input: ListUserDevicesCommandInput): import("@smithy/smithy-client").CommandImpl<ListUserDevicesCommandInput, ListUserDevicesCommandOutput, WmsApiClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListUserDevicesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListUserDevicesCommandInput, ListUserDevicesCommandOutput, WmsApiClientResolvedConfig, 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 { WmsApiClient, ListUserDevicesCommand } from "@wildix/wms-api-client"; // ES Modules import
36
+ * // const { WmsApiClient, ListUserDevicesCommand } = require("@wildix/wms-api-client"); // CommonJS import
37
+ * const client = new WmsApiClient(config);
38
+ * const input = { // ListUserDevicesInput
39
+ * user: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListUserDevicesCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListUserDevicesOutput
44
+ * // devices: [ // DevicesList // required
45
+ * // { // UserDevice
46
+ * // userAgent: "STRING_VALUE", // required
47
+ * // contact: "STRING_VALUE", // required
48
+ * // active: true || false, // required
49
+ * // },
50
+ * // ],
51
+ * // activeDevice: {
52
+ * // userAgent: "STRING_VALUE", // required
53
+ * // contact: "STRING_VALUE", // required
54
+ * // active: true || false, // required
55
+ * // },
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListUserDevicesCommandInput - {@link ListUserDevicesCommandInput}
61
+ * @returns {@link ListUserDevicesCommandOutput}
62
+ * @see {@link ListUserDevicesCommandInput} for command's `input` shape.
63
+ * @see {@link ListUserDevicesCommandOutput} for command's `response` shape.
64
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
65
+ *
66
+ * @throws {@link WmsUnauthorizedException} (client fault)
67
+ *
68
+ * @throws {@link WmsForbiddenException} (client fault)
69
+ *
70
+ * @throws {@link WmsApiServiceException}
71
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
72
+ *
73
+ *
74
+ */
75
+ export declare class ListUserDevicesCommand extends ListUserDevicesCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: ListUserDevicesInput;
80
+ output: ListUserDevicesOutput;
81
+ };
82
+ sdk: {
83
+ input: ListUserDevicesCommandInput;
84
+ output: ListUserDevicesCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -66,6 +66,8 @@ declare const NotificationsCommand_base: {
66
66
  *
67
67
  * @throws {@link WmsUnauthorizedException} (client fault)
68
68
  *
69
+ * @throws {@link WmsForbiddenException} (client fault)
70
+ *
69
71
  * @throws {@link WmsApiServiceException}
70
72
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
73
  *
@@ -56,6 +56,8 @@ declare const OriginateCallCommand_base: {
56
56
  *
57
57
  * @throws {@link WmsUnauthorizedException} (client fault)
58
58
  *
59
+ * @throws {@link WmsForbiddenException} (client fault)
60
+ *
59
61
  * @throws {@link WmsApiServiceException}
60
62
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
61
63
  *
@@ -65,6 +65,8 @@ declare const OriginateCommand_base: {
65
65
  *
66
66
  * @throws {@link WmsUnauthorizedException} (client fault)
67
67
  *
68
+ * @throws {@link WmsForbiddenException} (client fault)
69
+ *
68
70
  * @throws {@link WmsApiServiceException}
69
71
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
70
72
  *
@@ -52,6 +52,8 @@ declare const ReloadBroadcastsCommand_base: {
52
52
  *
53
53
  * @throws {@link WmsUnauthorizedException} (client fault)
54
54
  *
55
+ * @throws {@link WmsForbiddenException} (client fault)
56
+ *
55
57
  * @throws {@link WmsApiServiceException}
56
58
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
57
59
  *
@@ -74,6 +74,8 @@ declare const UpdatePbxOAuth2ClientCommand_base: {
74
74
  *
75
75
  * @throws {@link WmsValidationException} (client fault)
76
76
  *
77
+ * @throws {@link WmsForbiddenException} (client fault)
78
+ *
77
79
  * @throws {@link WmsApiServiceException}
78
80
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
79
81
  *
@@ -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";