@wildix/wms-api-client 1.0.1 → 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.
Files changed (31) hide show
  1. package/dist-cjs/WmsApi.js +10 -0
  2. package/dist-cjs/commands/CreatePbxOAuth2ClientCommand.js +41 -0
  3. package/dist-cjs/commands/DeletePbxOAuth2ClientCommand.js +41 -0
  4. package/dist-cjs/commands/GetPbxCallGroupsCommand.js +41 -0
  5. package/dist-cjs/commands/GetPbxOAuth2ClientsCommand.js +41 -0
  6. package/dist-cjs/commands/UpdatePbxOAuth2ClientCommand.js +41 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/models/models_0.js +48 -1
  9. package/dist-cjs/protocols/Aws_restJson1.js +354 -11
  10. package/dist-es/WmsApi.js +10 -0
  11. package/dist-es/commands/CreatePbxOAuth2ClientCommand.js +37 -0
  12. package/dist-es/commands/DeletePbxOAuth2ClientCommand.js +37 -0
  13. package/dist-es/commands/GetPbxCallGroupsCommand.js +37 -0
  14. package/dist-es/commands/GetPbxOAuth2ClientsCommand.js +37 -0
  15. package/dist-es/commands/UpdatePbxOAuth2ClientCommand.js +37 -0
  16. package/dist-es/commands/index.js +5 -0
  17. package/dist-es/models/models_0.js +44 -0
  18. package/dist-es/protocols/Aws_restJson1.js +344 -11
  19. package/dist-types/WmsApi.d.ts +35 -0
  20. package/dist-types/WmsApiClient.d.ts +7 -2
  21. package/dist-types/commands/CreatePbxOAuth2ClientCommand.d.ts +91 -0
  22. package/dist-types/commands/DeletePbxOAuth2ClientCommand.d.ts +76 -0
  23. package/dist-types/commands/GetPbxAclGroupsPermissionsCommand.d.ts +2 -0
  24. package/dist-types/commands/GetPbxCallGroupsCommand.d.ts +112 -0
  25. package/dist-types/commands/GetPbxColleaguesCommand.d.ts +2 -0
  26. package/dist-types/commands/GetPbxOAuth2ClientsCommand.d.ts +84 -0
  27. package/dist-types/commands/UpdatePbxOAuth2ClientCommand.d.ts +94 -0
  28. package/dist-types/commands/index.d.ts +5 -0
  29. package/dist-types/models/models_0.d.ts +213 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  31. package/package.json +3 -3
