@vendasta/ai-assistants 0.49.0 → 0.50.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/assistant.api.service.mjs +1 -1
- package/esm2020/lib/_internal/enums/api.enum.mjs +20 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +57 -22
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +77 -22
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +77 -22
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +11 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +13 -7
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +24 -15
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -203,6 +203,26 @@ var SortDirection;
|
|
|
203
203
|
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
204
204
|
})(SortDirection || (SortDirection = {}));
|
|
205
205
|
|
|
206
|
+
// *********************************
|
|
207
|
+
// Code generated by sdkgen
|
|
208
|
+
// DO NOT EDIT!.
|
|
209
|
+
//
|
|
210
|
+
// Enums.
|
|
211
|
+
// *********************************
|
|
212
|
+
var StreamingGenerateChatAnswerResponseContentType;
|
|
213
|
+
(function (StreamingGenerateChatAnswerResponseContentType) {
|
|
214
|
+
StreamingGenerateChatAnswerResponseContentType[StreamingGenerateChatAnswerResponseContentType["CONTENT_TYPE_UNSPECIFIED"] = 0] = "CONTENT_TYPE_UNSPECIFIED";
|
|
215
|
+
StreamingGenerateChatAnswerResponseContentType[StreamingGenerateChatAnswerResponseContentType["REASONING"] = 1] = "REASONING";
|
|
216
|
+
StreamingGenerateChatAnswerResponseContentType[StreamingGenerateChatAnswerResponseContentType["ANSWER"] = 2] = "ANSWER";
|
|
217
|
+
StreamingGenerateChatAnswerResponseContentType[StreamingGenerateChatAnswerResponseContentType["ACTION_DESCRIPTION"] = 3] = "ACTION_DESCRIPTION";
|
|
218
|
+
StreamingGenerateChatAnswerResponseContentType[StreamingGenerateChatAnswerResponseContentType["WORKING"] = 4] = "WORKING";
|
|
219
|
+
})(StreamingGenerateChatAnswerResponseContentType || (StreamingGenerateChatAnswerResponseContentType = {}));
|
|
220
|
+
var ListGoalsRequestSortingOrder;
|
|
221
|
+
(function (ListGoalsRequestSortingOrder) {
|
|
222
|
+
ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_ASCENDING"] = 0] = "GOAL_SORTING_ORDER_ASCENDING";
|
|
223
|
+
ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_DESCENDING"] = 1] = "GOAL_SORTING_ORDER_DESCENDING";
|
|
224
|
+
})(ListGoalsRequestSortingOrder || (ListGoalsRequestSortingOrder = {}));
|
|
225
|
+
|
|
206
226
|
// *********************************
|
|
207
227
|
// Code generated by sdkgen
|
|
208
228
|
// DO NOT EDIT!.
|
|
@@ -3309,6 +3329,9 @@ class ListGoalsRequestFilters {
|
|
|
3309
3329
|
if (proto.constraintFilters) {
|
|
3310
3330
|
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3311
3331
|
}
|
|
3332
|
+
if (proto.sortOptions) {
|
|
3333
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3334
|
+
}
|
|
3312
3335
|
return m;
|
|
3313
3336
|
}
|
|
3314
3337
|
constructor(kwargs) {
|
|
@@ -3334,6 +3357,12 @@ class ListGoalsRequestFilters {
|
|
|
3334
3357
|
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3335
3358
|
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3336
3359
|
}
|
|
3360
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3361
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3362
|
+
}
|
|
3363
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3364
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3365
|
+
}
|
|
3337
3366
|
return toReturn;
|
|
3338
3367
|
}
|
|
3339
3368
|
}
|
|
@@ -4977,10 +5006,13 @@ class ListPromptVersionsResponse {
|
|
|
4977
5006
|
return toReturn;
|
|
4978
5007
|
}
|
|
4979
5008
|
}
|
|
4980
|
-
class
|
|
5009
|
+
class GenerateChatAnswerRequestOptions {
|
|
4981
5010
|
static fromProto(proto) {
|
|
4982
|
-
let m = new
|
|
5011
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4983
5012
|
m = Object.assign(m, proto);
|
|
5013
|
+
if (proto.maxTokens) {
|
|
5014
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5015
|
+
}
|
|
4984
5016
|
return m;
|
|
4985
5017
|
}
|
|
4986
5018
|
constructor(kwargs) {
|
|
@@ -4991,15 +5023,21 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4991
5023
|
}
|
|
4992
5024
|
toApiJson() {
|
|
4993
5025
|
const toReturn = {};
|
|
4994
|
-
if (typeof this.
|
|
4995
|
-
toReturn['
|
|
5026
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
5027
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
5028
|
+
}
|
|
5029
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5030
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5031
|
+
}
|
|
5032
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
5033
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4996
5034
|
}
|
|
4997
5035
|
return toReturn;
|
|
4998
5036
|
}
|
|
4999
5037
|
}
|
|
5000
|
-
class
|
|
5038
|
+
class GetMultiAssistantRequestOptions {
|
|
5001
5039
|
static fromProto(proto) {
|
|
5002
|
-
let m = new
|
|
5040
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
5003
5041
|
m = Object.assign(m, proto);
|
|
5004
5042
|
return m;
|
|
5005
5043
|
}
|
|
@@ -5017,13 +5055,10 @@ class GetAssistantRequestOptions {
|
|
|
5017
5055
|
return toReturn;
|
|
5018
5056
|
}
|
|
5019
5057
|
}
|
|
5020
|
-
class
|
|
5058
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
5021
5059
|
static fromProto(proto) {
|
|
5022
|
-
let m = new
|
|
5060
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
5023
5061
|
m = Object.assign(m, proto);
|
|
5024
|
-
if (proto.maxTokens) {
|
|
5025
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5026
|
-
}
|
|
5027
5062
|
return m;
|
|
5028
5063
|
}
|
|
5029
5064
|
constructor(kwargs) {
|
|
@@ -5034,14 +5069,8 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5034
5069
|
}
|
|
5035
5070
|
toApiJson() {
|
|
5036
5071
|
const toReturn = {};
|
|
5037
|
-
if (typeof this.
|
|
5038
|
-
toReturn['
|
|
5039
|
-
}
|
|
5040
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5041
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5042
|
-
}
|
|
5043
|
-
if (typeof this.maxTokens !== 'undefined') {
|
|
5044
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
5072
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
5073
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
5045
5074
|
}
|
|
5046
5075
|
return toReturn;
|
|
5047
5076
|
}
|
|
@@ -5086,9 +5115,9 @@ class CreateAssistantRequestOptions {
|
|
|
5086
5115
|
return toReturn;
|
|
5087
5116
|
}
|
|
5088
5117
|
}
|
|
5089
|
-
class
|
|
5118
|
+
class GetAssistantRequestOptions {
|
|
5090
5119
|
static fromProto(proto) {
|
|
5091
|
-
let m = new
|
|
5120
|
+
let m = new GetAssistantRequestOptions();
|
|
5092
5121
|
m = Object.assign(m, proto);
|
|
5093
5122
|
return m;
|
|
5094
5123
|
}
|
|
@@ -5135,6 +5164,32 @@ class SetAssistantConnectionsRequest {
|
|
|
5135
5164
|
return toReturn;
|
|
5136
5165
|
}
|
|
5137
5166
|
}
|
|
5167
|
+
class ListGoalsRequestSortOptions {
|
|
5168
|
+
static fromProto(proto) {
|
|
5169
|
+
let m = new ListGoalsRequestSortOptions();
|
|
5170
|
+
m = Object.assign(m, proto);
|
|
5171
|
+
if (proto.order) {
|
|
5172
|
+
m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
|
|
5173
|
+
}
|
|
5174
|
+
return m;
|
|
5175
|
+
}
|
|
5176
|
+
constructor(kwargs) {
|
|
5177
|
+
if (!kwargs) {
|
|
5178
|
+
return;
|
|
5179
|
+
}
|
|
5180
|
+
Object.assign(this, kwargs);
|
|
5181
|
+
}
|
|
5182
|
+
toApiJson() {
|
|
5183
|
+
const toReturn = {};
|
|
5184
|
+
if (typeof this.field !== 'undefined') {
|
|
5185
|
+
toReturn['field'] = this.field;
|
|
5186
|
+
}
|
|
5187
|
+
if (typeof this.order !== 'undefined') {
|
|
5188
|
+
toReturn['order'] = this.order;
|
|
5189
|
+
}
|
|
5190
|
+
return toReturn;
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5138
5193
|
class UpdateAssistantRequest {
|
|
5139
5194
|
static fromProto(proto) {
|
|
5140
5195
|
let m = new UpdateAssistantRequest();
|
|
@@ -5930,5 +5985,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5930
5985
|
* Generated bundle index. Do not edit.
|
|
5931
5986
|
*/
|
|
5932
5987
|
|
|
5933
|
-
export { Access, Action, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
5988
|
+
export { Access, Action, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
5934
5989
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|