@wildix/xbees-users-client 1.3.0 → 1.3.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/models/models_0.js +15 -1
- package/dist-cjs/protocols/Aws_restJson1.js +5 -0
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_restJson1.js +5 -0
- package/dist-types/commands/CreateBotCommand.d.ts +64 -0
- package/dist-types/commands/GetBotCallbackCommand.d.ts +64 -0
- package/dist-types/commands/InviteCommand.d.ts +9 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +128 -0
- package/dist-types/models/models_0.d.ts +155 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.WorkspaceType = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.AnonymousEntryContext = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.WorkspaceType = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotToolAnnotation = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.AnonymousEntryContext = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const UsersServiceException_1 = require("./UsersServiceException");
|
|
5
5
|
class ForbiddenException extends UsersServiceException_1.UsersServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -147,6 +147,20 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
|
|
150
|
+
var BotToolAnnotation;
|
|
151
|
+
(function (BotToolAnnotation) {
|
|
152
|
+
BotToolAnnotation.visit = (value, visitor) => {
|
|
153
|
+
if (value.tag !== undefined)
|
|
154
|
+
return visitor.tag(value.tag);
|
|
155
|
+
if (value.comment !== undefined)
|
|
156
|
+
return visitor.comment(value.comment);
|
|
157
|
+
if (value.variables !== undefined)
|
|
158
|
+
return visitor.variables(value.variables);
|
|
159
|
+
if (value.result !== undefined)
|
|
160
|
+
return visitor.result(value.result);
|
|
161
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
162
|
+
};
|
|
163
|
+
})(BotToolAnnotation || (exports.BotToolAnnotation = BotToolAnnotation = {}));
|
|
150
164
|
exports.BotCapabilityToolPipelineType = {
|
|
151
165
|
ASYNC_REQUEST: "async_request",
|
|
152
166
|
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
@@ -1077,6 +1077,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1079
1079
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1080
|
+
'skippedInvitees': smithy_client_1._json,
|
|
1080
1081
|
'users': smithy_client_1._json,
|
|
1081
1082
|
});
|
|
1082
1083
|
Object.assign(contents, doc);
|
|
@@ -1733,6 +1734,7 @@ const se_BotEndpoint = (input, context) => {
|
|
|
1733
1734
|
};
|
|
1734
1735
|
const se_BotLlmEmbeddedTool = (input, context) => {
|
|
1735
1736
|
return (0, smithy_client_1.take)(input, {
|
|
1737
|
+
'annotations': smithy_client_1._json,
|
|
1736
1738
|
'name': [],
|
|
1737
1739
|
'parameters': _ => se_Document(_, context),
|
|
1738
1740
|
'type': [],
|
|
@@ -1780,6 +1782,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
|
|
|
1780
1782
|
};
|
|
1781
1783
|
const se_BotLlmTool = (input, context) => {
|
|
1782
1784
|
return (0, smithy_client_1.take)(input, {
|
|
1785
|
+
'annotations': smithy_client_1._json,
|
|
1783
1786
|
'function': _ => se_BotLlmFunctionDefinition(_, context),
|
|
1784
1787
|
'type': [],
|
|
1785
1788
|
});
|
|
@@ -1835,6 +1838,7 @@ const de_BotEndpoint = (output, context) => {
|
|
|
1835
1838
|
};
|
|
1836
1839
|
const de_BotLlmEmbeddedTool = (output, context) => {
|
|
1837
1840
|
return (0, smithy_client_1.take)(output, {
|
|
1841
|
+
'annotations': smithy_client_1._json,
|
|
1838
1842
|
'name': smithy_client_1.expectString,
|
|
1839
1843
|
'parameters': (_) => de_Document(_, context),
|
|
1840
1844
|
'type': smithy_client_1.expectString,
|
|
@@ -1885,6 +1889,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
|
|
|
1885
1889
|
};
|
|
1886
1890
|
const de_BotLlmTool = (output, context) => {
|
|
1887
1891
|
return (0, smithy_client_1.take)(output, {
|
|
1892
|
+
'annotations': smithy_client_1._json,
|
|
1888
1893
|
'function': (_) => de_BotLlmFunctionDefinition(_, context),
|
|
1889
1894
|
'type': smithy_client_1.expectString,
|
|
1890
1895
|
});
|
|
@@ -138,6 +138,20 @@ export class BotApiKeyNotFoundException extends __BaseException {
|
|
|
138
138
|
Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
export var BotToolAnnotation;
|
|
142
|
+
(function (BotToolAnnotation) {
|
|
143
|
+
BotToolAnnotation.visit = (value, visitor) => {
|
|
144
|
+
if (value.tag !== undefined)
|
|
145
|
+
return visitor.tag(value.tag);
|
|
146
|
+
if (value.comment !== undefined)
|
|
147
|
+
return visitor.comment(value.comment);
|
|
148
|
+
if (value.variables !== undefined)
|
|
149
|
+
return visitor.variables(value.variables);
|
|
150
|
+
if (value.result !== undefined)
|
|
151
|
+
return visitor.result(value.result);
|
|
152
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
153
|
+
};
|
|
154
|
+
})(BotToolAnnotation || (BotToolAnnotation = {}));
|
|
141
155
|
export const BotCapabilityToolPipelineType = {
|
|
142
156
|
ASYNC_REQUEST: "async_request",
|
|
143
157
|
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
@@ -1007,6 +1007,7 @@ export const de_InviteCommand = async (output, context) => {
|
|
|
1007
1007
|
});
|
|
1008
1008
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1009
1009
|
const doc = take(data, {
|
|
1010
|
+
'skippedInvitees': _json,
|
|
1010
1011
|
'users': _json,
|
|
1011
1012
|
});
|
|
1012
1013
|
Object.assign(contents, doc);
|
|
@@ -1639,6 +1640,7 @@ const se_BotEndpoint = (input, context) => {
|
|
|
1639
1640
|
};
|
|
1640
1641
|
const se_BotLlmEmbeddedTool = (input, context) => {
|
|
1641
1642
|
return take(input, {
|
|
1643
|
+
'annotations': _json,
|
|
1642
1644
|
'name': [],
|
|
1643
1645
|
'parameters': _ => se_Document(_, context),
|
|
1644
1646
|
'type': [],
|
|
@@ -1686,6 +1688,7 @@ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
|
|
|
1686
1688
|
};
|
|
1687
1689
|
const se_BotLlmTool = (input, context) => {
|
|
1688
1690
|
return take(input, {
|
|
1691
|
+
'annotations': _json,
|
|
1689
1692
|
'function': _ => se_BotLlmFunctionDefinition(_, context),
|
|
1690
1693
|
'type': [],
|
|
1691
1694
|
});
|
|
@@ -1741,6 +1744,7 @@ const de_BotEndpoint = (output, context) => {
|
|
|
1741
1744
|
};
|
|
1742
1745
|
const de_BotLlmEmbeddedTool = (output, context) => {
|
|
1743
1746
|
return take(output, {
|
|
1747
|
+
'annotations': _json,
|
|
1744
1748
|
'name': __expectString,
|
|
1745
1749
|
'parameters': (_) => de_Document(_, context),
|
|
1746
1750
|
'type': __expectString,
|
|
@@ -1791,6 +1795,7 @@ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
|
|
|
1791
1795
|
};
|
|
1792
1796
|
const de_BotLlmTool = (output, context) => {
|
|
1793
1797
|
return take(output, {
|
|
1798
|
+
'annotations': _json,
|
|
1794
1799
|
'function': (_) => de_BotLlmFunctionDefinition(_, context),
|
|
1795
1800
|
'type': __expectString,
|
|
1796
1801
|
});
|
|
@@ -55,6 +55,22 @@ declare const CreateBotCommand_base: {
|
|
|
55
55
|
* type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
|
|
56
56
|
* name: "STRING_VALUE", // required
|
|
57
57
|
* parameters: "DOCUMENT_VALUE",
|
|
58
|
+
* annotations: [ // BotToolAnnotationsList
|
|
59
|
+
* { // BotToolAnnotation Union: only one key present
|
|
60
|
+
* tag: { // BotToolTagAnnotation
|
|
61
|
+
* value: "STRING_VALUE",
|
|
62
|
+
* applyOnSuccess: true || false,
|
|
63
|
+
* applyOnFailure: true || false,
|
|
64
|
+
* },
|
|
65
|
+
* comment: { // BotToolCommentAnnotation
|
|
66
|
+
* value: "STRING_VALUE",
|
|
67
|
+
* applyOnSuccess: true || false,
|
|
68
|
+
* applyOnFailure: true || false,
|
|
69
|
+
* },
|
|
70
|
+
* variables: {},
|
|
71
|
+
* result: {},
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
58
74
|
* },
|
|
59
75
|
* ],
|
|
60
76
|
* tools: [ // BotLlmToolsList
|
|
@@ -95,6 +111,22 @@ declare const CreateBotCommand_base: {
|
|
|
95
111
|
* },
|
|
96
112
|
* },
|
|
97
113
|
* },
|
|
114
|
+
* annotations: [
|
|
115
|
+
* {// Union: only one key present
|
|
116
|
+
* tag: {
|
|
117
|
+
* value: "STRING_VALUE",
|
|
118
|
+
* applyOnSuccess: true || false,
|
|
119
|
+
* applyOnFailure: true || false,
|
|
120
|
+
* },
|
|
121
|
+
* comment: {
|
|
122
|
+
* value: "STRING_VALUE",
|
|
123
|
+
* applyOnSuccess: true || false,
|
|
124
|
+
* applyOnFailure: true || false,
|
|
125
|
+
* },
|
|
126
|
+
* variables: {},
|
|
127
|
+
* result: {},
|
|
128
|
+
* },
|
|
129
|
+
* ],
|
|
98
130
|
* },
|
|
99
131
|
* ],
|
|
100
132
|
* capabilities: [ // BotCapabilitiesList
|
|
@@ -119,10 +151,42 @@ declare const CreateBotCommand_base: {
|
|
|
119
151
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
120
152
|
* instructions: "STRING_VALUE",
|
|
121
153
|
* },
|
|
154
|
+
* annotations: [
|
|
155
|
+
* {// Union: only one key present
|
|
156
|
+
* tag: {
|
|
157
|
+
* value: "STRING_VALUE",
|
|
158
|
+
* applyOnSuccess: true || false,
|
|
159
|
+
* applyOnFailure: true || false,
|
|
160
|
+
* },
|
|
161
|
+
* comment: {
|
|
162
|
+
* value: "STRING_VALUE",
|
|
163
|
+
* applyOnSuccess: true || false,
|
|
164
|
+
* applyOnFailure: true || false,
|
|
165
|
+
* },
|
|
166
|
+
* variables: {},
|
|
167
|
+
* result: {},
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
122
170
|
* },
|
|
123
171
|
* kb: { // BotKnowledgeBase
|
|
124
172
|
* knowledgeBaseId: "STRING_VALUE",
|
|
125
173
|
* instructions: "STRING_VALUE",
|
|
174
|
+
* annotations: [
|
|
175
|
+
* {// Union: only one key present
|
|
176
|
+
* tag: {
|
|
177
|
+
* value: "STRING_VALUE",
|
|
178
|
+
* applyOnSuccess: true || false,
|
|
179
|
+
* applyOnFailure: true || false,
|
|
180
|
+
* },
|
|
181
|
+
* comment: {
|
|
182
|
+
* value: "STRING_VALUE",
|
|
183
|
+
* applyOnSuccess: true || false,
|
|
184
|
+
* applyOnFailure: true || false,
|
|
185
|
+
* },
|
|
186
|
+
* variables: {},
|
|
187
|
+
* result: {},
|
|
188
|
+
* },
|
|
189
|
+
* ],
|
|
126
190
|
* },
|
|
127
191
|
* },
|
|
128
192
|
* ],
|
|
@@ -54,6 +54,22 @@ declare const GetBotCallbackCommand_base: {
|
|
|
54
54
|
* // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
|
|
55
55
|
* // name: "STRING_VALUE", // required
|
|
56
56
|
* // parameters: "DOCUMENT_VALUE",
|
|
57
|
+
* // annotations: [ // BotToolAnnotationsList
|
|
58
|
+
* // { // BotToolAnnotation Union: only one key present
|
|
59
|
+
* // tag: { // BotToolTagAnnotation
|
|
60
|
+
* // value: "STRING_VALUE",
|
|
61
|
+
* // applyOnSuccess: true || false,
|
|
62
|
+
* // applyOnFailure: true || false,
|
|
63
|
+
* // },
|
|
64
|
+
* // comment: { // BotToolCommentAnnotation
|
|
65
|
+
* // value: "STRING_VALUE",
|
|
66
|
+
* // applyOnSuccess: true || false,
|
|
67
|
+
* // applyOnFailure: true || false,
|
|
68
|
+
* // },
|
|
69
|
+
* // variables: {},
|
|
70
|
+
* // result: {},
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
57
73
|
* // },
|
|
58
74
|
* // ],
|
|
59
75
|
* // tools: [ // BotLlmToolsList
|
|
@@ -94,6 +110,22 @@ declare const GetBotCallbackCommand_base: {
|
|
|
94
110
|
* // },
|
|
95
111
|
* // },
|
|
96
112
|
* // },
|
|
113
|
+
* // annotations: [
|
|
114
|
+
* // {// Union: only one key present
|
|
115
|
+
* // tag: {
|
|
116
|
+
* // value: "STRING_VALUE",
|
|
117
|
+
* // applyOnSuccess: true || false,
|
|
118
|
+
* // applyOnFailure: true || false,
|
|
119
|
+
* // },
|
|
120
|
+
* // comment: {
|
|
121
|
+
* // value: "STRING_VALUE",
|
|
122
|
+
* // applyOnSuccess: true || false,
|
|
123
|
+
* // applyOnFailure: true || false,
|
|
124
|
+
* // },
|
|
125
|
+
* // variables: {},
|
|
126
|
+
* // result: {},
|
|
127
|
+
* // },
|
|
128
|
+
* // ],
|
|
97
129
|
* // },
|
|
98
130
|
* // ],
|
|
99
131
|
* // capabilities: [ // BotCapabilitiesList
|
|
@@ -118,10 +150,42 @@ declare const GetBotCallbackCommand_base: {
|
|
|
118
150
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
119
151
|
* // instructions: "STRING_VALUE",
|
|
120
152
|
* // },
|
|
153
|
+
* // annotations: [
|
|
154
|
+
* // {// Union: only one key present
|
|
155
|
+
* // tag: {
|
|
156
|
+
* // value: "STRING_VALUE",
|
|
157
|
+
* // applyOnSuccess: true || false,
|
|
158
|
+
* // applyOnFailure: true || false,
|
|
159
|
+
* // },
|
|
160
|
+
* // comment: {
|
|
161
|
+
* // value: "STRING_VALUE",
|
|
162
|
+
* // applyOnSuccess: true || false,
|
|
163
|
+
* // applyOnFailure: true || false,
|
|
164
|
+
* // },
|
|
165
|
+
* // variables: {},
|
|
166
|
+
* // result: {},
|
|
167
|
+
* // },
|
|
168
|
+
* // ],
|
|
121
169
|
* // },
|
|
122
170
|
* // kb: { // BotKnowledgeBase
|
|
123
171
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
124
172
|
* // instructions: "STRING_VALUE",
|
|
173
|
+
* // annotations: [
|
|
174
|
+
* // {// Union: only one key present
|
|
175
|
+
* // tag: {
|
|
176
|
+
* // value: "STRING_VALUE",
|
|
177
|
+
* // applyOnSuccess: true || false,
|
|
178
|
+
* // applyOnFailure: true || false,
|
|
179
|
+
* // },
|
|
180
|
+
* // comment: {
|
|
181
|
+
* // value: "STRING_VALUE",
|
|
182
|
+
* // applyOnSuccess: true || false,
|
|
183
|
+
* // applyOnFailure: true || false,
|
|
184
|
+
* // },
|
|
185
|
+
* // variables: {},
|
|
186
|
+
* // result: {},
|
|
187
|
+
* // },
|
|
188
|
+
* // ],
|
|
125
189
|
* // },
|
|
126
190
|
* // },
|
|
127
191
|
* // ],
|
|
@@ -28,6 +28,8 @@ declare const InviteCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Invite a list of users to x-bees. This operation creates an account for specified emails or phone numbers. Use this method to create users who can be added to conversations later.
|
|
31
|
+
* If an invitee resolves to an account that is currently deactivated in GetStream, the operation does not fail; instead, that invitee is reported in `skippedInvitees` and is not included in `users`.
|
|
32
|
+
*
|
|
31
33
|
* @example
|
|
32
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
35
|
* ```javascript
|
|
@@ -69,6 +71,13 @@ declare const InviteCommand_base: {
|
|
|
69
71
|
* // updatedAt: "STRING_VALUE",
|
|
70
72
|
* // },
|
|
71
73
|
* // ],
|
|
74
|
+
* // skippedInvitees: [ // SkippedMembersList // required
|
|
75
|
+
* // { // SkippedMember
|
|
76
|
+
* // id: "STRING_VALUE",
|
|
77
|
+
* // email: "STRING_VALUE",
|
|
78
|
+
* // phone: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
80
|
+
* // ],
|
|
72
81
|
* // };
|
|
73
82
|
*
|
|
74
83
|
* ```
|
|
@@ -50,6 +50,22 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
50
50
|
* type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
|
|
51
51
|
* name: "STRING_VALUE", // required
|
|
52
52
|
* parameters: "DOCUMENT_VALUE",
|
|
53
|
+
* annotations: [ // BotToolAnnotationsList
|
|
54
|
+
* { // BotToolAnnotation Union: only one key present
|
|
55
|
+
* tag: { // BotToolTagAnnotation
|
|
56
|
+
* value: "STRING_VALUE",
|
|
57
|
+
* applyOnSuccess: true || false,
|
|
58
|
+
* applyOnFailure: true || false,
|
|
59
|
+
* },
|
|
60
|
+
* comment: { // BotToolCommentAnnotation
|
|
61
|
+
* value: "STRING_VALUE",
|
|
62
|
+
* applyOnSuccess: true || false,
|
|
63
|
+
* applyOnFailure: true || false,
|
|
64
|
+
* },
|
|
65
|
+
* variables: {},
|
|
66
|
+
* result: {},
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
53
69
|
* },
|
|
54
70
|
* ],
|
|
55
71
|
* tools: [ // BotLlmToolsList
|
|
@@ -90,6 +106,22 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
90
106
|
* },
|
|
91
107
|
* },
|
|
92
108
|
* },
|
|
109
|
+
* annotations: [
|
|
110
|
+
* {// Union: only one key present
|
|
111
|
+
* tag: {
|
|
112
|
+
* value: "STRING_VALUE",
|
|
113
|
+
* applyOnSuccess: true || false,
|
|
114
|
+
* applyOnFailure: true || false,
|
|
115
|
+
* },
|
|
116
|
+
* comment: {
|
|
117
|
+
* value: "STRING_VALUE",
|
|
118
|
+
* applyOnSuccess: true || false,
|
|
119
|
+
* applyOnFailure: true || false,
|
|
120
|
+
* },
|
|
121
|
+
* variables: {},
|
|
122
|
+
* result: {},
|
|
123
|
+
* },
|
|
124
|
+
* ],
|
|
93
125
|
* },
|
|
94
126
|
* ],
|
|
95
127
|
* capabilities: [ // BotCapabilitiesList
|
|
@@ -114,10 +146,42 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
114
146
|
* type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
115
147
|
* instructions: "STRING_VALUE",
|
|
116
148
|
* },
|
|
149
|
+
* annotations: [
|
|
150
|
+
* {// Union: only one key present
|
|
151
|
+
* tag: {
|
|
152
|
+
* value: "STRING_VALUE",
|
|
153
|
+
* applyOnSuccess: true || false,
|
|
154
|
+
* applyOnFailure: true || false,
|
|
155
|
+
* },
|
|
156
|
+
* comment: {
|
|
157
|
+
* value: "STRING_VALUE",
|
|
158
|
+
* applyOnSuccess: true || false,
|
|
159
|
+
* applyOnFailure: true || false,
|
|
160
|
+
* },
|
|
161
|
+
* variables: {},
|
|
162
|
+
* result: {},
|
|
163
|
+
* },
|
|
164
|
+
* ],
|
|
117
165
|
* },
|
|
118
166
|
* kb: { // BotKnowledgeBase
|
|
119
167
|
* knowledgeBaseId: "STRING_VALUE",
|
|
120
168
|
* instructions: "STRING_VALUE",
|
|
169
|
+
* annotations: [
|
|
170
|
+
* {// Union: only one key present
|
|
171
|
+
* tag: {
|
|
172
|
+
* value: "STRING_VALUE",
|
|
173
|
+
* applyOnSuccess: true || false,
|
|
174
|
+
* applyOnFailure: true || false,
|
|
175
|
+
* },
|
|
176
|
+
* comment: {
|
|
177
|
+
* value: "STRING_VALUE",
|
|
178
|
+
* applyOnSuccess: true || false,
|
|
179
|
+
* applyOnFailure: true || false,
|
|
180
|
+
* },
|
|
181
|
+
* variables: {},
|
|
182
|
+
* result: {},
|
|
183
|
+
* },
|
|
184
|
+
* ],
|
|
121
185
|
* },
|
|
122
186
|
* },
|
|
123
187
|
* ],
|
|
@@ -160,6 +224,22 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
160
224
|
* // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
|
|
161
225
|
* // name: "STRING_VALUE", // required
|
|
162
226
|
* // parameters: "DOCUMENT_VALUE",
|
|
227
|
+
* // annotations: [ // BotToolAnnotationsList
|
|
228
|
+
* // { // BotToolAnnotation Union: only one key present
|
|
229
|
+
* // tag: { // BotToolTagAnnotation
|
|
230
|
+
* // value: "STRING_VALUE",
|
|
231
|
+
* // applyOnSuccess: true || false,
|
|
232
|
+
* // applyOnFailure: true || false,
|
|
233
|
+
* // },
|
|
234
|
+
* // comment: { // BotToolCommentAnnotation
|
|
235
|
+
* // value: "STRING_VALUE",
|
|
236
|
+
* // applyOnSuccess: true || false,
|
|
237
|
+
* // applyOnFailure: true || false,
|
|
238
|
+
* // },
|
|
239
|
+
* // variables: {},
|
|
240
|
+
* // result: {},
|
|
241
|
+
* // },
|
|
242
|
+
* // ],
|
|
163
243
|
* // },
|
|
164
244
|
* // ],
|
|
165
245
|
* // tools: [ // BotLlmToolsList
|
|
@@ -200,6 +280,22 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
200
280
|
* // },
|
|
201
281
|
* // },
|
|
202
282
|
* // },
|
|
283
|
+
* // annotations: [
|
|
284
|
+
* // {// Union: only one key present
|
|
285
|
+
* // tag: {
|
|
286
|
+
* // value: "STRING_VALUE",
|
|
287
|
+
* // applyOnSuccess: true || false,
|
|
288
|
+
* // applyOnFailure: true || false,
|
|
289
|
+
* // },
|
|
290
|
+
* // comment: {
|
|
291
|
+
* // value: "STRING_VALUE",
|
|
292
|
+
* // applyOnSuccess: true || false,
|
|
293
|
+
* // applyOnFailure: true || false,
|
|
294
|
+
* // },
|
|
295
|
+
* // variables: {},
|
|
296
|
+
* // result: {},
|
|
297
|
+
* // },
|
|
298
|
+
* // ],
|
|
203
299
|
* // },
|
|
204
300
|
* // ],
|
|
205
301
|
* // capabilities: [ // BotCapabilitiesList
|
|
@@ -224,10 +320,42 @@ declare const UpdateBotCallbackCommand_base: {
|
|
|
224
320
|
* // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
|
|
225
321
|
* // instructions: "STRING_VALUE",
|
|
226
322
|
* // },
|
|
323
|
+
* // annotations: [
|
|
324
|
+
* // {// Union: only one key present
|
|
325
|
+
* // tag: {
|
|
326
|
+
* // value: "STRING_VALUE",
|
|
327
|
+
* // applyOnSuccess: true || false,
|
|
328
|
+
* // applyOnFailure: true || false,
|
|
329
|
+
* // },
|
|
330
|
+
* // comment: {
|
|
331
|
+
* // value: "STRING_VALUE",
|
|
332
|
+
* // applyOnSuccess: true || false,
|
|
333
|
+
* // applyOnFailure: true || false,
|
|
334
|
+
* // },
|
|
335
|
+
* // variables: {},
|
|
336
|
+
* // result: {},
|
|
337
|
+
* // },
|
|
338
|
+
* // ],
|
|
227
339
|
* // },
|
|
228
340
|
* // kb: { // BotKnowledgeBase
|
|
229
341
|
* // knowledgeBaseId: "STRING_VALUE",
|
|
230
342
|
* // instructions: "STRING_VALUE",
|
|
343
|
+
* // annotations: [
|
|
344
|
+
* // {// Union: only one key present
|
|
345
|
+
* // tag: {
|
|
346
|
+
* // value: "STRING_VALUE",
|
|
347
|
+
* // applyOnSuccess: true || false,
|
|
348
|
+
* // applyOnFailure: true || false,
|
|
349
|
+
* // },
|
|
350
|
+
* // comment: {
|
|
351
|
+
* // value: "STRING_VALUE",
|
|
352
|
+
* // applyOnSuccess: true || false,
|
|
353
|
+
* // applyOnFailure: true || false,
|
|
354
|
+
* // },
|
|
355
|
+
* // variables: {},
|
|
356
|
+
* // result: {},
|
|
357
|
+
* // },
|
|
358
|
+
* // ],
|
|
231
359
|
* // },
|
|
232
360
|
* // },
|
|
233
361
|
* // ],
|
|
@@ -227,6 +227,26 @@ export interface UserToInvite {
|
|
|
227
227
|
*/
|
|
228
228
|
colleague?: boolean | undefined;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface SkippedMember {
|
|
234
|
+
/**
|
|
235
|
+
* The unique identifier of the skipped user if it is known.
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
id?: string | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* The email address of the skipped user if it is known.
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
email?: string | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* The phone number of the skipped user if it is known.
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
phone?: string | undefined;
|
|
249
|
+
}
|
|
230
250
|
/**
|
|
231
251
|
* @public
|
|
232
252
|
*/
|
|
@@ -731,6 +751,132 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
|
|
|
731
751
|
*/
|
|
732
752
|
constructor(opts: __ExceptionOptionType<BotApiKeyNotFoundException, __BaseException>);
|
|
733
753
|
}
|
|
754
|
+
/**
|
|
755
|
+
* Comment annotation emitted after a tool completes.
|
|
756
|
+
* @public
|
|
757
|
+
*/
|
|
758
|
+
export interface BotToolCommentAnnotation {
|
|
759
|
+
/**
|
|
760
|
+
* Static handlebars expression resolved against bot variables and helpers.
|
|
761
|
+
* @public
|
|
762
|
+
*/
|
|
763
|
+
value?: string | undefined;
|
|
764
|
+
/**
|
|
765
|
+
* Apply when the tool succeeds.
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
applyOnSuccess?: boolean | undefined;
|
|
769
|
+
/**
|
|
770
|
+
* Apply when the tool fails.
|
|
771
|
+
* @public
|
|
772
|
+
*/
|
|
773
|
+
applyOnFailure?: boolean | undefined;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* Result annotation emitted after a tool completes.
|
|
777
|
+
* @public
|
|
778
|
+
*/
|
|
779
|
+
export interface BotToolResultAnnotation {
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Tag annotation emitted after a tool completes.
|
|
783
|
+
* @public
|
|
784
|
+
*/
|
|
785
|
+
export interface BotToolTagAnnotation {
|
|
786
|
+
/**
|
|
787
|
+
* Static handlebars expression resolved against bot variables and helpers.
|
|
788
|
+
* @public
|
|
789
|
+
*/
|
|
790
|
+
value?: string | undefined;
|
|
791
|
+
/**
|
|
792
|
+
* Apply when the tool succeeds.
|
|
793
|
+
* @public
|
|
794
|
+
*/
|
|
795
|
+
applyOnSuccess?: boolean | undefined;
|
|
796
|
+
/**
|
|
797
|
+
* Apply when the tool fails.
|
|
798
|
+
* @public
|
|
799
|
+
*/
|
|
800
|
+
applyOnFailure?: boolean | undefined;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Variables annotation emitted after a tool completes.
|
|
804
|
+
* @public
|
|
805
|
+
*/
|
|
806
|
+
export interface BotToolVariablesAnnotation {
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Configuration for annotations emitted after a tool completes. Tag and comment annotations can provide a handlebars value, while variables and result annotations opt into logging runtime data.
|
|
810
|
+
* @public
|
|
811
|
+
*/
|
|
812
|
+
export type BotToolAnnotation = BotToolAnnotation.CommentMember | BotToolAnnotation.ResultMember | BotToolAnnotation.TagMember | BotToolAnnotation.VariablesMember | BotToolAnnotation.$UnknownMember;
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
*/
|
|
816
|
+
export declare namespace BotToolAnnotation {
|
|
817
|
+
/**
|
|
818
|
+
* Tag annotation emitted after a tool completes.
|
|
819
|
+
* @public
|
|
820
|
+
*/
|
|
821
|
+
interface TagMember {
|
|
822
|
+
tag: BotToolTagAnnotation;
|
|
823
|
+
comment?: never;
|
|
824
|
+
variables?: never;
|
|
825
|
+
result?: never;
|
|
826
|
+
$unknown?: never;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Comment annotation emitted after a tool completes.
|
|
830
|
+
* @public
|
|
831
|
+
*/
|
|
832
|
+
interface CommentMember {
|
|
833
|
+
tag?: never;
|
|
834
|
+
comment: BotToolCommentAnnotation;
|
|
835
|
+
variables?: never;
|
|
836
|
+
result?: never;
|
|
837
|
+
$unknown?: never;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Variables annotation emitted after a tool completes.
|
|
841
|
+
* @public
|
|
842
|
+
*/
|
|
843
|
+
interface VariablesMember {
|
|
844
|
+
tag?: never;
|
|
845
|
+
comment?: never;
|
|
846
|
+
variables: BotToolVariablesAnnotation;
|
|
847
|
+
result?: never;
|
|
848
|
+
$unknown?: never;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Result annotation emitted after a tool completes.
|
|
852
|
+
* @public
|
|
853
|
+
*/
|
|
854
|
+
interface ResultMember {
|
|
855
|
+
tag?: never;
|
|
856
|
+
comment?: never;
|
|
857
|
+
variables?: never;
|
|
858
|
+
result: BotToolResultAnnotation;
|
|
859
|
+
$unknown?: never;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @public
|
|
863
|
+
*/
|
|
864
|
+
interface $UnknownMember {
|
|
865
|
+
tag?: never;
|
|
866
|
+
comment?: never;
|
|
867
|
+
variables?: never;
|
|
868
|
+
result?: never;
|
|
869
|
+
$unknown: [string, any];
|
|
870
|
+
}
|
|
871
|
+
interface Visitor<T> {
|
|
872
|
+
tag: (value: BotToolTagAnnotation) => T;
|
|
873
|
+
comment: (value: BotToolCommentAnnotation) => T;
|
|
874
|
+
variables: (value: BotToolVariablesAnnotation) => T;
|
|
875
|
+
result: (value: BotToolResultAnnotation) => T;
|
|
876
|
+
_: (name: string, value: any) => T;
|
|
877
|
+
}
|
|
878
|
+
const visit: <T>(value: BotToolAnnotation, visitor: Visitor<T>) => T;
|
|
879
|
+
}
|
|
734
880
|
/**
|
|
735
881
|
* @public
|
|
736
882
|
*/
|
|
@@ -741,6 +887,7 @@ export interface BotKnowledgeBase {
|
|
|
741
887
|
* @public
|
|
742
888
|
*/
|
|
743
889
|
instructions?: string | undefined;
|
|
890
|
+
annotations?: (BotToolAnnotation)[] | undefined;
|
|
744
891
|
}
|
|
745
892
|
/**
|
|
746
893
|
* @public
|
|
@@ -853,6 +1000,7 @@ export interface BotCapabilityTool {
|
|
|
853
1000
|
id: string;
|
|
854
1001
|
variables?: (BotToolVariable)[] | undefined;
|
|
855
1002
|
pipeline?: BotCapabilityToolPipeline | undefined;
|
|
1003
|
+
annotations?: (BotToolAnnotation)[] | undefined;
|
|
856
1004
|
}
|
|
857
1005
|
/**
|
|
858
1006
|
* @public
|
|
@@ -911,6 +1059,7 @@ export interface BotLlmEmbeddedTool {
|
|
|
911
1059
|
* @public
|
|
912
1060
|
*/
|
|
913
1061
|
parameters?: __DocumentType | undefined;
|
|
1062
|
+
annotations?: (BotToolAnnotation)[] | undefined;
|
|
914
1063
|
}
|
|
915
1064
|
/**
|
|
916
1065
|
* @public
|
|
@@ -1078,6 +1227,7 @@ export type BotLlmToolType = typeof BotLlmToolType[keyof typeof BotLlmToolType];
|
|
|
1078
1227
|
export interface BotLlmTool {
|
|
1079
1228
|
type: BotLlmToolType;
|
|
1080
1229
|
function?: BotLlmFunctionDefinition | undefined;
|
|
1230
|
+
annotations?: (BotToolAnnotation)[] | undefined;
|
|
1081
1231
|
}
|
|
1082
1232
|
/**
|
|
1083
1233
|
* @public
|
|
@@ -1727,6 +1877,11 @@ export interface InviteOutput {
|
|
|
1727
1877
|
* @public
|
|
1728
1878
|
*/
|
|
1729
1879
|
users: (User)[];
|
|
1880
|
+
/**
|
|
1881
|
+
* A list of invitees that were skipped during the operation, for example because the resolved account is deactivated in GetStream. Each entry carries the email or phone supplied in the request, and the user id when it was already known.
|
|
1882
|
+
* @public
|
|
1883
|
+
*/
|
|
1884
|
+
skippedInvitees: (SkippedMember)[];
|
|
1730
1885
|
}
|
|
1731
1886
|
/**
|
|
1732
1887
|
* @public
|
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.3.
|
|
4
|
+
"version": "1.3.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",
|