@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.
Files changed (72) hide show
  1. package/dist-cjs/Tools.js +25 -1
  2. package/dist-cjs/ToolsClient.js +2 -0
  3. package/dist-cjs/commands/CreateConnectorCommand.js +20 -0
  4. package/dist-cjs/commands/DeleteConnectorCommand.js +20 -0
  5. package/dist-cjs/commands/ExecuteConnectorCommand.js +20 -0
  6. package/dist-cjs/commands/GetConnectorCommand.js +20 -0
  7. package/dist-cjs/commands/GetConnectorDefinitionCommand.js +20 -0
  8. package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +20 -0
  9. package/dist-cjs/commands/ListConnectorsCommand.js +20 -0
  10. package/dist-cjs/commands/ResolveConnectorConfigurationCommand.js +20 -0
  11. package/dist-cjs/commands/UpdateConnectorCommand.js +20 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/index.js +1 -0
  14. package/dist-cjs/models/enums.js +18 -7
  15. package/dist-cjs/pagination/Interfaces.js +2 -0
  16. package/dist-cjs/pagination/ListConnectorDefinitionsPaginator.js +7 -0
  17. package/dist-cjs/pagination/ListConnectorsPaginator.js +7 -0
  18. package/dist-cjs/pagination/index.js +6 -0
  19. package/dist-cjs/runtimeConfig.shared.js +10 -0
  20. package/dist-cjs/schemas/schemas_0.js +340 -57
  21. package/dist-es/Tools.js +25 -1
  22. package/dist-es/ToolsClient.js +2 -0
  23. package/dist-es/commands/CreateConnectorCommand.js +16 -0
  24. package/dist-es/commands/DeleteConnectorCommand.js +16 -0
  25. package/dist-es/commands/ExecuteConnectorCommand.js +16 -0
  26. package/dist-es/commands/GetConnectorCommand.js +16 -0
  27. package/dist-es/commands/GetConnectorDefinitionCommand.js +16 -0
  28. package/dist-es/commands/ListConnectorDefinitionsCommand.js +16 -0
  29. package/dist-es/commands/ListConnectorsCommand.js +16 -0
  30. package/dist-es/commands/ResolveConnectorConfigurationCommand.js +16 -0
  31. package/dist-es/commands/UpdateConnectorCommand.js +16 -0
  32. package/dist-es/commands/index.js +9 -0
  33. package/dist-es/index.js +1 -0
  34. package/dist-es/models/enums.js +17 -6
  35. package/dist-es/pagination/Interfaces.js +1 -0
  36. package/dist-es/pagination/ListConnectorDefinitionsPaginator.js +4 -0
  37. package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
  38. package/dist-es/pagination/index.js +3 -0
  39. package/dist-es/runtimeConfig.shared.js +10 -0
  40. package/dist-es/schemas/schemas_0.js +338 -55
  41. package/dist-types/Tools.d.ts +80 -1
  42. package/dist-types/ToolsClient.d.ts +11 -2
  43. package/dist-types/commands/CreateConnectorCommand.d.ts +123 -0
  44. package/dist-types/commands/CreateToolCommand.d.ts +43 -3
  45. package/dist-types/commands/DeleteConnectorCommand.d.ts +87 -0
  46. package/dist-types/commands/DeleteToolCommand.d.ts +1 -3
  47. package/dist-types/commands/DescribeToolsCommand.d.ts +5 -3
  48. package/dist-types/commands/DiscoverToolsCommand.d.ts +1 -3
  49. package/dist-types/commands/ExecuteConnectorCommand.d.ts +96 -0
  50. package/dist-types/commands/ExecuteToolCommand.d.ts +1 -3
  51. package/dist-types/commands/GetConnectorCommand.d.ts +108 -0
  52. package/dist-types/commands/GetConnectorDefinitionCommand.d.ts +152 -0
  53. package/dist-types/commands/GetToolCommand.d.ts +22 -3
  54. package/dist-types/commands/ListConnectorDefinitionsCommand.d.ts +156 -0
  55. package/dist-types/commands/ListConnectorsCommand.d.ts +112 -0
  56. package/dist-types/commands/ListToolsCommand.d.ts +22 -3
  57. package/dist-types/commands/ResolveConnectorConfigurationCommand.d.ts +102 -0
  58. package/dist-types/commands/UpdateConnectorCommand.d.ts +124 -0
  59. package/dist-types/commands/UpdateToolCommand.d.ts +43 -3
  60. package/dist-types/commands/index.d.ts +9 -0
  61. package/dist-types/index.d.ts +1 -0
  62. package/dist-types/models/enums.d.ts +40 -7
  63. package/dist-types/models/models_0.d.ts +816 -50
  64. package/dist-types/pagination/Interfaces.d.ts +8 -0
  65. package/dist-types/pagination/ListConnectorDefinitionsPaginator.d.ts +7 -0
  66. package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
  67. package/dist-types/pagination/index.d.ts +3 -0
  68. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  69. package/dist-types/runtimeConfig.d.ts +1 -0
  70. package/dist-types/runtimeConfig.native.d.ts +1 -0
  71. package/dist-types/schemas/schemas_0.d.ts +41 -0
  72. 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 });
@@ -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
@@ -2,6 +2,7 @@ export * from "./ToolsClient";
2
2
  export * from "./Tools";
3
3
  export * from "./commands";
4
4
  export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
7
8
  export * from "./models/models_0";
@@ -1,9 +1,6 @@
1
- export const ToolWebhookMethod = {
2
- DELETE: "DELETE",
3
- GET: "GET",
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");
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListConnectorDefinitionsPaginator";
3
+ export * from "./ListConnectorsPaginator";
@@ -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,