@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,86 +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
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @public
|
|
61
|
-
* @enum
|
|
62
|
-
*/
|
|
63
|
-
export declare const ToolCalendarOperation: {
|
|
64
|
-
readonly CANCEL: "cancel";
|
|
65
|
-
readonly GET_SLOTS: "get_slots";
|
|
66
|
-
readonly LIST_RESOURCE_EVENTS: "list_resource_events";
|
|
67
|
-
readonly RESCHEDULE: "reschedule";
|
|
68
|
-
readonly SCHEDULE: "schedule";
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
export type ToolCalendarOperation = typeof ToolCalendarOperation[keyof typeof ToolCalendarOperation];
|
|
74
|
-
/**
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
export interface ToolCalendarConfig {
|
|
78
|
-
/**
|
|
79
|
-
* Calendar operation executed by the tool. Use separate tools per operation and keep the operation fixed in the handler instead of passing it in runtime input.
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
|
-
operation: ToolCalendarOperation;
|
|
83
|
-
}
|
|
1
|
+
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
+
import type { ToolVariableType, ToolWebhookMethod } from "./enums";
|
|
84
3
|
/**
|
|
85
4
|
* @public
|
|
86
5
|
*/
|
|
@@ -115,12 +34,15 @@ export declare namespace ToolChatRecipient {
|
|
|
115
34
|
userId?: never;
|
|
116
35
|
$unknown: [string, any];
|
|
117
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated unused in schema-serde mode.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
118
41
|
interface Visitor<T> {
|
|
119
42
|
channelId: (value: string) => T;
|
|
120
43
|
userId: (value: string) => T;
|
|
121
44
|
_: (name: string, value: any) => T;
|
|
122
45
|
}
|
|
123
|
-
const visit: <T>(value: ToolChatRecipient, visitor: Visitor<T>) => T;
|
|
124
46
|
}
|
|
125
47
|
/**
|
|
126
48
|
* @public
|
|
@@ -286,12 +208,15 @@ export declare namespace ToolEmailHandler {
|
|
|
286
208
|
custom?: never;
|
|
287
209
|
$unknown: [string, any];
|
|
288
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* @deprecated unused in schema-serde mode.
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
289
215
|
interface Visitor<T> {
|
|
290
216
|
wns: (value: ToolWnsEmailConfig) => T;
|
|
291
217
|
custom: (value: ToolCustomEmailConfig) => T;
|
|
292
218
|
_: (name: string, value: any) => T;
|
|
293
219
|
}
|
|
294
|
-
const visit: <T>(value: ToolEmailHandler, visitor: Visitor<T>) => T;
|
|
295
220
|
}
|
|
296
221
|
/**
|
|
297
222
|
* @public
|
|
@@ -337,12 +262,15 @@ export declare namespace ToolMcpAuthorization {
|
|
|
337
262
|
customHeaders?: never;
|
|
338
263
|
$unknown: [string, any];
|
|
339
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated unused in schema-serde mode.
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
340
269
|
interface Visitor<T> {
|
|
341
270
|
bearer: (value: ToolWebhookAuthBearer) => T;
|
|
342
271
|
customHeaders: (value: Record<string, string>) => T;
|
|
343
272
|
_: (name: string, value: any) => T;
|
|
344
273
|
}
|
|
345
|
-
const visit: <T>(value: ToolMcpAuthorization, visitor: Visitor<T>) => T;
|
|
346
274
|
}
|
|
347
275
|
/**
|
|
348
276
|
* @public
|
|
@@ -362,7 +290,7 @@ export interface ToolMcpHandler {
|
|
|
362
290
|
* List of tools enabled for this MCP server.
|
|
363
291
|
* @public
|
|
364
292
|
*/
|
|
365
|
-
tools:
|
|
293
|
+
tools: string[];
|
|
366
294
|
}
|
|
367
295
|
/**
|
|
368
296
|
* @public
|
|
@@ -388,12 +316,12 @@ export interface ToolSearchConfig {
|
|
|
388
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.
|
|
389
317
|
* @public
|
|
390
318
|
*/
|
|
391
|
-
includeDomains?:
|
|
319
|
+
includeDomains?: string[] | undefined;
|
|
392
320
|
/**
|
|
393
321
|
* When non-empty, omit results from these domains or hosts. Same hostname rules as includeDomains. Can be combined with includeDomains per Tavily API.
|
|
394
322
|
* @public
|
|
395
323
|
*/
|
|
396
|
-
excludeDomains?:
|
|
324
|
+
excludeDomains?: string[] | undefined;
|
|
397
325
|
}
|
|
398
326
|
/**
|
|
399
327
|
* @public
|
|
@@ -512,13 +440,16 @@ export declare namespace ToolWebhookAuth {
|
|
|
512
440
|
oauth?: never;
|
|
513
441
|
$unknown: [string, any];
|
|
514
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* @deprecated unused in schema-serde mode.
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
515
447
|
interface Visitor<T> {
|
|
516
448
|
basic: (value: ToolWebhookAuthBasic) => T;
|
|
517
449
|
bearer: (value: ToolWebhookAuthBearer) => T;
|
|
518
450
|
oauth: (value: ToolWebhookAuthOAuth) => T;
|
|
519
451
|
_: (name: string, value: any) => T;
|
|
520
452
|
}
|
|
521
|
-
const visit: <T>(value: ToolWebhookAuth, visitor: Visitor<T>) => T;
|
|
522
453
|
}
|
|
523
454
|
/**
|
|
524
455
|
* @public
|
|
@@ -535,21 +466,6 @@ export interface ToolWebhookHeader {
|
|
|
535
466
|
*/
|
|
536
467
|
value: string;
|
|
537
468
|
}
|
|
538
|
-
/**
|
|
539
|
-
* @public
|
|
540
|
-
* @enum
|
|
541
|
-
*/
|
|
542
|
-
export declare const ToolWebhookMethod: {
|
|
543
|
-
readonly DELETE: "DELETE";
|
|
544
|
-
readonly GET: "GET";
|
|
545
|
-
readonly PATCH: "PATCH";
|
|
546
|
-
readonly POST: "POST";
|
|
547
|
-
readonly PUT: "PUT";
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* @public
|
|
551
|
-
*/
|
|
552
|
-
export type ToolWebhookMethod = typeof ToolWebhookMethod[keyof typeof ToolWebhookMethod];
|
|
553
469
|
/**
|
|
554
470
|
* @public
|
|
555
471
|
*/
|
|
@@ -568,7 +484,7 @@ export interface ToolWebhookConfig {
|
|
|
568
484
|
* HTTP headers for the webhook request. For custom authentication headers (e.g., X-API-Key), add them here instead of using auth.customHeader
|
|
569
485
|
* @public
|
|
570
486
|
*/
|
|
571
|
-
headers?:
|
|
487
|
+
headers?: ToolWebhookHeader[] | undefined;
|
|
572
488
|
/**
|
|
573
489
|
* Request body for POST, PUT, or PATCH requests
|
|
574
490
|
* @public
|
|
@@ -588,7 +504,7 @@ export interface ToolWebhookConfig {
|
|
|
588
504
|
/**
|
|
589
505
|
* @public
|
|
590
506
|
*/
|
|
591
|
-
export type ToolHandler = ToolHandler.
|
|
507
|
+
export type ToolHandler = ToolHandler.ChatMember | ToolHandler.EmailMember | ToolHandler.McpMember | ToolHandler.McpToolMember | ToolHandler.SearchMember | ToolHandler.SmsMember | ToolHandler.WebhookMember | ToolHandler.$UnknownMember;
|
|
592
508
|
/**
|
|
593
509
|
* @public
|
|
594
510
|
*/
|
|
@@ -599,7 +515,6 @@ export declare namespace ToolHandler {
|
|
|
599
515
|
search?: never;
|
|
600
516
|
chat?: never;
|
|
601
517
|
sms?: never;
|
|
602
|
-
calendar?: never;
|
|
603
518
|
mcp?: never;
|
|
604
519
|
mcpTool?: never;
|
|
605
520
|
$unknown?: never;
|
|
@@ -610,7 +525,6 @@ export declare namespace ToolHandler {
|
|
|
610
525
|
search?: never;
|
|
611
526
|
chat?: never;
|
|
612
527
|
sms?: never;
|
|
613
|
-
calendar?: never;
|
|
614
528
|
mcp?: never;
|
|
615
529
|
mcpTool?: never;
|
|
616
530
|
$unknown?: never;
|
|
@@ -625,7 +539,6 @@ export declare namespace ToolHandler {
|
|
|
625
539
|
search: ToolSearchConfig;
|
|
626
540
|
chat?: never;
|
|
627
541
|
sms?: never;
|
|
628
|
-
calendar?: never;
|
|
629
542
|
mcp?: never;
|
|
630
543
|
mcpTool?: never;
|
|
631
544
|
$unknown?: never;
|
|
@@ -636,7 +549,6 @@ export declare namespace ToolHandler {
|
|
|
636
549
|
search?: never;
|
|
637
550
|
chat: ToolChatHandler;
|
|
638
551
|
sms?: never;
|
|
639
|
-
calendar?: never;
|
|
640
552
|
mcp?: never;
|
|
641
553
|
mcpTool?: never;
|
|
642
554
|
$unknown?: never;
|
|
@@ -647,18 +559,6 @@ export declare namespace ToolHandler {
|
|
|
647
559
|
search?: never;
|
|
648
560
|
chat?: never;
|
|
649
561
|
sms: ToolSmsHandler;
|
|
650
|
-
calendar?: never;
|
|
651
|
-
mcp?: never;
|
|
652
|
-
mcpTool?: never;
|
|
653
|
-
$unknown?: never;
|
|
654
|
-
}
|
|
655
|
-
interface CalendarMember {
|
|
656
|
-
email?: never;
|
|
657
|
-
webhook?: never;
|
|
658
|
-
search?: never;
|
|
659
|
-
chat?: never;
|
|
660
|
-
sms?: never;
|
|
661
|
-
calendar: ToolCalendarConfig;
|
|
662
562
|
mcp?: never;
|
|
663
563
|
mcpTool?: never;
|
|
664
564
|
$unknown?: never;
|
|
@@ -669,7 +569,6 @@ export declare namespace ToolHandler {
|
|
|
669
569
|
search?: never;
|
|
670
570
|
chat?: never;
|
|
671
571
|
sms?: never;
|
|
672
|
-
calendar?: never;
|
|
673
572
|
mcp: ToolMcpHandler;
|
|
674
573
|
mcpTool?: never;
|
|
675
574
|
$unknown?: never;
|
|
@@ -680,7 +579,6 @@ export declare namespace ToolHandler {
|
|
|
680
579
|
search?: never;
|
|
681
580
|
chat?: never;
|
|
682
581
|
sms?: never;
|
|
683
|
-
calendar?: never;
|
|
684
582
|
mcp?: never;
|
|
685
583
|
mcpTool: ToolMcpToolHandler;
|
|
686
584
|
$unknown?: never;
|
|
@@ -694,40 +592,25 @@ export declare namespace ToolHandler {
|
|
|
694
592
|
search?: never;
|
|
695
593
|
chat?: never;
|
|
696
594
|
sms?: never;
|
|
697
|
-
calendar?: never;
|
|
698
595
|
mcp?: never;
|
|
699
596
|
mcpTool?: never;
|
|
700
597
|
$unknown: [string, any];
|
|
701
598
|
}
|
|
599
|
+
/**
|
|
600
|
+
* @deprecated unused in schema-serde mode.
|
|
601
|
+
*
|
|
602
|
+
*/
|
|
702
603
|
interface Visitor<T> {
|
|
703
604
|
email: (value: ToolEmailHandler) => T;
|
|
704
605
|
webhook: (value: ToolWebhookConfig) => T;
|
|
705
606
|
search: (value: ToolSearchConfig) => T;
|
|
706
607
|
chat: (value: ToolChatHandler) => T;
|
|
707
608
|
sms: (value: ToolSmsHandler) => T;
|
|
708
|
-
calendar: (value: ToolCalendarConfig) => T;
|
|
709
609
|
mcp: (value: ToolMcpHandler) => T;
|
|
710
610
|
mcpTool: (value: ToolMcpToolHandler) => T;
|
|
711
611
|
_: (name: string, value: any) => T;
|
|
712
612
|
}
|
|
713
|
-
const visit: <T>(value: ToolHandler, visitor: Visitor<T>) => T;
|
|
714
613
|
}
|
|
715
|
-
/**
|
|
716
|
-
* @public
|
|
717
|
-
* @enum
|
|
718
|
-
*/
|
|
719
|
-
export declare const ToolVariableType: {
|
|
720
|
-
readonly BOOLEAN: "boolean";
|
|
721
|
-
readonly NUMBER: "number";
|
|
722
|
-
readonly NUMBER_ARRAY: "number_array";
|
|
723
|
-
readonly SCHEMA: "schema";
|
|
724
|
-
readonly STRING: "string";
|
|
725
|
-
readonly STRING_ARRAY: "string_array";
|
|
726
|
-
};
|
|
727
|
-
/**
|
|
728
|
-
* @public
|
|
729
|
-
*/
|
|
730
|
-
export type ToolVariableType = typeof ToolVariableType[keyof typeof ToolVariableType];
|
|
731
614
|
/**
|
|
732
615
|
* @public
|
|
733
616
|
*/
|
|
@@ -766,7 +649,7 @@ export interface ToolInput {
|
|
|
766
649
|
* List of tool variables, used to pass data to the tool
|
|
767
650
|
* @public
|
|
768
651
|
*/
|
|
769
|
-
variables:
|
|
652
|
+
variables: ToolVariable[];
|
|
770
653
|
}
|
|
771
654
|
/**
|
|
772
655
|
* @public
|
|
@@ -849,38 +732,6 @@ export interface Tool {
|
|
|
849
732
|
export interface CreateToolOutput {
|
|
850
733
|
tool: Tool;
|
|
851
734
|
}
|
|
852
|
-
/**
|
|
853
|
-
* @public
|
|
854
|
-
*/
|
|
855
|
-
export declare class ToolExecutionException extends __BaseException {
|
|
856
|
-
readonly name: "ToolExecutionException";
|
|
857
|
-
readonly $fault: "client";
|
|
858
|
-
/**
|
|
859
|
-
* Details about the execution error, typically related to invalid configuration or input
|
|
860
|
-
* @public
|
|
861
|
-
*/
|
|
862
|
-
details?: __DocumentType | undefined;
|
|
863
|
-
/**
|
|
864
|
-
* @internal
|
|
865
|
-
*/
|
|
866
|
-
constructor(opts: __ExceptionOptionType<ToolExecutionException, __BaseException>);
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* @public
|
|
870
|
-
*/
|
|
871
|
-
export declare class ToolExecutionServerException extends __BaseException {
|
|
872
|
-
readonly name: "ToolExecutionServerException";
|
|
873
|
-
readonly $fault: "server";
|
|
874
|
-
/**
|
|
875
|
-
* Details about the server failure during tool execution
|
|
876
|
-
* @public
|
|
877
|
-
*/
|
|
878
|
-
details?: __DocumentType | undefined;
|
|
879
|
-
/**
|
|
880
|
-
* @internal
|
|
881
|
-
*/
|
|
882
|
-
constructor(opts: __ExceptionOptionType<ToolExecutionServerException, __BaseException>);
|
|
883
|
-
}
|
|
884
735
|
/**
|
|
885
736
|
* @public
|
|
886
737
|
*/
|
|
@@ -914,7 +765,7 @@ export interface DescribeToolsInput {
|
|
|
914
765
|
* List of tool IDs.
|
|
915
766
|
* @public
|
|
916
767
|
*/
|
|
917
|
-
ids:
|
|
768
|
+
ids: string[];
|
|
918
769
|
}
|
|
919
770
|
/**
|
|
920
771
|
* @public
|
|
@@ -939,7 +790,7 @@ export interface ToolDescription {
|
|
|
939
790
|
* List of tool variables, used to pass data to the tool
|
|
940
791
|
* @public
|
|
941
792
|
*/
|
|
942
|
-
variables:
|
|
793
|
+
variables: ToolVariable[];
|
|
943
794
|
}
|
|
944
795
|
/**
|
|
945
796
|
* @public
|
|
@@ -949,7 +800,7 @@ export interface DescribeToolsOutput {
|
|
|
949
800
|
* List of tool descriptions.
|
|
950
801
|
* @public
|
|
951
802
|
*/
|
|
952
|
-
descriptions:
|
|
803
|
+
descriptions: ToolDescription[];
|
|
953
804
|
}
|
|
954
805
|
/**
|
|
955
806
|
* @public
|
|
@@ -999,7 +850,7 @@ export interface DiscoverToolsOutput {
|
|
|
999
850
|
* List of discovered tools from the MCP server
|
|
1000
851
|
* @public
|
|
1001
852
|
*/
|
|
1002
|
-
tools:
|
|
853
|
+
tools: DiscoveredTool[];
|
|
1003
854
|
}
|
|
1004
855
|
/**
|
|
1005
856
|
* @public
|
|
@@ -1094,7 +945,7 @@ export interface ListToolsOutput {
|
|
|
1094
945
|
* List of tools.
|
|
1095
946
|
* @public
|
|
1096
947
|
*/
|
|
1097
|
-
tools:
|
|
948
|
+
tools: Tool[];
|
|
1098
949
|
}
|
|
1099
950
|
/**
|
|
1100
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
|
};
|