@wildix/wim-tools-client 1.0.6 → 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.
- package/dist-cjs/Tools.js +3 -3
- package/dist-cjs/ToolsClient.js +34 -25
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/commands/CreateToolCommand.js +10 -11
- package/dist-cjs/commands/DeleteToolCommand.js +10 -11
- package/dist-cjs/commands/DescribeToolsCommand.js +10 -11
- package/dist-cjs/commands/DiscoverToolsCommand.js +10 -11
- package/dist-cjs/commands/ExecuteToolCommand.js +10 -11
- package/dist-cjs/commands/GetToolCommand.js +10 -11
- package/dist-cjs/commands/ListToolsCommand.js +10 -11
- package/dist-cjs/commands/UpdateToolCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/ToolsServiceException.js +3 -3
- package/dist-cjs/models/enums.js +18 -0
- package/dist-cjs/models/errors.js +99 -0
- package/dist-cjs/models/models_0.js +0 -183
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +458 -0
- package/dist-es/Tools.js +4 -4
- package/dist-es/ToolsClient.js +30 -21
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CreateToolCommand.js +9 -10
- package/dist-es/commands/DeleteToolCommand.js +9 -10
- package/dist-es/commands/DescribeToolsCommand.js +9 -10
- package/dist-es/commands/DiscoverToolsCommand.js +9 -10
- package/dist-es/commands/ExecuteToolCommand.js +9 -10
- package/dist-es/commands/GetToolCommand.js +9 -10
- package/dist-es/commands/ListToolsCommand.js +9 -10
- package/dist-es/commands/UpdateToolCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/ToolsServiceException.js +1 -1
- package/dist-es/models/enums.js +15 -0
- package/dist-es/models/errors.js +89 -0
- package/dist-es/models/models_0.js +1 -175
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +454 -0
- package/dist-types/Tools.d.ts +9 -9
- package/dist-types/ToolsClient.d.ts +38 -21
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateToolCommand.d.ts +11 -13
- package/dist-types/commands/DeleteToolCommand.d.ts +11 -7
- package/dist-types/commands/DescribeToolsCommand.d.ts +11 -7
- package/dist-types/commands/DiscoverToolsCommand.d.ts +11 -7
- package/dist-types/commands/ExecuteToolCommand.d.ts +11 -7
- package/dist-types/commands/GetToolCommand.d.ts +11 -10
- package/dist-types/commands/ListToolsCommand.d.ts +11 -10
- package/dist-types/commands/UpdateToolCommand.d.ts +11 -13
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/ToolsServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +31 -0
- package/dist-types/models/errors.d.ts +90 -0
- package/dist-types/models/models_0.d.ts +33 -182
- package/dist-types/runtimeConfig.browser.d.ts +35 -17
- package/dist-types/runtimeConfig.d.ts +34 -16
- package/dist-types/runtimeConfig.native.d.ts +36 -18
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +66 -0
- package/package.json +14 -39
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -518
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -499
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -74
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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",
|
|
@@ -127,9 +131,6 @@ declare const CreateToolCommand_base: {
|
|
|
127
131
|
* message: "STRING_VALUE", // required
|
|
128
132
|
* },
|
|
129
133
|
* },
|
|
130
|
-
* calendar: { // ToolCalendarConfig
|
|
131
|
-
* operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
132
|
-
* },
|
|
133
134
|
* mcp: { // ToolMcpHandler
|
|
134
135
|
* serverUrl: "STRING_VALUE", // required
|
|
135
136
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -247,9 +248,6 @@ declare const CreateToolCommand_base: {
|
|
|
247
248
|
* // message: "STRING_VALUE", // required
|
|
248
249
|
* // },
|
|
249
250
|
* // },
|
|
250
|
-
* // calendar: { // ToolCalendarConfig
|
|
251
|
-
* // operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
252
|
-
* // },
|
|
253
251
|
* // mcp: { // ToolMcpHandler
|
|
254
252
|
* // serverUrl: "STRING_VALUE", // required
|
|
255
253
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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",
|
|
@@ -135,9 +139,6 @@ declare const GetToolCommand_base: {
|
|
|
135
139
|
* // message: "STRING_VALUE", // required
|
|
136
140
|
* // },
|
|
137
141
|
* // },
|
|
138
|
-
* // calendar: { // ToolCalendarConfig
|
|
139
|
-
* // operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
140
|
-
* // },
|
|
141
142
|
* // mcp: { // ToolMcpHandler
|
|
142
143
|
* // serverUrl: "STRING_VALUE", // required
|
|
143
144
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (...[input]: [] | [ListToolsCommandInput]): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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",
|
|
@@ -135,9 +139,6 @@ declare const ListToolsCommand_base: {
|
|
|
135
139
|
* // message: "STRING_VALUE", // required
|
|
136
140
|
* // },
|
|
137
141
|
* // },
|
|
138
|
-
* // calendar: { // ToolCalendarConfig
|
|
139
|
-
* // operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
140
|
-
* // },
|
|
141
142
|
* // mcp: { // ToolMcpHandler
|
|
142
143
|
* // serverUrl: "STRING_VALUE", // required
|
|
143
144
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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/
|
|
26
|
-
new (
|
|
27
|
-
getEndpointParameterInstructions():
|
|
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",
|
|
@@ -128,9 +132,6 @@ declare const UpdateToolCommand_base: {
|
|
|
128
132
|
* message: "STRING_VALUE", // required
|
|
129
133
|
* },
|
|
130
134
|
* },
|
|
131
|
-
* calendar: { // ToolCalendarConfig
|
|
132
|
-
* operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
133
|
-
* },
|
|
134
135
|
* mcp: { // ToolMcpHandler
|
|
135
136
|
* serverUrl: "STRING_VALUE", // required
|
|
136
137
|
* authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -248,9 +249,6 @@ declare const UpdateToolCommand_base: {
|
|
|
248
249
|
* // message: "STRING_VALUE", // required
|
|
249
250
|
* // },
|
|
250
251
|
* // },
|
|
251
|
-
* // calendar: { // ToolCalendarConfig
|
|
252
|
-
* // operation: "get_slots" || "schedule" || "reschedule" || "cancel" || "list_resource_events", // required
|
|
253
|
-
* // },
|
|
254
252
|
* // mcp: { // ToolMcpHandler
|
|
255
253
|
* // serverUrl: "STRING_VALUE", // required
|
|
256
254
|
* // authorization: { // ToolMcpAuthorization Union: only one key present
|
|
@@ -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,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/
|
|
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
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -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 "./
|
|
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 {
|
|
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
|
+
}
|