@wildix/xbees-users-client 1.0.43 → 1.0.45
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/models/models_0.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +3 -3
- package/dist-es/models/models_0.js +2 -2
- package/dist-es/protocols/Aws_restJson1.js +3 -3
- package/dist-types/commands/CreateBotCommand.d.ts +1 -1
- package/dist-types/commands/GetBotCallbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +7 -7
- package/package.json +2 -2
|
@@ -122,8 +122,8 @@ var BotLlmFunctionIntegration;
|
|
|
122
122
|
BotLlmFunctionIntegration.visit = (value, visitor) => {
|
|
123
123
|
if (value.webhook !== undefined)
|
|
124
124
|
return visitor.webhook(value.webhook);
|
|
125
|
-
if (value.
|
|
126
|
-
return visitor.
|
|
125
|
+
if (value.tool !== undefined)
|
|
126
|
+
return visitor.tool(value.tool);
|
|
127
127
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
128
128
|
};
|
|
129
129
|
})(BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = BotLlmFunctionIntegration = {}));
|
|
@@ -1251,7 +1251,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
|
|
|
1251
1251
|
};
|
|
1252
1252
|
const se_BotLlmFunctionIntegration = (input, context) => {
|
|
1253
1253
|
return models_0_1.BotLlmFunctionIntegration.visit(input, {
|
|
1254
|
-
|
|
1254
|
+
tool: value => ({ "tool": (0, smithy_client_1._json)(value) }),
|
|
1255
1255
|
webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
|
|
1256
1256
|
_: (name, value) => ({ [name]: value })
|
|
1257
1257
|
});
|
|
@@ -1351,9 +1351,9 @@ const de_BotLlmFunctionDefinition = (output, context) => {
|
|
|
1351
1351
|
});
|
|
1352
1352
|
};
|
|
1353
1353
|
const de_BotLlmFunctionIntegration = (output, context) => {
|
|
1354
|
-
if (output.
|
|
1354
|
+
if (output.tool != null) {
|
|
1355
1355
|
return {
|
|
1356
|
-
|
|
1356
|
+
tool: (0, smithy_client_1._json)(output.tool)
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
1359
|
if (output.webhook != null) {
|
|
@@ -116,8 +116,8 @@ export var BotLlmFunctionIntegration;
|
|
|
116
116
|
BotLlmFunctionIntegration.visit = (value, visitor) => {
|
|
117
117
|
if (value.webhook !== undefined)
|
|
118
118
|
return visitor.webhook(value.webhook);
|
|
119
|
-
if (value.
|
|
120
|
-
return visitor.
|
|
119
|
+
if (value.tool !== undefined)
|
|
120
|
+
return visitor.tool(value.tool);
|
|
121
121
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
122
122
|
};
|
|
123
123
|
})(BotLlmFunctionIntegration || (BotLlmFunctionIntegration = {}));
|
|
@@ -1181,7 +1181,7 @@ const se_BotLlmFunctionDefinition = (input, context) => {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
const se_BotLlmFunctionIntegration = (input, context) => {
|
|
1183
1183
|
return BotLlmFunctionIntegration.visit(input, {
|
|
1184
|
-
|
|
1184
|
+
tool: value => ({ "tool": _json(value) }),
|
|
1185
1185
|
webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
|
|
1186
1186
|
_: (name, value) => ({ [name]: value })
|
|
1187
1187
|
});
|
|
@@ -1281,9 +1281,9 @@ const de_BotLlmFunctionDefinition = (output, context) => {
|
|
|
1281
1281
|
});
|
|
1282
1282
|
};
|
|
1283
1283
|
const de_BotLlmFunctionIntegration = (output, context) => {
|
|
1284
|
-
if (output.
|
|
1284
|
+
if (output.tool != null) {
|
|
1285
1285
|
return {
|
|
1286
|
-
|
|
1286
|
+
tool: _json(output.tool)
|
|
1287
1287
|
};
|
|
1288
1288
|
}
|
|
1289
1289
|
if (output.webhook != null) {
|
|
@@ -88,7 +88,7 @@ declare const CreateBotCommand_base: {
|
|
|
88
88
|
* timeout: Number("int"),
|
|
89
89
|
* parameters: "DOCUMENT_VALUE",
|
|
90
90
|
* },
|
|
91
|
-
*
|
|
91
|
+
* tool: { // BotLlmFunctionIntegrationTool
|
|
92
92
|
* toolId: "STRING_VALUE", // required
|
|
93
93
|
* },
|
|
94
94
|
* },
|
|
@@ -89,7 +89,7 @@ declare const GetBotCallbackCommand_base: {
|
|
|
89
89
|
* // timeout: Number("int"),
|
|
90
90
|
* // parameters: "DOCUMENT_VALUE",
|
|
91
91
|
* // },
|
|
92
|
-
* //
|
|
92
|
+
* // tool: { // BotLlmFunctionIntegrationTool
|
|
93
93
|
* // toolId: "STRING_VALUE", // required
|
|
94
94
|
* // },
|
|
95
95
|
* // },
|
|
@@ -85,7 +85,7 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
85
85
|
* timeout: Number("int"),
|
|
86
86
|
* parameters: "DOCUMENT_VALUE",
|
|
87
87
|
* },
|
|
88
|
-
*
|
|
88
|
+
* tool: { // BotLlmFunctionIntegrationTool
|
|
89
89
|
* toolId: "STRING_VALUE", // required
|
|
90
90
|
* },
|
|
91
91
|
* },
|
|
@@ -165,7 +165,7 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
165
165
|
* // timeout: Number("int"),
|
|
166
166
|
* // parameters: "DOCUMENT_VALUE",
|
|
167
167
|
* // },
|
|
168
|
-
* //
|
|
168
|
+
* // tool: { // BotLlmFunctionIntegrationTool
|
|
169
169
|
* // toolId: "STRING_VALUE", // required
|
|
170
170
|
* // },
|
|
171
171
|
* // },
|
|
@@ -621,7 +621,7 @@ export interface BotLlmEmbeddedTool {
|
|
|
621
621
|
/**
|
|
622
622
|
* @public
|
|
623
623
|
*/
|
|
624
|
-
export interface
|
|
624
|
+
export interface BotLlmFunctionIntegrationTool {
|
|
625
625
|
/**
|
|
626
626
|
* The ID of the AI Tool from wim-tools service
|
|
627
627
|
* @public
|
|
@@ -734,19 +734,19 @@ export interface BotLlmFunctionIntegrationWebhook {
|
|
|
734
734
|
/**
|
|
735
735
|
* @public
|
|
736
736
|
*/
|
|
737
|
-
export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.
|
|
737
|
+
export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.ToolMember | BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
|
|
738
738
|
/**
|
|
739
739
|
* @public
|
|
740
740
|
*/
|
|
741
741
|
export declare namespace BotLlmFunctionIntegration {
|
|
742
742
|
interface WebhookMember {
|
|
743
743
|
webhook: BotLlmFunctionIntegrationWebhook;
|
|
744
|
-
|
|
744
|
+
tool?: never;
|
|
745
745
|
$unknown?: never;
|
|
746
746
|
}
|
|
747
|
-
interface
|
|
747
|
+
interface ToolMember {
|
|
748
748
|
webhook?: never;
|
|
749
|
-
|
|
749
|
+
tool: BotLlmFunctionIntegrationTool;
|
|
750
750
|
$unknown?: never;
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
@@ -754,12 +754,12 @@ export declare namespace BotLlmFunctionIntegration {
|
|
|
754
754
|
*/
|
|
755
755
|
interface $UnknownMember {
|
|
756
756
|
webhook?: never;
|
|
757
|
-
|
|
757
|
+
tool?: never;
|
|
758
758
|
$unknown: [string, any];
|
|
759
759
|
}
|
|
760
760
|
interface Visitor<T> {
|
|
761
761
|
webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
|
|
762
|
-
|
|
762
|
+
tool: (value: BotLlmFunctionIntegrationTool) => T;
|
|
763
763
|
_: (name: string, value: any) => T;
|
|
764
764
|
}
|
|
765
765
|
const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.45",
|
|
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",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"react-native": {
|
|
81
81
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|