@@ -0,0 +1,112 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WmsApiClientResolvedConfig } from "../WmsApiClient";
2
+ import { GetPbxCallGroupsOutput } 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 GetPbxCallGroupsCommand}.
13
+ */
14
+ export interface GetPbxCallGroupsCommandInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetPbxCallGroupsCommand}.
20
+ */
21
+ export interface GetPbxCallGroupsCommandOutput extends GetPbxCallGroupsOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ * Get the list of all available Call groups 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, GetPbxCallGroupsCommand } from "@wildix/wms-api-client"; // ES Modules import
30
+ * // const { WmsApiClient, GetPbxCallGroupsCommand } = require("@wildix/wms-api-client"); // CommonJS import
31
+ * const client = new WmsApiClient(config);
32
+ * const input = {};
33
+ * const command = new GetPbxCallGroupsCommand(input);
34
+ * const response = await client.send(command);
35
+ * // { // GetPbxCallGroupsOutput
36
+ * // type: "result" || "error", // required
37
+ * // result: { // GetPbxCallGroupsResult
38
+ * // records: [ // PbxCallGroupList // required
39
+ * // { // PbxCallGroup
40
+ * // id: Number("int"), // required
41
+ * // title: "STRING_VALUE", // required
42
+ * // members: [ // PbxCallGroupMembers // required
43
+ * // "STRING_VALUE",
44
+ * // ],
45
+ * // settings: { // PbxCallGroupSettings
46
+ * // queueManager: "STRING_VALUE",
47
+ * // cid: "STRING_VALUE",
48
+ * // autoPause: "STRING_VALUE",
49
+ * // autoPauseTime: Number("int"),
50
+ * // autoPauseDelay: Number("int"),
51
+ * // autoPauseBusy: true || false,
52
+ * // autoPauseUnAvail: true || false,
53
+ * // maxLen: Number("int"),
54
+ * // retry: Number("int"),
55
+ * // ringInUse: true || false,
56
+ * // strategy: "STRING_VALUE",
57
+ * // defaultPriority: Number("int"),
58
+ * // timeout: Number("int"),
59
+ * // weight: Number("int"),
60
+ * // wrapUpTime: Number("int"),
61
+ * // rule: "STRING_VALUE",
62
+ * // announce: { // PbxCallGroupAnnounce
63
+ * // frequency: Number("int"),
64
+ * // holdTime: "STRING_VALUE",
65
+ * // roundSeconds: Number("int"),
66
+ * // },
67
+ * // exitAllMembers: { // PbxCallGroupExitAllMembers
68
+ * // busy: true || false,
69
+ * // paused: true || false,
70
+ * // ringing: true || false,
71
+ * // },
72
+ * // smsNumber: "STRING_VALUE",
73
+ * // },
74
+ * // },
75
+ * // ],
76
+ * // total: Number("int"), // required
77
+ * // },
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param GetPbxCallGroupsCommandInput - {@link GetPbxCallGroupsCommandInput}
83
+ * @returns {@link GetPbxCallGroupsCommandOutput}
84
+ * @see {@link GetPbxCallGroupsCommandInput} for command's `input` shape.
85
+ * @see {@link GetPbxCallGroupsCommandOutput} for command's `response` shape.
86
+ * @see {@link WmsApiClientResolvedConfig | config} for WmsApiClient's `config` shape.
87
+ *
88
+ * @throws {@link WmsUnauthorizedException} (client fault)
89
+ *
90
+ * @throws {@link WmsApiServiceException}
91
+ * <p>Base exception class for all service exceptions from WmsApi service.</p>
92
+ *
93
+ */
94
+ export declare class GetPbxCallGroupsCommand extends $Command<GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput, WmsApiClientResolvedConfig> {
95
+ readonly input: GetPbxCallGroupsCommandInput;
96
+ /**
97
+ * @public
98
+ */
99
+ constructor(input: GetPbxCallGroupsCommandInput);
100
+ /**
101
+ * @internal
102
+ */
103
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WmsApiClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput>;
104
+ /**
105
+ * @internal
106
+ */
107
+ private serialize;
108
+ /**
109
+ * @internal
110
+ */
111
+ private deserialize;
112
+ }
@@ -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,2 +1,7 @@
1
+ export * from "./CreatePbxOAuth2ClientCommand";
2
+ export * from "./DeletePbxOAuth2ClientCommand";
1
3
  export * from "./GetPbxAclGroupsPermissionsCommand";
4
+ export * from "./GetPbxCallGroupsCommand";
2
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
  */
@@ -73,6 +173,69 @@ export interface GetPbxAclGroupsPermissionsOutput {
73
173
  type: ResponseType | string;
74
174
  result: (AclGroupPermisson)[];
75
175
  }
