@wildix/wim-tools-client 1.0.2 → 3.1.3

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 (84) hide show
  1. package/dist-cjs/Tools.js +3 -3
  2. package/dist-cjs/ToolsClient.js +34 -25
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  5. package/dist-cjs/commands/CreateToolCommand.js +10 -11
  6. package/dist-cjs/commands/DeleteToolCommand.js +10 -11
  7. package/dist-cjs/commands/DescribeToolsCommand.js +10 -11
  8. package/dist-cjs/commands/DiscoverToolsCommand.js +10 -11
  9. package/dist-cjs/commands/ExecuteToolCommand.js +10 -11
  10. package/dist-cjs/commands/GetToolCommand.js +10 -11
  11. package/dist-cjs/commands/ListToolsCommand.js +10 -11
  12. package/dist-cjs/commands/UpdateToolCommand.js +10 -11
  13. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  14. package/dist-cjs/endpoint/bdd.js +28 -0
  15. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  16. package/dist-cjs/index.js +4 -1
  17. package/dist-cjs/models/ToolsServiceException.js +3 -3
  18. package/dist-cjs/models/enums.js +18 -0
  19. package/dist-cjs/models/errors.js +99 -0
  20. package/dist-cjs/models/models_0.js +0 -174
  21. package/dist-cjs/runtimeConfig.browser.js +11 -11
  22. package/dist-cjs/runtimeConfig.js +22 -18
  23. package/dist-cjs/runtimeConfig.shared.js +30 -10
  24. package/dist-cjs/runtimeExtensions.js +6 -5
  25. package/dist-cjs/schemas/schemas_0.js +458 -0
  26. package/dist-es/Tools.js +4 -4
  27. package/dist-es/ToolsClient.js +30 -21
  28. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  29. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  30. package/dist-es/commands/CreateToolCommand.js +9 -10
  31. package/dist-es/commands/DeleteToolCommand.js +9 -10
  32. package/dist-es/commands/DescribeToolsCommand.js +9 -10
  33. package/dist-es/commands/DiscoverToolsCommand.js +9 -10
  34. package/dist-es/commands/ExecuteToolCommand.js +9 -10
  35. package/dist-es/commands/GetToolCommand.js +9 -10
  36. package/dist-es/commands/ListToolsCommand.js +9 -10
  37. package/dist-es/commands/UpdateToolCommand.js +9 -10
  38. package/dist-es/endpoint/EndpointParameters.js +12 -0
  39. package/dist-es/endpoint/bdd.js +25 -0
  40. package/dist-es/endpoint/endpointResolver.js +12 -0
  41. package/dist-es/index.js +4 -1
  42. package/dist-es/models/ToolsServiceException.js +1 -1
  43. package/dist-es/models/enums.js +15 -0
  44. package/dist-es/models/errors.js +89 -0
  45. package/dist-es/models/models_0.js +1 -166
  46. package/dist-es/runtimeConfig.browser.js +7 -7
  47. package/dist-es/runtimeConfig.js +17 -13
  48. package/dist-es/runtimeConfig.shared.js +24 -4
  49. package/dist-es/runtimeExtensions.js +6 -5
  50. package/dist-es/schemas/schemas_0.js +454 -0
  51. package/dist-types/Tools.d.ts +9 -9
  52. package/dist-types/ToolsClient.d.ts +38 -21
  53. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  54. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  55. package/dist-types/commands/CreateToolCommand.d.ts +11 -7
  56. package/dist-types/commands/DeleteToolCommand.d.ts +11 -7
  57. package/dist-types/commands/DescribeToolsCommand.d.ts +11 -7
  58. package/dist-types/commands/DiscoverToolsCommand.d.ts +11 -7
  59. package/dist-types/commands/ExecuteToolCommand.d.ts +11 -7
  60. package/dist-types/commands/GetToolCommand.d.ts +11 -7
  61. package/dist-types/commands/ListToolsCommand.d.ts +11 -7
  62. package/dist-types/commands/UpdateToolCommand.d.ts +11 -7
  63. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  64. package/dist-types/endpoint/bdd.d.ts +2 -0
  65. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  66. package/dist-types/extensionConfiguration.d.ts +4 -3
  67. package/dist-types/index.d.ts +5 -1
  68. package/dist-types/models/ToolsServiceException.d.ts +1 -1
  69. package/dist-types/models/enums.d.ts +31 -0
  70. package/dist-types/models/errors.d.ts +90 -0
  71. package/dist-types/models/models_0.d.ts +32 -136
  72. package/dist-types/runtimeConfig.browser.d.ts +35 -17
  73. package/dist-types/runtimeConfig.d.ts +34 -16
  74. package/dist-types/runtimeConfig.native.d.ts +36 -18
  75. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  76. package/dist-types/runtimeExtensions.d.ts +1 -1
  77. package/dist-types/schemas/schemas_0.d.ts +66 -0
  78. package/package.json +13 -38
  79. package/dist-cjs/models/index.js +0 -4
  80. package/dist-cjs/protocols/Aws_restJson1.js +0 -518
  81. package/dist-es/models/index.js +0 -1
  82. package/dist-es/protocols/Aws_restJson1.js +0 -499
  83. package/dist-types/models/index.d.ts +0 -1
  84. package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { CreateToolInput, CreateToolOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CreateToolInput, CreateToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface CreateToolCommandInput extends CreateToolInput {
22
22
  export interface CreateToolCommandOutput extends CreateToolOutput, __MetadataBearer {
23
23
  }
24
24
  declare const CreateToolCommand_base: {
25
- new (input: CreateToolCommandInput): import("@smithy/smithy-client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: CreateToolCommandInput): import("@smithy/smithy-client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: CreateToolCommandInput): import("@smithy/core/client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateToolCommandInput): import("@smithy/core/client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Create a new tool.
@@ -33,6 +35,8 @@ declare const CreateToolCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, CreateToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, CreateToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // CreateToolInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { DeleteToolInput, DeleteToolOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteToolInput, DeleteToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface DeleteToolCommandInput extends DeleteToolInput {
22
22
  export interface DeleteToolCommandOutput extends DeleteToolOutput, __MetadataBearer {
23
23
  }
24
24
  declare const DeleteToolCommand_base: {
25
- new (input: DeleteToolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DeleteToolCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: DeleteToolCommandInput): import("@smithy/core/client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteToolCommandInput): import("@smithy/core/client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Delete a tool by its ID.
@@ -33,6 +35,8 @@ declare const DeleteToolCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, DeleteToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, DeleteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // DeleteToolInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { DescribeToolsInput, DescribeToolsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DescribeToolsInput, DescribeToolsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface DescribeToolsCommandInput extends DescribeToolsInput {
22
22
  export interface DescribeToolsCommandOutput extends DescribeToolsOutput, __MetadataBearer {
23
23
  }
24
24
  declare const DescribeToolsCommand_base: {
25
- new (input: DescribeToolsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DescribeToolsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: DescribeToolsCommandInput): import("@smithy/core/client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeToolsCommandInput): import("@smithy/core/client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Describe multiple tools by their IDs.
@@ -33,6 +35,8 @@ declare const DescribeToolsCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, DescribeToolsCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, DescribeToolsCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // DescribeToolsInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { DiscoverToolsInput, DiscoverToolsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DiscoverToolsInput, DiscoverToolsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface DiscoverToolsCommandInput extends DiscoverToolsInput {
22
22
  export interface DiscoverToolsCommandOutput extends DiscoverToolsOutput, __MetadataBearer {
23
23
  }
24
24
  declare const DiscoverToolsCommand_base: {
25
- new (input: DiscoverToolsCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: DiscoverToolsCommandInput): import("@smithy/smithy-client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Discover tools from an MCP server.
@@ -33,6 +35,8 @@ declare const DiscoverToolsCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, DiscoverToolsCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, DiscoverToolsCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // DiscoverToolsInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { ExecuteToolInput, ExecuteToolOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ExecuteToolInput, ExecuteToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface ExecuteToolCommandInput extends ExecuteToolInput {
22
22
  export interface ExecuteToolCommandOutput extends ExecuteToolOutput, __MetadataBearer {
23
23
  }
24
24
  declare const ExecuteToolCommand_base: {
25
- new (input: ExecuteToolCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: ExecuteToolCommandInput): import("@smithy/smithy-client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Execute a tool with the provided input.
@@ -33,6 +35,8 @@ declare const ExecuteToolCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, ExecuteToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, ExecuteToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // ExecuteToolInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { GetToolInput, GetToolOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetToolInput, GetToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface GetToolCommandInput extends GetToolInput {
22
22
  export interface GetToolCommandOutput extends GetToolOutput, __MetadataBearer {
23
23
  }
24
24
  declare const GetToolCommand_base: {
25
- new (input: GetToolCommandInput): import("@smithy/smithy-client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetToolCommandInput): import("@smithy/smithy-client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Get a tool by its ID.
@@ -33,6 +35,8 @@ declare const GetToolCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, GetToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, GetToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // GetToolInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { ListToolsInput, ListToolsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListToolsInput, ListToolsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface ListToolsCommandInput extends ListToolsInput {
22
22
  export interface ListToolsCommandOutput extends ListToolsOutput, __MetadataBearer {
23
23
  }
24
24
  declare const ListToolsCommand_base: {
25
- new (input: ListToolsCommandInput): import("@smithy/smithy-client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [ListToolsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: ListToolsCommandInput): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListToolsCommandInput]): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * List all tools for the current company.
@@ -33,6 +35,8 @@ declare const ListToolsCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, ListToolsCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, ListToolsCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // ListToolsInput
38
42
  * companyId: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
2
- import { UpdateToolInput, UpdateToolOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateToolInput, UpdateToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface UpdateToolCommandInput extends UpdateToolInput {
22
22
  export interface UpdateToolCommandOutput extends UpdateToolOutput, __MetadataBearer {
23
23
  }
24
24
  declare const UpdateToolCommand_base: {
25
- new (input: UpdateToolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: UpdateToolCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: UpdateToolCommandInput): import("@smithy/core/client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateToolCommandInput): import("@smithy/core/client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Update a tool by its ID.
@@ -33,6 +35,8 @@ declare const UpdateToolCommand_base: {
33
35
  * ```javascript
34
36
  * import { ToolsClient, UpdateToolCommand } from "@wildix/wim-tools-client"; // ES Modules import
35
37
  * // const { ToolsClient, UpdateToolCommand } = require("@wildix/wim-tools-client"); // CommonJS import
38
+ * // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
39
+ * const config = {}; // type is ToolsClientConfig
36
40
  * const client = new ToolsClient(config);
37
41
  * const input = { // UpdateToolInput
38
42
  * companyId: "STRING_VALUE",
@@ -0,0 +1,41 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ clientContextParams?: {
7
+ env?: string | undefined | Provider<string | undefined>;
8
+ };
9
+ env?: string | undefined | Provider<string | undefined>;
10
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
16
+ defaultSigningName: string;
17
+ };
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const commonParams: {
26
+ readonly env: {
27
+ readonly type: "clientContextParams";
28
+ readonly name: "env";
29
+ };
30
+ readonly endpoint: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "endpoint";
33
+ };
34
+ };
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface EndpointParameters extends __EndpointParameters {
39
+ env?: string | undefined;
40
+ endpoint?: string | undefined;
41
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -1,7 +1,8 @@
1
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
2
- import { DefaultExtensionConfiguration } from "@smithy/types";
1
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
2
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
3
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
3
4
  /**
4
5
  * @internal
5
6
  */
6
- export interface ToolsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
7
+ export interface ToolsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
7
8
  }
@@ -1,7 +1,11 @@
1
1
  export * from "./ToolsClient";
2
2
  export * from "./Tools";
3
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export type { RuntimeExtension } from "./runtimeExtensions";
4
5
  export type { ToolsExtensionConfiguration } from "./extensionConfiguration";
5
6
  export * from "./commands";
6
- export * from "./models";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
7
11
  export { ToolsServiceException } from "./models/ToolsServiceException";
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
2
  export type { __ServiceExceptionOptions };
3
3
  export { __ServiceException };
4
4
  /**
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ToolWebhookMethod: {
6
+ readonly DELETE: "DELETE";
7
+ readonly GET: "GET";
8
+ readonly PATCH: "PATCH";
9
+ readonly POST: "POST";
10
+ readonly PUT: "PUT";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type ToolWebhookMethod = (typeof ToolWebhookMethod)[keyof typeof ToolWebhookMethod];
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const ToolVariableType: {
21
+ readonly BOOLEAN: "boolean";
22
+ readonly NUMBER: "number";
23
+ readonly NUMBER_ARRAY: "number_array";
24
+ readonly SCHEMA: "schema";
25
+ readonly STRING: "string";
26
+ readonly STRING_ARRAY: "string_array";
27
+ };
28
+ /**
29
+ * @public
30
+ */
31
+ export type ToolVariableType = (typeof ToolVariableType)[keyof typeof ToolVariableType];
@@ -0,0 +1,90 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import type { DocumentType as __DocumentType } from "@smithy/types";
3
+ import { ToolsServiceException as __BaseException } from "./ToolsServiceException";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare class AlreadyExistException extends __BaseException {
8
+ readonly name: "AlreadyExistException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AlreadyExistException, __BaseException>);
14
+ }
15
+ /**
16
+ * @public
17
+ */
18
+ export declare class ForbiddenException extends __BaseException {
19
+ readonly name: "ForbiddenException";
20
+ readonly $fault: "client";
21
+ /**
22
+ * @internal
23
+ */
24
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
25
+ }
26
+ /**
27
+ * @public
28
+ */
29
+ export declare class NotFoundException extends __BaseException {
30
+ readonly name: "NotFoundException";
31
+ readonly $fault: "client";
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
36
+ }
37
+ /**
38
+ * @public
39
+ */
40
+ export declare class UnauthorizedException extends __BaseException {
41
+ readonly name: "UnauthorizedException";
42
+ readonly $fault: "client";
43
+ /**
44
+ * @internal
45
+ */
46
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
47
+ }
48
+ /**
49
+ * @public
50
+ */
51
+ export declare class ValidationException extends __BaseException {
52
+ readonly name: "ValidationException";
53
+ readonly $fault: "client";
54
+ /**
55
+ * @internal
56
+ */
57
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
58
+ }
59
+ /**
60
+ * @public
61
+ */
62
+ export declare class ToolExecutionException extends __BaseException {
63
+ readonly name: "ToolExecutionException";
64
+ readonly $fault: "client";
65
+ /**
66
+ * Details about the execution error, typically related to invalid configuration or input
67
+ * @public
68
+ */
69
+ details?: __DocumentType | undefined;
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<ToolExecutionException, __BaseException>);
74
+ }
75
+ /**
76
+ * @public
77
+ */
78
+ export declare class ToolExecutionServerException extends __BaseException {
79
+ readonly name: "ToolExecutionServerException";
80
+ readonly $fault: "server";
81
+ /**
82
+ * Details about the server failure during tool execution
83
+ * @public
84
+ */
85
+ details?: __DocumentType | undefined;
86
+ /**
87
+ * @internal
88
+ */
89
+ constructor(opts: __ExceptionOptionType<ToolExecutionServerException, __BaseException>);
90
+ }