@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.
- 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 -174
- 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 -166
- 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 -7
- 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 -7
- package/dist-types/commands/ListToolsCommand.d.ts +11 -7
- package/dist-types/commands/UpdateToolCommand.d.ts +11 -7
- 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 +32 -136
- 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 +13 -38
- 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,61 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
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
|
-
}
|
|
1
|
+
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import type { ToolVariableType, ToolWebhookMethod } from "./enums";
|
|
59
3
|
/**
|
|
60
4
|
* @public
|
|
61
5
|
*/
|
|
@@ -90,12 +34,15 @@ export declare namespace ToolChatRecipient {
|
|
|
90
34
|
userId?: never;
|
|
91
35
|
$unknown: [string, any];
|
|
92
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated unused in schema-serde mode.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
93
41
|
interface Visitor<T> {
|
|
94
42
|
channelId: (value: string) => T;
|
|
95
43
|
userId: (value: string) => T;
|
|
96
44
|
_: (name: string, value: any) => T;
|
|
97
45
|
}
|
|
98
|
-
const visit: <T>(value: ToolChatRecipient, visitor: Visitor<T>) => T;
|
|
99
46
|
}
|
|
100
47
|
/**
|
|
101
48
|
* @public
|
|
@@ -261,12 +208,15 @@ export declare namespace ToolEmailHandler {
|
|
|
261
208
|
custom?: never;
|
|
262
209
|
$unknown: [string, any];
|
|
263
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* @deprecated unused in schema-serde mode.
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
264
215
|
interface Visitor<T> {
|
|
265
216
|
wns: (value: ToolWnsEmailConfig) => T;
|
|
266
217
|
custom: (value: ToolCustomEmailConfig) => T;
|
|
267
218
|
_: (name: string, value: any) => T;
|
|
268
219
|
}
|
|
269
|
-
const visit: <T>(value: ToolEmailHandler, visitor: Visitor<T>) => T;
|
|
270
220
|
}
|
|
271
221
|
/**
|
|
272
222
|
* @public
|
|
@@ -312,12 +262,15 @@ export declare namespace ToolMcpAuthorization {
|
|
|
312
262
|
customHeaders?: never;
|
|
313
263
|
$unknown: [string, any];
|
|
314
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated unused in schema-serde mode.
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
315
269
|
interface Visitor<T> {
|
|
316
270
|
bearer: (value: ToolWebhookAuthBearer) => T;
|
|
317
271
|
customHeaders: (value: Record<string, string>) => T;
|
|
318
272
|
_: (name: string, value: any) => T;
|
|
319
273
|
}
|
|
320
|
-
const visit: <T>(value: ToolMcpAuthorization, visitor: Visitor<T>) => T;
|
|
321
274
|
}
|
|
322
275
|
/**
|
|
323
276
|
* @public
|
|
@@ -337,7 +290,7 @@ export interface ToolMcpHandler {
|
|
|
337
290
|
* List of tools enabled for this MCP server.
|
|
338
291
|
* @public
|
|
339
292
|
*/
|
|
340
|
-
tools:
|
|
293
|
+
tools: string[];
|
|
341
294
|
}
|
|
342
295
|
/**
|
|
343
296
|
* @public
|
|
@@ -363,12 +316,12 @@ export interface ToolSearchConfig {
|
|
|
363
316
|
* When non-empty, only return results from these domains or hosts. Customers may enter plain hostnames (example.com) or full URLs (https://example.com/path) — URLs are normalized to hostnames before calling the search API.
|
|
364
317
|
* @public
|
|
365
318
|
*/
|
|
366
|
-
includeDomains?:
|
|
319
|
+
includeDomains?: string[] | undefined;
|
|
367
320
|
/**
|
|
368
321
|
* When non-empty, omit results from these domains or hosts. Same hostname rules as includeDomains. Can be combined with includeDomains per Tavily API.
|
|
369
322
|
* @public
|
|
370
323
|
*/
|
|
371
|
-
excludeDomains?:
|
|
324
|
+
excludeDomains?: string[] | undefined;
|
|
372
325
|
}
|
|
373
326
|
/**
|
|
374
327
|
* @public
|
|
@@ -487,13 +440,16 @@ export declare namespace ToolWebhookAuth {
|
|
|
487
440
|
oauth?: never;
|
|
488
441
|
$unknown: [string, any];
|
|
489
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* @deprecated unused in schema-serde mode.
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
490
447
|
interface Visitor<T> {
|
|
491
448
|
basic: (value: ToolWebhookAuthBasic) => T;
|
|
492
449
|
bearer: (value: ToolWebhookAuthBearer) => T;
|
|
493
450
|
oauth: (value: ToolWebhookAuthOAuth) => T;
|
|
494
451
|
_: (name: string, value: any) => T;
|
|
495
452
|
}
|
|
496
|
-
const visit: <T>(value: ToolWebhookAuth, visitor: Visitor<T>) => T;
|
|
497
453
|
}
|
|
498
454
|
/**
|
|
499
455
|
* @public
|
|
@@ -510,21 +466,6 @@ export interface ToolWebhookHeader {
|
|
|
510
466
|
*/
|
|
511
467
|
value: string;
|
|
512
468
|
}
|
|
513
|
-
/**
|
|
514
|
-
* @public
|
|
515
|
-
* @enum
|
|
516
|
-
*/
|
|
517
|
-
export declare const ToolWebhookMethod: {
|
|
518
|
-
readonly DELETE: "DELETE";
|
|
519
|
-
readonly GET: "GET";
|
|
520
|
-
readonly PATCH: "PATCH";
|
|
521
|
-
readonly POST: "POST";
|
|
522
|
-
readonly PUT: "PUT";
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* @public
|
|
526
|
-
*/
|
|
527
|
-
export type ToolWebhookMethod = typeof ToolWebhookMethod[keyof typeof ToolWebhookMethod];
|
|
528
469
|
/**
|
|
529
470
|
* @public
|
|
530
471
|
*/
|
|
@@ -543,7 +484,7 @@ export interface ToolWebhookConfig {
|
|
|
543
484
|
* HTTP headers for the webhook request. For custom authentication headers (e.g., X-API-Key), add them here instead of using auth.customHeader
|
|
544
485
|
* @public
|
|
545
486
|
*/
|
|
546
|
-
headers?:
|
|
487
|
+
headers?: ToolWebhookHeader[] | undefined;
|
|
547
488
|
/**
|
|
548
489
|
* Request body for POST, PUT, or PATCH requests
|
|
549
490
|
* @public
|
|
@@ -655,6 +596,10 @@ export declare namespace ToolHandler {
|
|
|
655
596
|
mcpTool?: never;
|
|
656
597
|
$unknown: [string, any];
|
|
657
598
|
}
|
|
599
|
+
/**
|
|
600
|
+
* @deprecated unused in schema-serde mode.
|
|
601
|
+
*
|
|
602
|
+
*/
|
|
658
603
|
interface Visitor<T> {
|
|
659
604
|
email: (value: ToolEmailHandler) => T;
|
|
660
605
|
webhook: (value: ToolWebhookConfig) => T;
|
|
@@ -665,24 +610,7 @@ export declare namespace ToolHandler {
|
|
|
665
610
|
mcpTool: (value: ToolMcpToolHandler) => T;
|
|
666
611
|
_: (name: string, value: any) => T;
|
|
667
612
|
}
|
|
668
|
-
const visit: <T>(value: ToolHandler, visitor: Visitor<T>) => T;
|
|
669
613
|
}
|
|
670
|
-
/**
|
|
671
|
-
* @public
|
|
672
|
-
* @enum
|
|
673
|
-
*/
|
|
674
|
-
export declare const ToolVariableType: {
|
|
675
|
-
readonly BOOLEAN: "boolean";
|
|
676
|
-
readonly NUMBER: "number";
|
|
677
|
-
readonly NUMBER_ARRAY: "number_array";
|
|
678
|
-
readonly SCHEMA: "schema";
|
|
679
|
-
readonly STRING: "string";
|
|
680
|
-
readonly STRING_ARRAY: "string_array";
|
|
681
|
-
};
|
|
682
|
-
/**
|
|
683
|
-
* @public
|
|
684
|
-
*/
|
|
685
|
-
export type ToolVariableType = typeof ToolVariableType[keyof typeof ToolVariableType];
|
|
686
614
|
/**
|
|
687
615
|
* @public
|
|
688
616
|
*/
|
|
@@ -721,7 +649,7 @@ export interface ToolInput {
|
|
|
721
649
|
* List of tool variables, used to pass data to the tool
|
|
722
650
|
* @public
|
|
723
651
|
*/
|
|
724
|
-
variables:
|
|
652
|
+
variables: ToolVariable[];
|
|
725
653
|
}
|
|
726
654
|
/**
|
|
727
655
|
* @public
|
|
@@ -804,38 +732,6 @@ export interface Tool {
|
|
|
804
732
|
export interface CreateToolOutput {
|
|
805
733
|
tool: Tool;
|
|
806
734
|
}
|
|
807
|
-
/**
|
|
808
|
-
* @public
|
|
809
|
-
*/
|
|
810
|
-
export declare class ToolExecutionException extends __BaseException {
|
|
811
|
-
readonly name: "ToolExecutionException";
|
|
812
|
-
readonly $fault: "client";
|
|
813
|
-
/**
|
|
814
|
-
* Details about the execution error, typically related to invalid configuration or input
|
|
815
|
-
* @public
|
|
816
|
-
*/
|
|
817
|
-
details?: __DocumentType | undefined;
|
|
818
|
-
/**
|
|
819
|
-
* @internal
|
|
820
|
-
*/
|
|
821
|
-
constructor(opts: __ExceptionOptionType<ToolExecutionException, __BaseException>);
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @public
|
|
825
|
-
*/
|
|
826
|
-
export declare class ToolExecutionServerException extends __BaseException {
|
|
827
|
-
readonly name: "ToolExecutionServerException";
|
|
828
|
-
readonly $fault: "server";
|
|
829
|
-
/**
|
|
830
|
-
* Details about the server failure during tool execution
|
|
831
|
-
* @public
|
|
832
|
-
*/
|
|
833
|
-
details?: __DocumentType | undefined;
|
|
834
|
-
/**
|
|
835
|
-
* @internal
|
|
836
|
-
*/
|
|
837
|
-
constructor(opts: __ExceptionOptionType<ToolExecutionServerException, __BaseException>);
|
|
838
|
-
}
|
|
839
735
|
/**
|
|
840
736
|
* @public
|
|
841
737
|
*/
|
|
@@ -869,7 +765,7 @@ export interface DescribeToolsInput {
|
|
|
869
765
|
* List of tool IDs.
|
|
870
766
|
* @public
|
|
871
767
|
*/
|
|
872
|
-
ids:
|
|
768
|
+
ids: string[];
|
|
873
769
|
}
|
|
874
770
|
/**
|
|
875
771
|
* @public
|
|
@@ -894,7 +790,7 @@ export interface ToolDescription {
|
|
|
894
790
|
* List of tool variables, used to pass data to the tool
|
|
895
791
|
* @public
|
|
896
792
|
*/
|
|
897
|
-
variables:
|
|
793
|
+
variables: ToolVariable[];
|
|
898
794
|
}
|
|
899
795
|
/**
|
|
900
796
|
* @public
|
|
@@ -904,7 +800,7 @@ export interface DescribeToolsOutput {
|
|
|
904
800
|
* List of tool descriptions.
|
|
905
801
|
* @public
|
|
906
802
|
*/
|
|
907
|
-
descriptions:
|
|
803
|
+
descriptions: ToolDescription[];
|
|
908
804
|
}
|
|
909
805
|
/**
|
|
910
806
|
* @public
|
|
@@ -954,7 +850,7 @@ export interface DiscoverToolsOutput {
|
|
|
954
850
|
* List of discovered tools from the MCP server
|
|
955
851
|
* @public
|
|
956
852
|
*/
|
|
957
|
-
tools:
|
|
853
|
+
tools: DiscoveredTool[];
|
|
958
854
|
}
|
|
959
855
|
/**
|
|
960
856
|
* @public
|
|
@@ -1049,7 +945,7 @@ export interface ListToolsOutput {
|
|
|
1049
945
|
* List of tools.
|
|
1050
946
|
* @public
|
|
1051
947
|
*/
|
|
1052
|
-
tools:
|
|
948
|
+
tools: Tool[];
|
|
1053
949
|
}
|
|
1054
950
|
/**
|
|
1055
951
|
* @public
|
|
@@ -1,37 +1,55 @@
|
|
|
1
1
|
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
-
import { ToolsClientConfig } from "./ToolsClient";
|
|
2
|
+
import type { ToolsClientConfig } from "./ToolsClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
-
defaultsMode: import("@smithy/types").Provider<import("@smithy/
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
defaultUserAgentProvider: (config?: import("@aws-sdk/
|
|
10
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
11
11
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
|
-
requestHandler: import("@smithy/
|
|
12
|
+
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
13
13
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
16
|
-
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
|
-
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
-
endpoint?: (() => Record<string, string>) | undefined;
|
|
15
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
16
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
-
protocol
|
|
21
|
-
protocolSettings
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
18
|
+
protocolSettings: {
|
|
19
|
+
defaultNamespace?: string;
|
|
22
20
|
[setting: string]: unknown;
|
|
23
|
-
|
|
24
|
-
} | undefined;
|
|
21
|
+
};
|
|
25
22
|
apiVersion: string;
|
|
26
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
27
24
|
base64Decoder: import("@smithy/types").Decoder;
|
|
28
|
-
base64Encoder: (_input:
|
|
25
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
29
26
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
30
|
-
utf8Encoder: (input:
|
|
27
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
31
28
|
disableHostPrefix: boolean;
|
|
29
|
+
profile?: string;
|
|
32
30
|
logger: import("@smithy/types").Logger;
|
|
33
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
-
customUserAgent?: string | import("@smithy/types").UserAgent
|
|
35
|
-
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined
|
|
36
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2
|
|
32
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
35
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
36
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
|
+
logger?: import("@smithy/types").Logger;
|
|
38
|
+
}) => import("@smithy/types").EndpointV2;
|
|
39
|
+
tls?: boolean;
|
|
40
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
+
serviceConfiguredEndpoint?: never;
|
|
43
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
|
+
httpAuthSchemes: {
|
|
45
|
+
schemeId: string;
|
|
46
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
47
|
+
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
48
|
+
}[];
|
|
49
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ToolsHttpAuthSchemeProvider;
|
|
50
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
51
|
+
clientContextParams?: {
|
|
52
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
53
|
+
};
|
|
54
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
37
55
|
};
|
|
@@ -1,37 +1,55 @@
|
|
|
1
1
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
-
import { ToolsClientConfig } from "./ToolsClient";
|
|
2
|
+
import type { ToolsClientConfig } from "./ToolsClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
-
defaultsMode: import("@smithy/types").Provider<import("@smithy/
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
defaultUserAgentProvider: (config?: import("@aws-sdk/
|
|
10
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
11
11
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
12
|
-
requestHandler: RequestHandler | import("@smithy/
|
|
12
|
+
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
13
13
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
|
-
streamCollector: import("
|
|
15
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
|
-
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
|
-
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
endpoint?: (() => Record<string, string>) | undefined;
|
|
20
17
|
cacheMiddleware?: boolean | undefined;
|
|
21
|
-
protocol
|
|
22
|
-
protocolSettings
|
|
18
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
19
|
+
protocolSettings: {
|
|
20
|
+
defaultNamespace?: string;
|
|
23
21
|
[setting: string]: unknown;
|
|
24
|
-
|
|
25
|
-
} | undefined;
|
|
22
|
+
};
|
|
26
23
|
apiVersion: string;
|
|
27
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
25
|
base64Decoder: import("@smithy/types").Decoder;
|
|
29
|
-
base64Encoder: (_input:
|
|
26
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
30
27
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
31
|
-
utf8Encoder: (input:
|
|
28
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
32
29
|
disableHostPrefix: boolean;
|
|
30
|
+
profile?: string;
|
|
33
31
|
logger: import("@smithy/types").Logger;
|
|
34
32
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
-
customUserAgent?: string | import("@smithy/types").UserAgent
|
|
36
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2
|
|
33
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
34
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
35
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
36
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
37
|
+
logger?: import("@smithy/types").Logger;
|
|
38
|
+
}) => import("@smithy/types").EndpointV2;
|
|
39
|
+
tls?: boolean;
|
|
40
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
+
serviceConfiguredEndpoint?: never;
|
|
43
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
|
+
httpAuthSchemes: {
|
|
45
|
+
schemeId: string;
|
|
46
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
47
|
+
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
48
|
+
}[];
|
|
49
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ToolsHttpAuthSchemeProvider;
|
|
50
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
51
|
+
clientContextParams?: {
|
|
52
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
53
|
+
};
|
|
54
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
37
55
|
};
|
|
@@ -1,36 +1,54 @@
|
|
|
1
|
-
import { ToolsClientConfig } from "./ToolsClient";
|
|
1
|
+
import type { ToolsClientConfig } from "./ToolsClient";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
14
|
-
protocolSettings?: {
|
|
8
|
+
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
cacheMiddleware?: boolean;
|
|
10
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
11
|
+
protocolSettings: {
|
|
12
|
+
defaultNamespace?: string;
|
|
15
13
|
[setting: string]: unknown;
|
|
16
|
-
|
|
17
|
-
} | undefined;
|
|
14
|
+
};
|
|
18
15
|
apiVersion: string;
|
|
19
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
21
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
22
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
|
-
base64Encoder: (_input:
|
|
20
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
24
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
25
|
-
utf8Encoder: (input:
|
|
22
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
26
23
|
disableHostPrefix: boolean;
|
|
27
|
-
|
|
24
|
+
profile?: string;
|
|
25
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
28
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
29
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
30
28
|
logger: import("@smithy/types").Logger;
|
|
31
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
-
defaultsMode: import("@smithy/
|
|
33
|
-
customUserAgent?: string | import("@smithy/types").UserAgent
|
|
34
|
-
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined
|
|
35
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2
|
|
30
|
+
defaultsMode: import("@smithy/core/client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
|
|
31
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
33
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
34
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
35
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
36
|
+
logger?: import("@smithy/types").Logger;
|
|
37
|
+
}) => import("@smithy/types").EndpointV2;
|
|
38
|
+
tls?: boolean;
|
|
39
|
+
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
40
|
+
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
|
+
serviceConfiguredEndpoint?: never;
|
|
42
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
43
|
+
httpAuthSchemes: {
|
|
44
|
+
schemeId: string;
|
|
45
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
46
|
+
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
47
|
+
}[];
|
|
48
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ToolsHttpAuthSchemeProvider;
|
|
49
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
50
|
+
clientContextParams?: {
|
|
51
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
52
|
+
};
|
|
53
|
+
env?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
36
54
|
};
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
3
|
+
import type { IdentityProviderConfig } from "@smithy/types";
|
|
4
|
+
import type { ToolsClientConfig } from "./ToolsClient";
|
|
2
5
|
/**
|
|
3
6
|
* @internal
|
|
4
7
|
*/
|
|
5
8
|
export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
6
9
|
apiVersion: string;
|
|
7
10
|
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
-
base64Encoder: (_input:
|
|
11
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
9
12
|
disableHostPrefix: boolean;
|
|
13
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
14
|
+
logger?: import("@smithy/types").Logger;
|
|
15
|
+
}) => import("@smithy/types").EndpointV2;
|
|
10
16
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
17
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ToolsHttpAuthSchemeProvider;
|
|
18
|
+
httpAuthSchemes: {
|
|
19
|
+
schemeId: string;
|
|
20
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
21
|
+
signer: HttpBearerAuthSigner;
|
|
22
|
+
}[];
|
|
11
23
|
logger: import("@smithy/types").Logger;
|
|
24
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
|
|
25
|
+
protocolSettings: {
|
|
26
|
+
[setting: string]: unknown;
|
|
27
|
+
defaultNamespace?: string;
|
|
28
|
+
};
|
|
12
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
13
30
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
14
|
-
utf8Encoder: (input:
|
|
31
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
15
32
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
|
+
export declare var ToolsServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var AlreadyExistException$: StaticErrorSchema;
|
|
5
|
+
export declare var ForbiddenException$: StaticErrorSchema;
|
|
6
|
+
export declare var NotFoundException$: StaticErrorSchema;
|
|
7
|
+
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
8
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
9
|
+
export declare var ToolExecutionException$: StaticErrorSchema;
|
|
10
|
+
export declare var ToolExecutionServerException$: StaticErrorSchema;
|
|
11
|
+
/**
|
|
12
|
+
* TypeRegistry instances containing modeled errors.
|
|
13
|
+
* @internal
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
17
|
+
export declare var CreateToolInput$: StaticStructureSchema;
|
|
18
|
+
export declare var CreateToolOutput$: StaticStructureSchema;
|
|
19
|
+
export declare var DeleteToolInput$: StaticStructureSchema;
|
|
20
|
+
export declare var DeleteToolOutput$: StaticStructureSchema;
|
|
21
|
+
export declare var DescribeToolsInput$: StaticStructureSchema;
|
|
22
|
+
export declare var DescribeToolsOutput$: StaticStructureSchema;
|
|
23
|
+
export declare var DiscoveredTool$: StaticStructureSchema;
|
|
24
|
+
export declare var DiscoverToolsInput$: StaticStructureSchema;
|
|
25
|
+
export declare var DiscoverToolsOutput$: StaticStructureSchema;
|
|
26
|
+
export declare var ExecuteToolInput$: StaticStructureSchema;
|
|
27
|
+
export declare var ExecuteToolOutput$: StaticStructureSchema;
|
|
28
|
+
export declare var GetToolInput$: StaticStructureSchema;
|
|
29
|
+
export declare var GetToolOutput$: StaticStructureSchema;
|
|
30
|
+
export declare var ListToolsInput$: StaticStructureSchema;
|
|
31
|
+
export declare var ListToolsOutput$: StaticStructureSchema;
|
|
32
|
+
export declare var Tool$: StaticStructureSchema;
|
|
33
|
+
export declare var ToolChatConfig$: StaticStructureSchema;
|
|
34
|
+
export declare var ToolChatHandler$: StaticStructureSchema;
|
|
35
|
+
export declare var ToolCustomEmailConfig$: StaticStructureSchema;
|
|
36
|
+
export declare var ToolDescription$: StaticStructureSchema;
|
|
37
|
+
export declare var ToolExecutionResult$: StaticStructureSchema;
|
|
38
|
+
export declare var ToolInput$: StaticStructureSchema;
|
|
39
|
+
export declare var ToolMcpHandler$: StaticStructureSchema;
|
|
40
|
+
export declare var ToolMcpToolHandler$: StaticStructureSchema;
|
|
41
|
+
export declare var ToolSearchConfig$: StaticStructureSchema;
|
|
42
|
+
export declare var ToolSmsConfig$: StaticStructureSchema;
|
|
43
|
+
export declare var ToolSmsHandler$: StaticStructureSchema;
|
|
44
|
+
export declare var ToolSmtpConfig$: StaticStructureSchema;
|
|
45
|
+
export declare var ToolVariable$: StaticStructureSchema;
|
|
46
|
+
export declare var ToolWebhookAuthBasic$: StaticStructureSchema;
|
|
47
|
+
export declare var ToolWebhookAuthBearer$: StaticStructureSchema;
|
|
48
|
+
export declare var ToolWebhookAuthOAuth$: StaticStructureSchema;
|
|
49
|
+
export declare var ToolWebhookConfig$: StaticStructureSchema;
|
|
50
|
+
export declare var ToolWebhookHeader$: StaticStructureSchema;
|
|
51
|
+
export declare var ToolWnsEmailConfig$: StaticStructureSchema;
|
|
52
|
+
export declare var UpdateToolInput$: StaticStructureSchema;
|
|
53
|
+
export declare var UpdateToolOutput$: StaticStructureSchema;
|
|
54
|
+
export declare var ToolChatRecipient$: StaticUnionSchema;
|
|
55
|
+
export declare var ToolEmailHandler$: StaticUnionSchema;
|
|
56
|
+
export declare var ToolHandler$: StaticUnionSchema;
|
|
57
|
+
export declare var ToolMcpAuthorization$: StaticUnionSchema;
|
|
58
|
+
export declare var ToolWebhookAuth$: StaticUnionSchema;
|
|
59
|
+
export declare var CreateTool$: StaticOperationSchema;
|
|
60
|
+
export declare var DeleteTool$: StaticOperationSchema;
|
|
61
|
+
export declare var DescribeTools$: StaticOperationSchema;
|
|
62
|
+
export declare var DiscoverTools$: StaticOperationSchema;
|
|
63
|
+
export declare var ExecuteTool$: StaticOperationSchema;
|
|
64
|
+
export declare var GetTool$: StaticOperationSchema;
|
|
65
|
+
export declare var ListTools$: StaticOperationSchema;
|
|
66
|
+
export declare var UpdateTool$: StaticOperationSchema;
|