@wildix/wim-tools-client 3.1.3 → 4.0.2
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/ToolsClient.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/ToolsClient.js +2 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-types/commands/CreateToolCommand.d.ts +1 -3
- package/dist-types/commands/DeleteToolCommand.d.ts +1 -3
- package/dist-types/commands/DescribeToolsCommand.d.ts +1 -3
- package/dist-types/commands/DiscoverToolsCommand.d.ts +1 -3
- package/dist-types/commands/ExecuteToolCommand.d.ts +1 -3
- package/dist-types/commands/GetToolCommand.d.ts +1 -3
- package/dist-types/commands/ListToolsCommand.d.ts +1 -3
- package/dist-types/commands/UpdateToolCommand.d.ts +1 -3
- package/package.json +2 -2
package/dist-cjs/ToolsClient.js
CHANGED
|
@@ -38,6 +38,8 @@ class ToolsClient extends client_2.Client {
|
|
|
38
38
|
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultToolsHttpAuthSchemeParametersProvider,
|
|
39
39
|
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
40
40
|
"smithy.api#httpBearerAuth": config.token,
|
|
41
|
+
"wildix.auth#pbx": config.token,
|
|
42
|
+
"wildix.auth#s2s": config.token,
|
|
41
43
|
}),
|
|
42
44
|
}));
|
|
43
45
|
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
@@ -24,6 +24,16 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
25
25
|
signer: new core_1.HttpBearerAuthSigner(),
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
schemeId: "wildix.auth#pbx",
|
|
29
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
|
|
30
|
+
signer: new core_1.HttpBearerAuthSigner(),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
schemeId: "wildix.auth#s2s",
|
|
34
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
|
|
35
|
+
signer: new core_1.HttpBearerAuthSigner(),
|
|
36
|
+
},
|
|
27
37
|
],
|
|
28
38
|
logger: config?.logger ?? new client_1.NoOpLogger(),
|
|
29
39
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
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));
|
|
@@ -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,
|
|
@@ -24,9 +24,7 @@ export interface CreateToolCommandOutput extends CreateToolOutput, __MetadataBea
|
|
|
24
24
|
declare const CreateToolCommand_base: {
|
|
25
25
|
new (input: CreateToolCommandInput): import("@smithy/core/client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: CreateToolCommandInput): import("@smithy/core/client").CommandImpl<CreateToolCommandInput, CreateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Create a new tool.
|
|
@@ -24,9 +24,7 @@ export interface DeleteToolCommandOutput extends DeleteToolOutput, __MetadataBea
|
|
|
24
24
|
declare const DeleteToolCommand_base: {
|
|
25
25
|
new (input: DeleteToolCommandInput): import("@smithy/core/client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: DeleteToolCommandInput): import("@smithy/core/client").CommandImpl<DeleteToolCommandInput, DeleteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Delete a tool by its ID.
|
|
@@ -24,9 +24,7 @@ export interface DescribeToolsCommandOutput extends DescribeToolsOutput, __Metad
|
|
|
24
24
|
declare const DescribeToolsCommand_base: {
|
|
25
25
|
new (input: DescribeToolsCommandInput): import("@smithy/core/client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: DescribeToolsCommandInput): import("@smithy/core/client").CommandImpl<DescribeToolsCommandInput, DescribeToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Describe multiple tools by their IDs.
|
|
@@ -24,9 +24,7 @@ export interface DiscoverToolsCommandOutput extends DiscoverToolsOutput, __Metad
|
|
|
24
24
|
declare const DiscoverToolsCommand_base: {
|
|
25
25
|
new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Discover tools from an MCP server.
|
|
@@ -24,9 +24,7 @@ export interface ExecuteToolCommandOutput extends ExecuteToolOutput, __MetadataB
|
|
|
24
24
|
declare const ExecuteToolCommand_base: {
|
|
25
25
|
new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Execute a tool with the provided input.
|
|
@@ -24,9 +24,7 @@ export interface GetToolCommandOutput extends GetToolOutput, __MetadataBearer {
|
|
|
24
24
|
declare const GetToolCommand_base: {
|
|
25
25
|
new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Get a tool by its ID.
|
|
@@ -24,9 +24,7 @@ export interface ListToolsCommandOutput extends ListToolsOutput, __MetadataBeare
|
|
|
24
24
|
declare const ListToolsCommand_base: {
|
|
25
25
|
new (input: ListToolsCommandInput): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (...[input]: [] | [ListToolsCommandInput]): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* List all tools for the current company.
|
|
@@ -24,9 +24,7 @@ export interface UpdateToolCommandOutput extends UpdateToolOutput, __MetadataBea
|
|
|
24
24
|
declare const UpdateToolCommand_base: {
|
|
25
25
|
new (input: UpdateToolCommandInput): import("@smithy/core/client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (input: UpdateToolCommandInput): import("@smithy/core/client").CommandImpl<UpdateToolCommandInput, UpdateToolCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Update a tool by its ID.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-tools-client",
|
|
3
3
|
"description": "@wildix/wim-tools-client client",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"react-native": {
|
|
55
55
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|