@wildix/wms-api-client 1.0.3 → 1.0.4
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.
- package/dist-cjs/WmsApi.js +8 -0
- package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +41 -0
- package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +41 -0
- package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +41 -0
- package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +41 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +48 -1
- package/dist-cjs/protocols/Aws_restJson1.js +313 -18
- package/dist-es/WmsApi.js +8 -0
- package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +37 -0
- package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +37 -0
- package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +37 -0
- package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +37 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +44 -0
- package/dist-es/protocols/Aws_restJson1.js +305 -18
- package/dist-types/WmsApi.d.ts +28 -0
- package/dist-types/WmsApiClient.d.ts +6 -2
- package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +91 -0
- package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +76 -0
- package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
- package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +84 -0
- package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +94 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +150 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- 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. Only for root admin.
|
|
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
|
+
}
|
|
@@ -66,6 +66,8 @@ export interface GetPbxAclGroupsPermissionsCommandOutput extends GetPbxAclGroups
|
|
|
66
66
|
* @see {@link GetPbxAclGroupsPermissionsCommandOutput} for command's `response` shape.
|
|
67
67
|
* @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
|
|
68
68
|
*
|
|
69
|
+
* @throws {@link WmsUnauthorizedException} (client fault)
|
|
70
|
+
*
|
|
69
71
|
* @throws {@link WmsApiServiceException}
|
|
70
72
|
* <p>Base exception class for all service exceptions from WmsApi service.</p>
|
|
71
73
|
*
|
|
@@ -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. Only for root admin.
|
|
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. Only for root admin.
|
|
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,77 @@ 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
|
+
}
|
|
69
169
|
/**
|
|
70
170
|
* @public
|
|
71
171
|
*/
|
|
@@ -269,3 +369,53 @@ export interface GetPbxColleaguesOutput {
|
|
|
269
369
|
type: ResponseType | string;
|
|
270
370
|
result: GetPbxColleaguesResult;
|
|
271
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
export interface PbxOAuth2ClientListProjection {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
redirectUri: (string)[];
|
|
379
|
+
secret: string;
|
|
380
|
+
created: number;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @public
|
|
384
|
+
*/
|
|
385
|
+
export interface GetPbxOAuth2ClientsResult {
|
|
386
|
+
records: (PbxOAuth2ClientListProjection)[];
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @public
|
|
390
|
+
*/
|
|
391
|
+
export interface GetPbxOAuth2ClientsOutput {
|
|
392
|
+
type: ResponseType | string;
|
|
393
|
+
result: GetPbxOAuth2ClientsResult;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @public
|
|
397
|
+
*/
|
|
398
|
+
export interface UpdatePbxOAuth2ClientInput {
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
* Client ID.
|
|
402
|
+
*/
|
|
403
|
+
id: string;
|
|
404
|
+
/**
|
|
405
|
+
* @public
|
|
406
|
+
* A name of OAuth2 client.
|
|
407
|
+
*/
|
|
408
|
+
name: string;
|
|
409
|
+
/**
|
|
410
|
+
* @public
|
|
411
|
+
* Array of redirect URLs, allowed for this client.
|
|
412
|
+
*/
|
|
413
|
+
redirectUri: (string)[];
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @public
|
|
417
|
+
*/
|
|
418
|
+
export interface UpdatePbxOAuth2ClientOutput {
|
|
419
|
+
type: ResponseType | string;
|
|
420
|
+
result: PbxOAuth2Client;
|
|
421
|
+
}
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wms-api-client",
|
|
3
3
|
"description": "@wildix/wms-api-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|