@vendasta/ai-assistants 0.32.0 → 0.33.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/integration-test.api.service.mjs +6 -6
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/integration-tests.mjs +22 -22
- package/fesm2015/vendasta-ai-assistants.mjs +25 -25
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +25 -25
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/integration-test.api.service.d.ts +3 -3
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +7 -7
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/integration-tests.d.ts +11 -11
- package/package.json +1 -1
|
@@ -1444,8 +1444,8 @@ class DeleteTestCasesRequest {
|
|
|
1444
1444
|
static fromProto(proto) {
|
|
1445
1445
|
let m = new DeleteTestCasesRequest();
|
|
1446
1446
|
m = Object.assign(m, proto);
|
|
1447
|
-
if (proto.
|
|
1448
|
-
m.
|
|
1447
|
+
if (proto.assistant) {
|
|
1448
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1449
1449
|
}
|
|
1450
1450
|
return m;
|
|
1451
1451
|
}
|
|
@@ -1457,8 +1457,8 @@ class DeleteTestCasesRequest {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
toApiJson() {
|
|
1459
1459
|
const toReturn = {};
|
|
1460
|
-
if (typeof this.
|
|
1461
|
-
toReturn['
|
|
1460
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1461
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1462
1462
|
}
|
|
1463
1463
|
if (typeof this.testCaseIds !== 'undefined') {
|
|
1464
1464
|
toReturn['testCaseIds'] = this.testCaseIds;
|
|
@@ -1466,12 +1466,12 @@ class DeleteTestCasesRequest {
|
|
|
1466
1466
|
return toReturn;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class
|
|
1469
|
+
class ListTestCasesByAssistantRequest {
|
|
1470
1470
|
static fromProto(proto) {
|
|
1471
|
-
let m = new
|
|
1471
|
+
let m = new ListTestCasesByAssistantRequest();
|
|
1472
1472
|
m = Object.assign(m, proto);
|
|
1473
|
-
if (proto.
|
|
1474
|
-
m.
|
|
1473
|
+
if (proto.assistant) {
|
|
1474
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1475
1475
|
}
|
|
1476
1476
|
if (proto.pagingOptions) {
|
|
1477
1477
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -1486,8 +1486,8 @@ class ListTestCasesByConnectionRequest {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
toApiJson() {
|
|
1488
1488
|
const toReturn = {};
|
|
1489
|
-
if (typeof this.
|
|
1490
|
-
toReturn['
|
|
1489
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1490
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1491
1491
|
}
|
|
1492
1492
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1493
1493
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
@@ -1495,9 +1495,9 @@ class ListTestCasesByConnectionRequest {
|
|
|
1495
1495
|
return toReturn;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
class
|
|
1498
|
+
class ListTestCasesByAssistantResponse {
|
|
1499
1499
|
static fromProto(proto) {
|
|
1500
|
-
let m = new
|
|
1500
|
+
let m = new ListTestCasesByAssistantResponse();
|
|
1501
1501
|
m = Object.assign(m, proto);
|
|
1502
1502
|
if (proto.testCases) {
|
|
1503
1503
|
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
@@ -1528,8 +1528,8 @@ class RunTestsRequest {
|
|
|
1528
1528
|
static fromProto(proto) {
|
|
1529
1529
|
let m = new RunTestsRequest();
|
|
1530
1530
|
m = Object.assign(m, proto);
|
|
1531
|
-
if (proto.
|
|
1532
|
-
m.
|
|
1531
|
+
if (proto.assistant) {
|
|
1532
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1533
1533
|
}
|
|
1534
1534
|
return m;
|
|
1535
1535
|
}
|
|
@@ -1541,8 +1541,8 @@ class RunTestsRequest {
|
|
|
1541
1541
|
}
|
|
1542
1542
|
toApiJson() {
|
|
1543
1543
|
const toReturn = {};
|
|
1544
|
-
if (typeof this.
|
|
1545
|
-
toReturn['
|
|
1544
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1545
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1546
1546
|
}
|
|
1547
1547
|
if (typeof this.testCaseIds !== 'undefined') {
|
|
1548
1548
|
toReturn['testCaseIds'] = this.testCaseIds;
|
|
@@ -1606,8 +1606,8 @@ class UpsertTestCasesRequest {
|
|
|
1606
1606
|
static fromProto(proto) {
|
|
1607
1607
|
let m = new UpsertTestCasesRequest();
|
|
1608
1608
|
m = Object.assign(m, proto);
|
|
1609
|
-
if (proto.
|
|
1610
|
-
m.
|
|
1609
|
+
if (proto.assistant) {
|
|
1610
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1611
1611
|
}
|
|
1612
1612
|
if (proto.testCases) {
|
|
1613
1613
|
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
@@ -1622,8 +1622,8 @@ class UpsertTestCasesRequest {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
toApiJson() {
|
|
1624
1624
|
const toReturn = {};
|
|
1625
|
-
if (typeof this.
|
|
1626
|
-
toReturn['
|
|
1625
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1626
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1627
1627
|
}
|
|
1628
1628
|
if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
|
|
1629
1629
|
toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
|
|
@@ -4479,10 +4479,10 @@ class IntegrationTestApiService {
|
|
|
4479
4479
|
withCredentials: true
|
|
4480
4480
|
};
|
|
4481
4481
|
}
|
|
4482
|
-
|
|
4483
|
-
const request = (r.toApiJson) ? r : new
|
|
4484
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/
|
|
4485
|
-
.pipe(map(resp =>
|
|
4482
|
+
listTestCasesByAssistant(r) {
|
|
4483
|
+
const request = (r.toApiJson) ? r : new ListTestCasesByAssistantRequest(r);
|
|
4484
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByAssistant", request.toApiJson(), this.apiOptions())
|
|
4485
|
+
.pipe(map(resp => ListTestCasesByAssistantResponse.fromProto(resp)));
|
|
4486
4486
|
}
|
|
4487
4487
|
upsertTestCases(r) {
|
|
4488
4488
|
const request = (r.toApiJson) ? r : new UpsertTestCasesRequest(r);
|
|
@@ -4674,5 +4674,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4674
4674
|
* Generated bundle index. Do not edit.
|
|
4675
4675
|
*/
|
|
4676
4676
|
|
|
4677
|
-
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, DeleteTestCasesRequest, 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, IntegrationTestApiService, 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,
|
|
4677
|
+
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, DeleteTestCasesRequest, 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, IntegrationTestApiService, 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, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, TestCase, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
4678
4678
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|