@vendasta/ai-assistants 0.32.0 → 0.34.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.
@@ -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.connection) {
1448
- m.connection = ConnectionKey.fromProto(proto.connection);
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.connection !== 'undefined' && this.connection !== null) {
1461
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
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 ListTestCasesByConnectionRequest {
1469
+ class ListTestCasesByAssistantRequest {
1470
1470
  static fromProto(proto) {
1471
- let m = new ListTestCasesByConnectionRequest();
1471
+ let m = new ListTestCasesByAssistantRequest();
1472
1472
  m = Object.assign(m, proto);
1473
- if (proto.connection) {
1474
- m.connection = ConnectionKey.fromProto(proto.connection);
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.connection !== 'undefined' && this.connection !== null) {
1490
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
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 ListTestCasesByConnectionResponse {
1498
+ class ListTestCasesByAssistantResponse {
1499
1499
  static fromProto(proto) {
1500
- let m = new ListTestCasesByConnectionResponse();
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.connection) {
1532
- m.connection = ConnectionKey.fromProto(proto.connection);
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.connection !== 'undefined' && this.connection !== null) {
1545
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
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.connection) {
1610
- m.connection = ConnectionKey.fromProto(proto.connection);
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.connection !== 'undefined' && this.connection !== null) {
1626
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
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;
@@ -2266,6 +2266,9 @@ class ListGoalsRequestFilters {
2266
2266
  if (proto.supportedChannels) {
2267
2267
  m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
2268
2268
  }
2269
+ if (proto.namespaces) {
2270
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
2271
+ }
2269
2272
  return m;
2270
2273
  }
2271
2274
  constructor(kwargs) {
@@ -2285,6 +2288,9 @@ class ListGoalsRequestFilters {
2285
2288
  if (typeof this.supportedChannels !== 'undefined') {
2286
2289
  toReturn['supportedChannels'] = this.supportedChannels;
2287
2290
  }
2291
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
2292
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
2293
+ }
2288
2294
  return toReturn;
2289
2295
  }
2290
2296
  }
@@ -4479,10 +4485,10 @@ class IntegrationTestApiService {
4479
4485
  withCredentials: true
4480
4486
  };
4481
4487
  }
4482
- listTestCasesByConnection(r) {
4483
- const request = (r.toApiJson) ? r : new ListTestCasesByConnectionRequest(r);
4484
- return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByConnection", request.toApiJson(), this.apiOptions())
4485
- .pipe(map(resp => ListTestCasesByConnectionResponse.fromProto(resp)));
4488
+ listTestCasesByAssistant(r) {
4489
+ const request = (r.toApiJson) ? r : new ListTestCasesByAssistantRequest(r);
4490
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByAssistant", request.toApiJson(), this.apiOptions())
4491
+ .pipe(map(resp => ListTestCasesByAssistantResponse.fromProto(resp)));
4486
4492
  }
4487
4493
  upsertTestCases(r) {
4488
4494
  const request = (r.toApiJson) ? r : new UpsertTestCasesRequest(r);
@@ -4674,5 +4680,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4674
4680
  * Generated bundle index. Do not edit.
4675
4681
  */
4676
4682
 
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, ListTestCasesByConnectionRequest, ListTestCasesByConnectionResponse, 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 };
4683
+ 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
4684
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map