@vendasta/ai-assistants 0.30.0 → 0.31.0
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/esm2020/lib/_internal/enums/assistant.enum.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/answer.mjs +24 -1
- package/esm2020/lib/_internal/objects/api.mjs +14 -2
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/esm2020/lib/_internal/objects/namespace.mjs +1 -53
- package/fesm2015/vendasta-ai-assistants.mjs +38 -53
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +38 -53
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/assistant.enum.d.ts +3 -1
- package/lib/_internal/interfaces/answer.interface.d.ts +3 -0
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/namespace.interface.d.ts +0 -8
- package/lib/_internal/objects/answer.d.ts +6 -0
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/namespace.d.ts +0 -14
- package/package.json +1 -1
|
@@ -80,6 +80,8 @@ var AssistantType;
|
|
|
80
80
|
AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
|
|
81
81
|
AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
|
|
82
82
|
AssistantType[AssistantType["ASSISTANT_TYPE_CUSTOM"] = 5] = "ASSISTANT_TYPE_CUSTOM";
|
|
83
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_SALES_COACH"] = 6] = "ASSISTANT_TYPE_SALES_COACH";
|
|
84
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT"] = 7] = "ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT";
|
|
83
85
|
})(AssistantType || (AssistantType = {}));
|
|
84
86
|
var VendorModel;
|
|
85
87
|
(function (VendorModel) {
|
|
@@ -153,46 +155,6 @@ class NamespaceAccountGroupNamespace {
|
|
|
153
155
|
return toReturn;
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
|
-
class NamespaceAccountGroupsForGroupNamespace {
|
|
157
|
-
static fromProto(proto) {
|
|
158
|
-
let m = new NamespaceAccountGroupsForGroupNamespace();
|
|
159
|
-
m = Object.assign(m, proto);
|
|
160
|
-
return m;
|
|
161
|
-
}
|
|
162
|
-
constructor(kwargs) {
|
|
163
|
-
if (!kwargs) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
Object.assign(this, kwargs);
|
|
167
|
-
}
|
|
168
|
-
toApiJson() {
|
|
169
|
-
const toReturn = {};
|
|
170
|
-
if (typeof this.groupPath !== 'undefined') {
|
|
171
|
-
toReturn['groupPath'] = this.groupPath;
|
|
172
|
-
}
|
|
173
|
-
return toReturn;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
class NamespaceAccountGroupsForPartnerNamespace {
|
|
177
|
-
static fromProto(proto) {
|
|
178
|
-
let m = new NamespaceAccountGroupsForPartnerNamespace();
|
|
179
|
-
m = Object.assign(m, proto);
|
|
180
|
-
return m;
|
|
181
|
-
}
|
|
182
|
-
constructor(kwargs) {
|
|
183
|
-
if (!kwargs) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
Object.assign(this, kwargs);
|
|
187
|
-
}
|
|
188
|
-
toApiJson() {
|
|
189
|
-
const toReturn = {};
|
|
190
|
-
if (typeof this.partnerId !== 'undefined') {
|
|
191
|
-
toReturn['partnerId'] = this.partnerId;
|
|
192
|
-
}
|
|
193
|
-
return toReturn;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
158
|
class NamespaceGlobalNamespace {
|
|
197
159
|
static fromProto(proto) {
|
|
198
160
|
let m = new NamespaceGlobalNamespace();
|
|
@@ -223,12 +185,6 @@ class Namespace {
|
|
|
223
185
|
if (proto.systemNamespace) {
|
|
224
186
|
m.systemNamespace = NamespaceSystemNamespace.fromProto(proto.systemNamespace);
|
|
225
187
|
}
|
|
226
|
-
if (proto.accountGroupsForPartnerNamespace) {
|
|
227
|
-
m.accountGroupsForPartnerNamespace = NamespaceAccountGroupsForPartnerNamespace.fromProto(proto.accountGroupsForPartnerNamespace);
|
|
228
|
-
}
|
|
229
|
-
if (proto.accountGroupsForGroupNamespace) {
|
|
230
|
-
m.accountGroupsForGroupNamespace = NamespaceAccountGroupsForGroupNamespace.fromProto(proto.accountGroupsForGroupNamespace);
|
|
231
|
-
}
|
|
232
188
|
if (proto.globalNamespace) {
|
|
233
189
|
m.globalNamespace = NamespaceGlobalNamespace.fromProto(proto.globalNamespace);
|
|
234
190
|
}
|
|
@@ -251,12 +207,6 @@ class Namespace {
|
|
|
251
207
|
if (typeof this.systemNamespace !== 'undefined' && this.systemNamespace !== null) {
|
|
252
208
|
toReturn['systemNamespace'] = 'toApiJson' in this.systemNamespace ? this.systemNamespace.toApiJson() : this.systemNamespace;
|
|
253
209
|
}
|
|
254
|
-
if (typeof this.accountGroupsForPartnerNamespace !== 'undefined' && this.accountGroupsForPartnerNamespace !== null) {
|
|
255
|
-
toReturn['accountGroupsForPartnerNamespace'] = 'toApiJson' in this.accountGroupsForPartnerNamespace ? this.accountGroupsForPartnerNamespace.toApiJson() : this.accountGroupsForPartnerNamespace;
|
|
256
|
-
}
|
|
257
|
-
if (typeof this.accountGroupsForGroupNamespace !== 'undefined' && this.accountGroupsForGroupNamespace !== null) {
|
|
258
|
-
toReturn['accountGroupsForGroupNamespace'] = 'toApiJson' in this.accountGroupsForGroupNamespace ? this.accountGroupsForGroupNamespace.toApiJson() : this.accountGroupsForGroupNamespace;
|
|
259
|
-
}
|
|
260
210
|
if (typeof this.globalNamespace !== 'undefined' && this.globalNamespace !== null) {
|
|
261
211
|
toReturn['globalNamespace'] = 'toApiJson' in this.globalNamespace ? this.globalNamespace.toApiJson() : this.globalNamespace;
|
|
262
212
|
}
|
|
@@ -1398,6 +1348,29 @@ class ChatUserInfo {
|
|
|
1398
1348
|
return toReturn;
|
|
1399
1349
|
}
|
|
1400
1350
|
}
|
|
1351
|
+
class ContextInfo {
|
|
1352
|
+
static fromProto(proto) {
|
|
1353
|
+
let m = new ContextInfo();
|
|
1354
|
+
m = Object.assign(m, proto);
|
|
1355
|
+
if (proto.variables) {
|
|
1356
|
+
m.variables = proto.variables.map(KeyValuePair.fromProto);
|
|
1357
|
+
}
|
|
1358
|
+
return m;
|
|
1359
|
+
}
|
|
1360
|
+
constructor(kwargs) {
|
|
1361
|
+
if (!kwargs) {
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
Object.assign(this, kwargs);
|
|
1365
|
+
}
|
|
1366
|
+
toApiJson() {
|
|
1367
|
+
const toReturn = {};
|
|
1368
|
+
if (typeof this.variables !== 'undefined' && this.variables !== null) {
|
|
1369
|
+
toReturn['variables'] = 'toApiJson' in this.variables ? this.variables.toApiJson() : this.variables;
|
|
1370
|
+
}
|
|
1371
|
+
return toReturn;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1401
1374
|
|
|
1402
1375
|
function enumStringToValue$3(enumRef, value) {
|
|
1403
1376
|
if (typeof value === 'number') {
|
|
@@ -2266,6 +2239,9 @@ class GenerateChatAnswerRequest {
|
|
|
2266
2239
|
if (proto.assistantKey) {
|
|
2267
2240
|
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
2268
2241
|
}
|
|
2242
|
+
if (proto.contextInfo) {
|
|
2243
|
+
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
2244
|
+
}
|
|
2269
2245
|
return m;
|
|
2270
2246
|
}
|
|
2271
2247
|
constructor(kwargs) {
|
|
@@ -2294,6 +2270,9 @@ class GenerateChatAnswerRequest {
|
|
|
2294
2270
|
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
2295
2271
|
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
2296
2272
|
}
|
|
2273
|
+
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
2274
|
+
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
2275
|
+
}
|
|
2297
2276
|
return toReturn;
|
|
2298
2277
|
}
|
|
2299
2278
|
}
|
|
@@ -3157,6 +3136,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
|
|
|
3157
3136
|
if (proto.filters) {
|
|
3158
3137
|
m.filters = ListAllAssistantsAssociatedToConnectionRequestFilters.fromProto(proto.filters);
|
|
3159
3138
|
}
|
|
3139
|
+
if (proto.fieldMask) {
|
|
3140
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
3141
|
+
}
|
|
3160
3142
|
return m;
|
|
3161
3143
|
}
|
|
3162
3144
|
constructor(kwargs) {
|
|
@@ -3173,6 +3155,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
|
|
|
3173
3155
|
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
3174
3156
|
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
3175
3157
|
}
|
|
3158
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
3159
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
3160
|
+
}
|
|
3176
3161
|
return toReturn;
|
|
3177
3162
|
}
|
|
3178
3163
|
}
|
|
@@ -4445,5 +4430,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4445
4430
|
* Generated bundle index. Do not edit.
|
|
4446
4431
|
*/
|
|
4447
4432
|
|
|
4448
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace,
|
|
4433
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
|
|
4449
4434
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|