176
+ /**
177
+ * @public
178
+ */
179
+ export interface PbxCallGroupAnnounce {
180
+ frequency?: number;
181
+ holdTime?: string;
182
+ roundSeconds?: number;
183
+ }
184
+ /**
185
+ * @public
186
+ */
187
+ export interface PbxCallGroupExitAllMembers {
188
+ busy?: boolean;
189
+ paused?: boolean;
190
+ ringing?: boolean;
191
+ }
192
+ /**
193
+ * @public
194
+ */
195
+ export interface PbxCallGroupSettings {
196
+ queueManager?: string;
197
+ cid?: string;
198
+ autoPause?: string;
199
+ autoPauseTime?: number;
200
+ autoPauseDelay?: number;
201
+ autoPauseBusy?: boolean;
202
+ autoPauseUnAvail?: boolean;
203
+ maxLen?: number;
204
+ retry?: number;
205
+ ringInUse?: boolean;
206
+ strategy?: string;
207
+ defaultPriority?: number;
208
+ timeout?: number;
209
+ weight?: number;
210
+ wrapUpTime?: number;
211
+ rule?: string;
212
+ announce?: PbxCallGroupAnnounce;
213
+ exitAllMembers?: PbxCallGroupExitAllMembers;
214
+ smsNumber?: string;
215
+ }
216
+ /**
217
+ * @public
218
+ */
219
+ export interface PbxCallGroup {
220
+ id: number;
221
+ title: string;
222
+ members: (string)[];
223
+ settings: PbxCallGroupSettings;
224
+ }
225
+ /**
226
+ * @public
227
+ */
228
+ export interface GetPbxCallGroupsResult {
229
+ records: (PbxCallGroup)[];
230
+ total: number;
231
+ }
232
+ /**
233
+ * @public
234
+ */
235
+ export interface GetPbxCallGroupsOutput {
236
+ type: ResponseType | string;
237
+ result: GetPbxCallGroupsResult;
238
+ }
76
239
  /**
77
240
  * @public
78
241
  * @enum
@@ -206,3 +369,53 @@ export interface GetPbxColleaguesOutput {
206
369
  type: ResponseType | string;
207
370
  result: GetPbxColleaguesResult;
208
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,20 +1,65 @@
1
+ import { CreatePbxOAuth2ClientCommandInput, CreatePbxOAuth2ClientCommandOutput } from "../commands/CreatePbxOAuth2ClientCommand";
2
+ import { DeletePbxOAuth2ClientCommandInput, DeletePbxOAuth2ClientCommandOutput } from "../commands/DeletePbxOAuth2ClientCommand";
1
3
  import { GetPbxAclGroupsPermissionsCommandInput, GetPbxAclGroupsPermissionsCommandOutput } from "../commands/GetPbxAclGroupsPermissionsCommand";
4
+ import { GetPbxCallGroupsCommandInput, GetPbxCallGroupsCommandOutput } from "../commands/GetPbxCallGroupsCommand";
2
5
  import { GetPbxColleaguesCommandInput, GetPbxColleaguesCommandOutput } from "../commands/GetPbxColleaguesCommand";
6
+ import { GetPbxOAuth2ClientsCommandInput, GetPbxOAuth2ClientsCommandOutput } from "../commands/GetPbxOAuth2ClientsCommand";
7
+ import { UpdatePbxOAuth2ClientCommandInput, UpdatePbxOAuth2ClientCommandOutput } from "../commands/UpdatePbxOAuth2ClientCommand";
3
8
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
4
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>;
5
18
  /**
6
19
  * serializeAws_restJson1GetPbxAclGroupsPermissionsCommand
7
20
  */
8
21
  export declare const se_GetPbxAclGroupsPermissionsCommand: (input: GetPbxAclGroupsPermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ /**
23
+ * serializeAws_restJson1GetPbxCallGroupsCommand
24
+ */
25
+ export declare const se_GetPbxCallGroupsCommand: (input: GetPbxCallGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
26
  /**
10
27
  * serializeAws_restJson1GetPbxColleaguesCommand
11
28
  */
12
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>;
13
46
  /**
14
47
  * deserializeAws_restJson1GetPbxAclGroupsPermissionsCommand
15
48
  */
16
49
  export declare const de_GetPbxAclGroupsPermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxAclGroupsPermissionsCommandOutput>;
50
+ /**
51
+ * deserializeAws_restJson1GetPbxCallGroupsCommand
52
+ */
53
+ export declare const de_GetPbxCallGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPbxCallGroupsCommandOutput>;
17
54
  /**
18
55
  * deserializeAws_restJson1GetPbxColleaguesCommand
19
56
  */
20
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.1",
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",
@@ -42,7 +42,7 @@
42
42
  "@smithy/util-defaults-mode-node": "^2.0.15",
43
43
  "@smithy/util-retry": "^2.0.3",
44
44
  "@smithy/util-utf8": "^2.0.0",
45
- "@wildix/smithy-utils": "latest"
45
+ "@wildix/smithy-utils": "^1.0.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node14": "1.0.3",
@@ -74,4 +74,4 @@
74
74
  "react-native": {
75
75
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
76
76
  }
77
- }
77
+ }