@wildix/wms-api-client 1.0.3 → 1.0.5

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 (33) hide show
  1. package/dist-cjs/WmsApi.js +8 -0
  2. package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +41 -0
  3. package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +41 -0
  4. package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +41 -0
  5. package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +41 -0
  6. package/dist-cjs/commands/index.js +4 -0
  7. package/dist-cjs/models/models_0.js +48 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +317 -20
  9. package/dist-es/WmsApi.js +8 -0
  10. package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +37 -0
  11. package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +37 -0
  12. package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +37 -0
  13. package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +37 -0
  14. package/dist-es/commands/index.js +4 -0
  15. package/dist-es/models/models_0.js +44 -0
  16. package/dist-es/protocols/Aws_restJson1.js +309 -20
  17. package/dist-types/WmsApi.d.ts +28 -0
  18. package/dist-types/WmsApiClient.d.ts +6 -2
  19. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +91 -0
  20. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +76 -0
  21. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +8 -3
  22. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -0
  23. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
  24. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +84 -0
  25. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +94 -0
  26. package/dist-types/commands/index.d.ts +4 -0
  27. package/dist-types/models/models_0.d.ts +165 -0
  28. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  29. package/dist-types/runtimeConfig.browser.d.ts +3 -3
  30. package/dist-types/runtimeConfig.d.ts +3 -3
  31. package/dist-types/runtimeConfig.native.d.ts +3 -3
  32. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  33. package/package.json +1 -1
