@wildix/wim-tools-client 4.0.1 → 4.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/Tools.js +25 -1
- package/dist-cjs/ToolsClient.js +2 -0
- package/dist-cjs/commands/CreateConnectorCommand.js +20 -0
- package/dist-cjs/commands/DeleteConnectorCommand.js +20 -0
- package/dist-cjs/commands/ExecuteConnectorCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorDefinitionCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +20 -0
- package/dist-cjs/commands/ResolveConnectorConfigurationCommand.js +20 -0
- package/dist-cjs/commands/UpdateConnectorCommand.js +20 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/enums.js +18 -7
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListConnectorDefinitionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListConnectorsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-cjs/schemas/schemas_0.js +340 -57
- package/dist-es/Tools.js +25 -1
- package/dist-es/ToolsClient.js +2 -0
- package/dist-es/commands/CreateConnectorCommand.js +16 -0
- package/dist-es/commands/DeleteConnectorCommand.js +16 -0
- package/dist-es/commands/ExecuteConnectorCommand.js +16 -0
- package/dist-es/commands/GetConnectorCommand.js +16 -0
- package/dist-es/commands/GetConnectorDefinitionCommand.js +16 -0
- package/dist-es/commands/ListConnectorDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListConnectorsCommand.js +16 -0
- package/dist-es/commands/ResolveConnectorConfigurationCommand.js +16 -0
- package/dist-es/commands/UpdateConnectorCommand.js +16 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +17 -6
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListConnectorDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/schemas/schemas_0.js +338 -55
- package/dist-types/Tools.d.ts +80 -1
- package/dist-types/ToolsClient.d.ts +11 -2
- package/dist-types/commands/CreateConnectorCommand.d.ts +123 -0
- package/dist-types/commands/CreateToolCommand.d.ts +43 -3
- package/dist-types/commands/DeleteConnectorCommand.d.ts +87 -0
- package/dist-types/commands/DeleteToolCommand.d.ts +1 -3
- package/dist-types/commands/DescribeToolsCommand.d.ts +5 -3
- package/dist-types/commands/DiscoverToolsCommand.d.ts +1 -3
- package/dist-types/commands/ExecuteConnectorCommand.d.ts +96 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +1 -3
- package/dist-types/commands/GetConnectorCommand.d.ts +108 -0
- package/dist-types/commands/GetConnectorDefinitionCommand.d.ts +152 -0
- package/dist-types/commands/GetToolCommand.d.ts +22 -3
- package/dist-types/commands/ListConnectorDefinitionsCommand.d.ts +156 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +112 -0
- package/dist-types/commands/ListToolsCommand.d.ts +22 -3
- package/dist-types/commands/ResolveConnectorConfigurationCommand.d.ts +102 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +124 -0
- package/dist-types/commands/UpdateToolCommand.d.ts +43 -3
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +40 -7
- package/dist-types/models/models_0.d.ts +816 -50
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListConnectorDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +41 -0
- package/package.json +1 -1
package/dist-es/Tools.js
CHANGED
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
|
|
2
3
|
import { CreateToolCommand, } from "./commands/CreateToolCommand";
|
|
4
|
+
import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
3
5
|
import { DeleteToolCommand, } from "./commands/DeleteToolCommand";
|
|
4
6
|
import { DescribeToolsCommand, } from "./commands/DescribeToolsCommand";
|
|
5
7
|
import { DiscoverToolsCommand, } from "./commands/DiscoverToolsCommand";
|
|
8
|
+
import { ExecuteConnectorCommand, } from "./commands/ExecuteConnectorCommand";
|
|
6
9
|
import { ExecuteToolCommand, } from "./commands/ExecuteToolCommand";
|
|
10
|
+
import { GetConnectorCommand, } from "./commands/GetConnectorCommand";
|
|
11
|
+
import { GetConnectorDefinitionCommand, } from "./commands/GetConnectorDefinitionCommand";
|
|
7
12
|
import { GetToolCommand } from "./commands/GetToolCommand";
|
|
13
|
+
import { ListConnectorDefinitionsCommand, } from "./commands/ListConnectorDefinitionsCommand";
|
|
14
|
+
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
8
15
|
import { ListToolsCommand } from "./commands/ListToolsCommand";
|
|
16
|
+
import { ResolveConnectorConfigurationCommand, } from "./commands/ResolveConnectorConfigurationCommand";
|
|
17
|
+
import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
|
|
9
18
|
import { UpdateToolCommand, } from "./commands/UpdateToolCommand";
|
|
19
|
+
import { paginateListConnectorDefinitions } from "./pagination/ListConnectorDefinitionsPaginator";
|
|
20
|
+
import { paginateListConnectors } from "./pagination/ListConnectorsPaginator";
|
|
10
21
|
import { ToolsClient } from "./ToolsClient";
|
|
11
22
|
const commands = {
|
|
23
|
+
CreateConnectorCommand,
|
|
12
24
|
CreateToolCommand,
|
|
25
|
+
DeleteConnectorCommand,
|
|
13
26
|
DeleteToolCommand,
|
|
14
27
|
DescribeToolsCommand,
|
|
15
28
|
DiscoverToolsCommand,
|
|
29
|
+
ExecuteConnectorCommand,
|
|
16
30
|
ExecuteToolCommand,
|
|
31
|
+
GetConnectorCommand,
|
|
32
|
+
GetConnectorDefinitionCommand,
|
|
17
33
|
GetToolCommand,
|
|
34
|
+
ListConnectorDefinitionsCommand,
|
|
35
|
+
ListConnectorsCommand,
|
|
18
36
|
ListToolsCommand,
|
|
37
|
+
ResolveConnectorConfigurationCommand,
|
|
38
|
+
UpdateConnectorCommand,
|
|
19
39
|
UpdateToolCommand,
|
|
20
40
|
};
|
|
41
|
+
const paginators = {
|
|
42
|
+
paginateListConnectorDefinitions,
|
|
43
|
+
paginateListConnectors,
|
|
44
|
+
};
|
|
21
45
|
export class Tools extends ToolsClient {
|
|
22
46
|
}
|
|
23
|
-
createAggregatedClient(commands, Tools);
|
|
47
|
+
createAggregatedClient(commands, Tools, { paginators });
|
package/dist-es/ToolsClient.js
CHANGED
|
@@ -35,6 +35,8 @@ export class ToolsClient extends __Client {
|
|
|
35
35
|
httpAuthSchemeParametersProvider: defaultToolsHttpAuthSchemeParametersProvider,
|
|
36
36
|
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
37
|
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
"wildix.auth#pbx": config.token,
|
|
39
|
+
"wildix.auth#s2s": config.token,
|
|
38
40
|
}),
|
|
39
41
|
}));
|
|
40
42
|
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "CreateConnector", {})
|
|
13
|
+
.n("ToolsClient", "CreateConnectorCommand")
|
|
14
|
+
.sc(CreateConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "DeleteConnector", {})
|
|
13
|
+
.n("ToolsClient", "DeleteConnectorCommand")
|
|
14
|
+
.sc(DeleteConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ExecuteConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ExecuteConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "ExecuteConnector", {})
|
|
13
|
+
.n("ToolsClient", "ExecuteConnectorCommand")
|
|
14
|
+
.sc(ExecuteConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "GetConnector", {})
|
|
13
|
+
.n("ToolsClient", "GetConnectorCommand")
|
|
14
|
+
.sc(GetConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConnectorDefinition$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConnectorDefinitionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "GetConnectorDefinition", {})
|
|
13
|
+
.n("ToolsClient", "GetConnectorDefinitionCommand")
|
|
14
|
+
.sc(GetConnectorDefinition$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListConnectorDefinitions$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListConnectorDefinitionsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "ListConnectorDefinitions", {})
|
|
13
|
+
.n("ToolsClient", "ListConnectorDefinitionsCommand")
|
|
14
|
+
.sc(ListConnectorDefinitions$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListConnectors$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListConnectorsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "ListConnectors", {})
|
|
13
|
+
.n("ToolsClient", "ListConnectorsCommand")
|
|
14
|
+
.sc(ListConnectors$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ResolveConnectorConfiguration$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ResolveConnectorConfigurationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "ResolveConnectorConfiguration", {})
|
|
13
|
+
.n("ToolsClient", "ResolveConnectorConfigurationCommand")
|
|
14
|
+
.sc(ResolveConnectorConfiguration$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateConnector$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateConnectorCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "UpdateConnector", {})
|
|
13
|
+
.n("ToolsClient", "UpdateConnectorCommand")
|
|
14
|
+
.sc(UpdateConnector$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
export * from "./CreateConnectorCommand";
|
|
1
2
|
export * from "./CreateToolCommand";
|
|
3
|
+
export * from "./DeleteConnectorCommand";
|
|
2
4
|
export * from "./DeleteToolCommand";
|
|
3
5
|
export * from "./DescribeToolsCommand";
|
|
4
6
|
export * from "./DiscoverToolsCommand";
|
|
7
|
+
export * from "./ExecuteConnectorCommand";
|
|
5
8
|
export * from "./ExecuteToolCommand";
|
|
9
|
+
export * from "./GetConnectorCommand";
|
|
10
|
+
export * from "./GetConnectorDefinitionCommand";
|
|
6
11
|
export * from "./GetToolCommand";
|
|
12
|
+
export * from "./ListConnectorDefinitionsCommand";
|
|
13
|
+
export * from "./ListConnectorsCommand";
|
|
7
14
|
export * from "./ListToolsCommand";
|
|
15
|
+
export * from "./ResolveConnectorConfigurationCommand";
|
|
16
|
+
export * from "./UpdateConnectorCommand";
|
|
8
17
|
export * from "./UpdateToolCommand";
|
package/dist-es/index.js
CHANGED
package/dist-es/models/enums.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
PATCH: "PATCH",
|
|
5
|
-
POST: "POST",
|
|
6
|
-
PUT: "PUT",
|
|
1
|
+
export const ConnectorAuthorizationMode = {
|
|
2
|
+
SHARED: "shared",
|
|
3
|
+
USER: "user",
|
|
7
4
|
};
|
|
8
5
|
export const ToolVariableType = {
|
|
9
6
|
BOOLEAN: "boolean",
|
|
@@ -13,3 +10,17 @@ export const ToolVariableType = {
|
|
|
13
10
|
STRING: "string",
|
|
14
11
|
STRING_ARRAY: "string_array",
|
|
15
12
|
};
|
|
13
|
+
export const ToolCalendarOperation = {
|
|
14
|
+
CANCEL: "cancel",
|
|
15
|
+
GET_SLOTS: "get_slots",
|
|
16
|
+
LIST_RESOURCE_EVENTS: "list_resource_events",
|
|
17
|
+
RESCHEDULE: "reschedule",
|
|
18
|
+
SCHEDULE: "schedule",
|
|
19
|
+
};
|
|
20
|
+
export const ToolWebhookMethod = {
|
|
21
|
+
DELETE: "DELETE",
|
|
22
|
+
GET: "GET",
|
|
23
|
+
PATCH: "PATCH",
|
|
24
|
+
POST: "POST",
|
|
25
|
+
PUT: "PUT",
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListConnectorDefinitionsCommand, } from "../commands/ListConnectorDefinitionsCommand";
|
|
3
|
+
import { ToolsClient } from "../ToolsClient";
|
|
4
|
+
export const paginateListConnectorDefinitions = createPaginator(ToolsClient, ListConnectorDefinitionsCommand, "nextToken", "nextToken", "pageSize");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
+
import { ToolsClient } from "../ToolsClient";
|
|
4
|
+
export const paginateListConnectors = createPaginator(ToolsClient, ListConnectorsCommand, "nextToken", "nextToken", "pageSize");
|
|
@@ -21,6 +21,16 @@ export const getRuntimeConfig = (config) => {
|
|
|
21
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
22
22
|
signer: new HttpBearerAuthSigner(),
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
schemeId: "wildix.auth#pbx",
|
|
26
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
|
|
27
|
+
signer: new HttpBearerAuthSigner(),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
schemeId: "wildix.auth#s2s",
|
|
31
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
|
|
32
|
+
signer: new HttpBearerAuthSigner(),
|
|
33
|
+
},
|
|
24
34
|
],
|
|
25
35
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
36
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|