@@ -0,0 +1,91 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { CreatePbxOAuth2ClientInput, CreatePbxOAuth2ClientOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CreatePbxOAuth2ClientCommand}.
13
+ */
14
+ export interface CreatePbxOAuth2ClientCommandInput extends CreatePbxOAuth2ClientInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CreatePbxOAuth2ClientCommand}.
20
+ */
21
+ export interface CreatePbxOAuth2ClientCommandOutput extends CreatePbxOAuth2ClientOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ * Create new OAuth2 client in the PBX.
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { WmsApiClient, CreatePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, CreatePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = { // CreatePbxOAuth2ClientInput
33
+ * name: "STRING_VALUE", // required
34
+ * redirectUri: [ // PbxOAuth2RedirectUrls // required
35
+ * "STRING_VALUE",
36
+ * ],
37
+ * };
38
+ * const command = new CreatePbxOAuth2ClientCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // CreatePbxOAuth2ClientOutput
41
+ * // type: "result" || "error", // required
42
+ * // result: { // PbxOAuth2Client
43
+ * // id: "STRING_VALUE", // required
44
+ * // name: "STRING_VALUE", // required
45
+ * // redirectUri: [ // PbxOAuth2RedirectUrls // required
46
+ * // "STRING_VALUE",
47
+ * // ],
48
+ * // secret: "STRING_VALUE", // required
49
+ * // created: Number("int"), // required
50
+ * // origins: [ // PbxOAuth2Origins // required
51
+ * // "STRING_VALUE",
52
+ * // ],
53
+ * // accessTokenTtl: Number("int"), // required
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param CreatePbxOAuth2ClientCommandInput - {@link CreatePbxOAuth2ClientCommandInput}
60
+ * @returns {@link CreatePbxOAuth2ClientCommandOutput}
61
+ * @see {@link CreatePbxOAuth2ClientCommandInput} for command's `input` shape.
62
+ * @see {@link CreatePbxOAuth2ClientCommandOutput} 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 WmsValidationException} (client fault)
68
+ *
69
+ * @throws {@link WmsApiServiceException}
70
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
+ *
72
+ */
73
+ export declare class CreatePbxOAuth2ClientCommand extends $Command<CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput, WmsApiClientResolvedConfig> {
74
+ readonly input: CreatePbxOAuth2ClientCommandInput;
75
+ /**
76
+ * @public
77
+ */
78
+ constructor(input: CreatePbxOAuth2ClientCommandInput);
79
+ /**
80
+ * @internal
81
+ */
82
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput>;
83
+ /**
84
+ * @internal
85
+ */
86
+ private serialize;
87
+ /**
88
+ * @internal
89
+ */
90
+ private deserialize;
91
+ }
@@ -0,0 +1,76 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { DeletePbxOAuth2ClientInput, DeletePbxOAuth2ClientOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeletePbxOAuth2ClientCommand}.
13
+ */
14
+ export interface DeletePbxOAuth2ClientCommandInput extends DeletePbxOAuth2ClientInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeletePbxOAuth2ClientCommand}.
20
+ */
21
+ export interface DeletePbxOAuth2ClientCommandOutput extends DeletePbxOAuth2ClientOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ * Update OAuth2 client in the PBX.
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { WmsApiClient, DeletePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, DeletePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = { // DeletePbxOAuth2ClientInput
33
+ * id: "STRING_VALUE", // required
34
+ * };
35
+ * const command = new DeletePbxOAuth2ClientCommand(input);
36
+ * const response = await client.send(command);
37
+ * // { // DeletePbxOAuth2ClientOutput
38
+ * // type: "result" || "error", // required
39
+ * // result: "STRING_VALUE", // required
40
+ * // };
41
+ *
42
+ * ```
43
+ *
44
+ * @param DeletePbxOAuth2ClientCommandInput - {@link DeletePbxOAuth2ClientCommandInput}
45
+ * @returns {@link DeletePbxOAuth2ClientCommandOutput}
46
+ * @see {@link DeletePbxOAuth2ClientCommandInput} for command's `input` shape.
47
+ * @see {@link DeletePbxOAuth2ClientCommandOutput} for command's `response` shape.
48
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
49
+ *
50
+ * @throws {@link WmsUnauthorizedException} (client fault)
51
+ *
52
+ * @throws {@link WmsNotFoundException} (client fault)
53
+ *
54
+ * @throws {@link WmsApiServiceException}
55
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
56
+ *
57
+ */
58
+ export declare class DeletePbxOAuth2ClientCommand extends $Command<DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput, WmsApiClientResolvedConfig> {
59
+ readonly input: DeletePbxOAuth2ClientCommandInput;
60
+ /**
61
+ * @public
62
+ */
63
+ constructor(input: DeletePbxOAuth2ClientCommandInput);
64
+ /**
65
+ * @internal
66
+ */
67
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput>;
68
+ /**
69
+ * @internal
70
+ */
71
+ private serialize;
72
+ /**
73
+ * @internal
74
+ */
75
+ private deserialize;
76
+ }
@@ -1,5 +1,5 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
- import { GetPbxAclGroupsPermissionsOutput } from "../models/models_0";
2
+ import { GetPbxAclGroupsPermissionsInput, GetPbxAclGroupsPermissionsOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -11,7 +11,7 @@ export { __MetadataBearer, $Command };
11
11
  *
12
12
  * The input for {@link GetPbxAclGroupsPermissionsCommand}.
13
13
  */
14
- export interface GetPbxAclGroupsPermissionsCommandInput {
14
+ export interface GetPbxAclGroupsPermissionsCommandInput extends GetPbxAclGroupsPermissionsInput {
15
15
  }
16
16
  /**
17
17
  * @public
@@ -29,7 +29,10 @@ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroups
29
29
  * import { WmsApiClient, GetPbxAclGroupsPermissionsCommand } from "@wildix/wms-api-client"; // ES Modules import
30
30
  * // const { WmsApiClient, GetPbxAclGroupsPermissionsCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
31
  * const client = new WmsApiClient(config);
32
- * const input = {};
32
+ * const input = { // GetPbxAclGroupsPermissionsInput
33
+ * groups: "STRING_VALUE",
34
+ * permissions: "STRING_VALUE",
35
+ * };
33
36
  * const command = new GetPbxAclGroupsPermissionsCommand(input);
34
37
  * const response = await client.send(command);
35
38
  * // { // GetPbxAclGroupsPermissionsOutput
@@ -66,6 +69,8 @@ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroups
66
69
  * @see {@link GetPbxAclGroupsPermissionsCommandOutput} for command's `response` shape.
67
70
  * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
68
71
  *
72
+ * @throws {@link WmsUnauthorizedException} (client fault)
73
+ *
69
74
  * @throws {@link WmsApiServiceException}
70
75
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
71
76
  *
@@ -85,6 +85,8 @@ export interface GetPbxCallGroupsCommandOutput extends GetPbxCallGroupsOutput, _
85
85
  * @see {@link GetPbxCallGroupsCommandOutput} for command's `response` shape.
86
86
  * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
87
87
  *
88
+ * @throws {@link WmsUnauthorizedException} (client fault)
89
+ *
88
90
  * @throws {@link WmsApiServiceException}
89
91
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
90
92
  *
@@ -113,6 +113,8 @@ export interface GetPbxColleaguesCommandOutput extends GetPbxColleaguesOutput, _
113
113
  * @see {@link GetPbxColleaguesCommandOutput} for command's `response` shape.
114
114
  * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
115
115
  *
116
+ * @throws {@link WmsUnauthorizedException} (client fault)
117
+ *
116
118
  * @throws {@link WmsApiServiceException}
117
119
  * <p>Base exception class for all service exceptions from WmsApi service.</p>
118
120
  *
@@ -0,0 +1,84 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { GetPbxOAuth2ClientsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetPbxOAuth2ClientsCommand}.
13
+ */
14
+ export interface GetPbxOAuth2ClientsCommandInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetPbxOAuth2ClientsCommand}.
20
+ */
21
+ export interface GetPbxOAuth2ClientsCommandOutput extends GetPbxOAuth2ClientsOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ * Get the list of all OAuth2 clients on the PBX.
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { WmsApiClient, GetPbxOAuth2ClientsCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, GetPbxOAuth2ClientsCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = {};
33
+ * const command = new GetPbxOAuth2ClientsCommand(input);
34
+ * const response = await client.send(command);
35
+ * // { // GetPbxOAuth2ClientsOutput
36
+ * // type: "result" || "error", // required
37
+ * // result: { // GetPbxOAuth2ClientsResult
38
+ * // records: [ // PbxOAuth2ClientList // required
39
+ * // { // PbxOAuth2ClientListProjection
40
+ * // id: "STRING_VALUE", // required
41
+ * // name: "STRING_VALUE", // required
42
+ * // redirectUri: [ // PbxOAuth2RedirectUrls // required
43
+ * // "STRING_VALUE",
44
+ * // ],
45
+ * // secret: "STRING_VALUE", // required
46
+ * // created: Number("int"), // required
47
+ * // },
48
+ * // ],
49
+ * // },
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param GetPbxOAuth2ClientsCommandInput - {@link GetPbxOAuth2ClientsCommandInput}
55
+ * @returns {@link GetPbxOAuth2ClientsCommandOutput}
56
+ * @see {@link GetPbxOAuth2ClientsCommandInput} for command's `input` shape.
57
+ * @see {@link GetPbxOAuth2ClientsCommandOutput} for command's `response` shape.
58
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
59
+ *
60
+ * @throws {@link WmsUnauthorizedException} (client fault)
61
+ *
62
+ * @throws {@link WmsApiServiceException}
63
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
64
+ *
65
+ */
66
+ export declare class GetPbxOAuth2ClientsCommand extends $Command<GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput, WmsApiClientResolvedConfig> {
67
+ readonly input: GetPbxOAuth2ClientsCommandInput;
68
+ /**
69
+ * @public
70
+ */
71
+ constructor(input: GetPbxOAuth2ClientsCommandInput);
72
+ /**
73
+ * @internal
74
+ */
75
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput>;
76
+ /**
77
+ * @internal
78
+ */
79
+ private serialize;
80
+ /**
81
+ * @internal
82
+ */
83
+ private deserialize;
84
+ }
@@ -0,0 +1,94 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { UpdatePbxOAuth2ClientInput, UpdatePbxOAuth2ClientOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UpdatePbxOAuth2ClientCommand}.
13
+ */
14
+ export interface UpdatePbxOAuth2ClientCommandInput extends UpdatePbxOAuth2ClientInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UpdatePbxOAuth2ClientCommand}.
20
+ */
21
+ export interface UpdatePbxOAuth2ClientCommandOutput extends UpdatePbxOAuth2ClientOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ * Update OAuth2 client in the PBX.
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { WmsApiClient, UpdatePbxOAuth2ClientCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, UpdatePbxOAuth2ClientCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = { // UpdatePbxOAuth2ClientInput
33
+ * id: "STRING_VALUE", // required
34
+ * name: "STRING_VALUE", // required
35
+ * redirectUri: [ // PbxOAuth2RedirectUrls // required
36
+ * "STRING_VALUE",
37
+ * ],
38
+ * };
39
+ * const command = new UpdatePbxOAuth2ClientCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // UpdatePbxOAuth2ClientOutput
42
+ * // type: "result" || "error", // required
43
+ * // result: { // PbxOAuth2Client
44
+ * // id: "STRING_VALUE", // required
45
+ * // name: "STRING_VALUE", // required
46
+ * // redirectUri: [ // PbxOAuth2RedirectUrls // required
47
+ * // "STRING_VALUE",
48
+ * // ],
49
+ * // secret: "STRING_VALUE", // required
50
+ * // created: Number("int"), // required
51
+ * // origins: [ // PbxOAuth2Origins // required
52
+ * // "STRING_VALUE",
53
+ * // ],
54
+ * // accessTokenTtl: Number("int"), // required
55
+ * // },
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param UpdatePbxOAuth2ClientCommandInput - {@link UpdatePbxOAuth2ClientCommandInput}
61
+ * @returns {@link UpdatePbxOAuth2ClientCommandOutput}
62
+ * @see {@link UpdatePbxOAuth2ClientCommandInput} for command's `input` shape.
63
+ * @see {@link UpdatePbxOAuth2ClientCommandOutput} 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 WmsNotFoundException} (client fault)
69
+ *
70
+ * @throws {@link WmsValidationException} (client fault)
71
+ *
72
+ * @throws {@link WmsApiServiceException}
73
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
74
+ *
75
+ */
76
+ export declare class UpdatePbxOAuth2ClientCommand extends $Command<UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput, WmsApiClientResolvedConfig> {
77
+ readonly input: UpdatePbxOAuth2ClientCommandInput;
78
+ /**
79
+ * @public
80
+ */
81
+ constructor(input: UpdatePbxOAuth2ClientCommandInput);
82
+ /**
83
+ * @internal
84
+ */
85
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput>;
86
+ /**
87
+ * @internal
88
+ */
89
+ private serialize;
90
+ /**
91
+ * @internal
92
+ */
93
+ private deserialize;
94
+ }
@@ -1,3 +1,7 @@
1
+ export * from "./CreatePbxOAuth2ClientCommand";
2
+ export * from "./DeletePbxOAuth2ClientCommand";
1
3
  export * from "./GetPbxAclGroupsPermissionsCommand";
2
4
  export * from "./GetPbxCallGroupsCommand";
3
5
  export * from "./GetPbxColleaguesCommand";
6
+ export * from "./GetPbxOAuth2ClientsCommand";
7
+ export * from "./UpdatePbxOAuth2ClientCommand";
@@ -1,3 +1,5 @@
1
+ import { WmsApiServiceException as __BaseException } from "./WmsApiServiceException";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
3
  /**
2
4
  * @public
3
5
  * @enum
@@ -54,6 +56,33 @@ export declare const PbxLicenseType: {
54
56
  * @public
55
57
  */
56
58
  export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
59
+ /**
60
+ * @public
61
+ */
62
+ export interface CreatePbxOAuth2ClientInput {
63
+ /**
64
+ * @public
65
+ * A name of OAuth2 client.
66
+ */
67
+ name: string;
68
+ /**
69
+ * @public
70
+ * Array of redirect URLs, allowed for this client.
71
+ */
72
+ redirectUri: (string)[];
73
+ }
74
+ /**
75
+ * @public
76
+ */
77
+ export interface PbxOAuth2Client {
78
+ id: string;
79
+ name: string;
80
+ redirectUri: (string)[];
81
+ secret: string;
82
+ created: number;
83
+ origins: (string)[];
84
+ accessTokenTtl: number;
85
+ }
57
86
  /**
58
87
  * @public
59
88
  * @enum
@@ -66,6 +95,92 @@ export declare const ResponseType: {
66
95
  * @public
67
96
  */
68
97
  export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
98
+ /**
99
+ * @public
100
+ */
101
+ export interface CreatePbxOAuth2ClientOutput {
102
+ type: ResponseType | string;
103
+ result: PbxOAuth2Client;
104
+ }
105
+ /**
106
+ * @public
107
+ */
108
+ export declare class WmsUnauthorizedException extends __BaseException {
109
+ readonly name: "WmsUnauthorizedException";
110
+ readonly $fault: "client";
111
+ type: ResponseType | string;
112
+ reason: string;
113
+ /**
114
+ * @internal
115
+ */
116
+ constructor(opts: __ExceptionOptionType<WmsUnauthorizedException, __BaseException>);
117
+ }
118
+ /**
119
+ * @public
120
+ */
121
+ export interface WmsErrorItem {
122
+ field: string;
123
+ reason: string;
124
+ }
125
+ /**
126
+ * @public
127
+ */
128
+ export declare class WmsValidationException extends __BaseException {
129
+ readonly name: "WmsValidationException";
130
+ readonly $fault: "client";
131
+ type: ResponseType | string;
132
+ reason: string;
133
+ errors: (WmsErrorItem)[];
134
+ /**
135
+ * @internal
136
+ */
137
+ constructor(opts: __ExceptionOptionType<WmsValidationException, __BaseException>);
138
+ }
139
+ /**
140
+ * @public
141
+ */
142
+ export interface DeletePbxOAuth2ClientInput {
143
+ /**
144
+ * @public
145
+ * Client ID.
146
+ */
147
+ id: string;
148
+ }
149
+ /**
150
+ * @public
151
+ */
152
+ export interface DeletePbxOAuth2ClientOutput {
153
+ type: ResponseType | string;
154
+ result: string;
155
+ }
156
+ /**
157
+ * @public
158
+ */
159
+ export declare class WmsNotFoundException extends __BaseException {
160
+ readonly name: "WmsNotFoundException";
161
+ readonly $fault: "client";
162
+ type: ResponseType | string;
163
+ reason: string;
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(opts: __ExceptionOptionType<WmsNotFoundException, __BaseException>);
168
+ }
169
+ /**
170
+ * @public
171
+ */
172
+ export interface GetPbxAclGroupsPermissionsInput {
173
+ /**
174
+ * @public
175
+ * User group(s) ID for filter result. Example: 12345 or 12345,67890,134711
176
+ */
177
+ groups?: string;
178
+ /**
179
+ * @public
180
+ * ACL permission(s) key for filter result. Example: SEE_CALL_RECORDINGS or CTI_ANALYTICS,SUPERVISION,SEE_ANALYTICS
181
+ */
182
+ permissions?: string;
183
+ }
69
184
  /**
70
185
  * @public
71
186
  */
@@ -269,3 +384,53 @@ export interface GetPbxColleaguesOutput {
269
384
  type: ResponseType | string;
270
385
  result: GetPbxColleaguesResult;
271
386
  }
387
+ /**
388
+ * @public
389
+ */
390
+ export interface PbxOAuth2ClientListProjection {
391
+ id: string;
392
+ name: string;
393
+ redirectUri: (string)[];
394
+ secret: string;
395
+ created: number;
396
+ }
397
+ /**
398
+ * @public
399
+ */
400
+ export interface GetPbxOAuth2ClientsResult {
401
+ records: (PbxOAuth2ClientListProjection)[];
402
+ }
403
+ /**
404
+ * @public
405
+ */
406
+ export interface GetPbxOAuth2ClientsOutput {
407
+ type: ResponseType | string;
408
+ result: GetPbxOAuth2ClientsResult;
409
+ }
410
+ /**
411
+ * @public
412
+ */
413
+ export interface UpdatePbxOAuth2ClientInput {
414
+ /**
415
+ * @public
416
+ * Client ID.
417
+ */
418
+ id: string;
419
+ /**
420
+ * @public
421
+ * A name of OAuth2 client.
422
+ */
423
+ name: string;
424
+ /**
425
+ * @public
426
+ * Array of redirect URLs, allowed for this client.
427
+ */
428
+ redirectUri: (string)[];
429
+ }
430
+ /**
431
+ * @public
432
+ */
433
+ export interface UpdatePbxOAuth2ClientOutput {
434
+ type: ResponseType | string;
435
+ result: PbxOAuth2Client;
436
+ }
@@ -1,8 +1,20 @@
1
+ import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
2
+ import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
1
3
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
2
4
  import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
3
5
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
6
+ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
7
+ import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
4
8
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
5
9
  import { SerdeContext as __SerdeContext } from "@smithy/types";
10
+ /**
11
+ * serializeAws_restJson1CreatePbxOAuth2ClientCommand
12
+ */
13
+ export declare const se_CreatePbxOAuth2ClientCommand: (input: CreatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ /**
15
+ * serializeAws_restJson1DeletePbxOAuth2ClientCommand
16
+ */
17
+ export declare const se_DeletePbxOAuth2ClientCommand: (input: DeletePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
6
18
  /**
7
19
  * serializeAws_restJson1GetPbxAclGroupsPermissionsCommand
8
20
  */
@@ -15,6 +27,22 @@ export declare const se_GetPbxCallGroupsCommand: (input: GetPbxCallGroupsCommand
15
27
  * serializeAws_restJson1GetPbxColleaguesCommand
16
28
  */
17
29
  export declare const se_GetPbxColleaguesCommand: (input: GetPbxColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ /**
31
+ * serializeAws_restJson1GetPbxOAuth2ClientsCommand
32
+ */
33
+ export declare const se_GetPbxOAuth2ClientsCommand: (input: GetPbxOAuth2ClientsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_restJson1UpdatePbxOAuth2ClientCommand
36
+ */
37
+ export declare const se_UpdatePbxOAuth2ClientCommand: (input: UpdatePbxOAuth2ClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * deserializeAws_restJson1CreatePbxOAuth2ClientCommand
40
+ */
41
+ export declare const de_CreatePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePbxOAuth2ClientCommandOutput>;
42
+ /**
43
+ * deserializeAws_restJson1DeletePbxOAuth2ClientCommand
44
+ */
45
+ export declare const de_DeletePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePbxOAuth2ClientCommandOutput>;
18
46
  /**
19
47
  * deserializeAws_restJson1GetPbxAclGroupsPermissionsCommand
20
48
  */
@@ -27,3 +55,11 @@ export declare const de_GetPbxCallGroupsCommand: (output: __HttpResponse, contex
27
55
  * deserializeAws_restJson1GetPbxColleaguesCommand
28
56
  */
29
57
  export declare const de_GetPbxColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxColleaguesCommandOutput>;
58
+ /**
59
+ * deserializeAws_restJson1GetPbxOAuth2ClientsCommand
60
+ */
61
+ export declare const de_GetPbxOAuth2ClientsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxOAuth2ClientsCommandOutput>;
62
+ /**
63
+ * deserializeAws_restJson1UpdatePbxOAuth2ClientCommand
64
+ */
65
+ export declare const de_UpdatePbxOAuth2ClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePbxOAuth2ClientCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  maxAttempts: number | import("@smithy/types").Provider<number>;
11
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
11
+ requestHandler: ((import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> | Record<string, unknown> | import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/fetch-http-handler").FetchHttpHandlerOptions) & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
12
12
  updateHttpClientConfig(key: never, value: never): void;
13
13
  httpHandlerConfigs(): {};
14
14
  }) | RequestHandler;
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: WmsApiClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];