@vendasta/ai-assistants 0.30.0 → 0.32.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.
Files changed (31) hide show
  1. package/esm2020/lib/_internal/enums/assistant.enum.mjs +3 -1
  2. package/esm2020/lib/_internal/index.mjs +2 -1
  3. package/esm2020/lib/_internal/integration-test.api.service.mjs +53 -0
  4. package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +2 -0
  8. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/answer.mjs +24 -1
  10. package/esm2020/lib/_internal/objects/api.mjs +14 -2
  11. package/esm2020/lib/_internal/objects/index.mjs +5 -4
  12. package/esm2020/lib/_internal/objects/integration-tests.mjs +201 -0
  13. package/esm2020/lib/_internal/objects/namespace.mjs +1 -53
  14. package/fesm2015/vendasta-ai-assistants.mjs +313 -84
  15. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  16. package/fesm2020/vendasta-ai-assistants.mjs +313 -84
  17. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  18. package/lib/_internal/enums/assistant.enum.d.ts +3 -1
  19. package/lib/_internal/index.d.ts +1 -0
  20. package/lib/_internal/integration-test.api.service.d.ts +17 -0
  21. package/lib/_internal/interfaces/answer.interface.d.ts +3 -0
  22. package/lib/_internal/interfaces/api.interface.d.ts +3 -1
  23. package/lib/_internal/interfaces/index.d.ts +4 -3
  24. package/lib/_internal/interfaces/integration-tests.interface.d.ts +32 -0
  25. package/lib/_internal/interfaces/namespace.interface.d.ts +0 -8
  26. package/lib/_internal/objects/answer.d.ts +6 -0
  27. package/lib/_internal/objects/api.d.ts +3 -1
  28. package/lib/_internal/objects/index.d.ts +4 -3
  29. package/lib/_internal/objects/integration-tests.d.ts +55 -0
  30. package/lib/_internal/objects/namespace.d.ts +0 -14
  31. package/package.json +1 -1
@@ -81,6 +81,8 @@ var AssistantType;
81
81
  AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
82
82
  AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
83
83
  AssistantType[AssistantType["ASSISTANT_TYPE_CUSTOM"] = 5] = "ASSISTANT_TYPE_CUSTOM";
84
+ AssistantType[AssistantType["ASSISTANT_TYPE_SALES_COACH"] = 6] = "ASSISTANT_TYPE_SALES_COACH";
85
+ AssistantType[AssistantType["ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT"] = 7] = "ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT";
84
86
  })(AssistantType || (AssistantType = {}));
85
87
  var VendorModel;
86
88
  (function (VendorModel) {
@@ -128,7 +130,7 @@ var ChatMessageRole;
128
130
  // Enums Index.
129
131
  // *********************************
130
132
 
131
- function enumStringToValue$b(enumRef, value) {
133
+ function enumStringToValue$c(enumRef, value) {
132
134
  if (typeof value === 'number') {
133
135
  return value;
134
136
  }
@@ -154,46 +156,6 @@ class NamespaceAccountGroupNamespace {
154
156
  return toReturn;
155
157
  }
156
158
  }
157
- class NamespaceAccountGroupsForGroupNamespace {
158
- static fromProto(proto) {
159
- let m = new NamespaceAccountGroupsForGroupNamespace();
160
- m = Object.assign(m, proto);
161
- return m;
162
- }
163
- constructor(kwargs) {
164
- if (!kwargs) {
165
- return;
166
- }
167
- Object.assign(this, kwargs);
168
- }
169
- toApiJson() {
170
- const toReturn = {};
171
- if (typeof this.groupPath !== 'undefined') {
172
- toReturn['groupPath'] = this.groupPath;
173
- }
174
- return toReturn;
175
- }
176
- }
177
- class NamespaceAccountGroupsForPartnerNamespace {
178
- static fromProto(proto) {
179
- let m = new NamespaceAccountGroupsForPartnerNamespace();
180
- m = Object.assign(m, proto);
181
- return m;
182
- }
183
- constructor(kwargs) {
184
- if (!kwargs) {
185
- return;
186
- }
187
- Object.assign(this, kwargs);
188
- }
189
- toApiJson() {
190
- const toReturn = {};
191
- if (typeof this.partnerId !== 'undefined') {
192
- toReturn['partnerId'] = this.partnerId;
193
- }
194
- return toReturn;
195
- }
196
- }
197
159
  class NamespaceGlobalNamespace {
198
160
  static fromProto(proto) {
199
161
  let m = new NamespaceGlobalNamespace();
@@ -224,12 +186,6 @@ class Namespace {
224
186
  if (proto.systemNamespace) {
225
187
  m.systemNamespace = NamespaceSystemNamespace.fromProto(proto.systemNamespace);
226
188
  }
227
- if (proto.accountGroupsForPartnerNamespace) {
228
- m.accountGroupsForPartnerNamespace = NamespaceAccountGroupsForPartnerNamespace.fromProto(proto.accountGroupsForPartnerNamespace);
229
- }
230
- if (proto.accountGroupsForGroupNamespace) {
231
- m.accountGroupsForGroupNamespace = NamespaceAccountGroupsForGroupNamespace.fromProto(proto.accountGroupsForGroupNamespace);
232
- }
233
189
  if (proto.globalNamespace) {
234
190
  m.globalNamespace = NamespaceGlobalNamespace.fromProto(proto.globalNamespace);
235
191
  }
@@ -252,12 +208,6 @@ class Namespace {
252
208
  if (typeof this.systemNamespace !== 'undefined' && this.systemNamespace !== null) {
253
209
  toReturn['systemNamespace'] = 'toApiJson' in this.systemNamespace ? this.systemNamespace.toApiJson() : this.systemNamespace;
254
210
  }
255
- if (typeof this.accountGroupsForPartnerNamespace !== 'undefined' && this.accountGroupsForPartnerNamespace !== null) {
256
- toReturn['accountGroupsForPartnerNamespace'] = 'toApiJson' in this.accountGroupsForPartnerNamespace ? this.accountGroupsForPartnerNamespace.toApiJson() : this.accountGroupsForPartnerNamespace;
257
- }
258
- if (typeof this.accountGroupsForGroupNamespace !== 'undefined' && this.accountGroupsForGroupNamespace !== null) {
259
- toReturn['accountGroupsForGroupNamespace'] = 'toApiJson' in this.accountGroupsForGroupNamespace ? this.accountGroupsForGroupNamespace.toApiJson() : this.accountGroupsForGroupNamespace;
260
- }
261
211
  if (typeof this.globalNamespace !== 'undefined' && this.globalNamespace !== null) {
262
212
  toReturn['globalNamespace'] = 'toApiJson' in this.globalNamespace ? this.globalNamespace.toApiJson() : this.globalNamespace;
263
213
  }
@@ -302,7 +252,7 @@ class NamespaceSystemNamespace {
302
252
  }
303
253
  }
304
254
 
305
- function enumStringToValue$a(enumRef, value) {
255
+ function enumStringToValue$b(enumRef, value) {
306
256
  if (typeof value === 'number') {
307
257
  return value;
308
258
  }
@@ -462,7 +412,7 @@ class FunctionParameter {
462
412
  m.items = FunctionParameter.fromProto(proto.items);
463
413
  }
464
414
  if (proto.location) {
465
- m.location = enumStringToValue$a(FunctionParameterParameterLocation, proto.location);
415
+ m.location = enumStringToValue$b(FunctionParameterParameterLocation, proto.location);
466
416
  }
467
417
  return m;
468
418
  }
@@ -536,7 +486,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
536
486
  }
537
487
  }
538
488
 
539
- function enumStringToValue$9(enumRef, value) {
489
+ function enumStringToValue$a(enumRef, value) {
540
490
  if (typeof value === 'number') {
541
491
  return value;
542
492
  }
@@ -739,7 +689,7 @@ class PromptVersion {
739
689
  }
740
690
  }
741
691
 
742
- function enumStringToValue$8(enumRef, value) {
692
+ function enumStringToValue$9(enumRef, value) {
743
693
  if (typeof value === 'number') {
744
694
  return value;
745
695
  }
@@ -753,7 +703,7 @@ class Goal {
753
703
  m.namespace = Namespace.fromProto(proto.namespace);
754
704
  }
755
705
  if (proto.type) {
756
- m.type = enumStringToValue$8(GoalType, proto.type);
706
+ m.type = enumStringToValue$9(GoalType, proto.type);
757
707
  }
758
708
  if (proto.promptModules) {
759
709
  m.promptModules = proto.promptModules.map(PromptModule.fromProto);
@@ -765,7 +715,7 @@ class Goal {
765
715
  m.updated = new Date(proto.updated);
766
716
  }
767
717
  if (proto.supportedChannels) {
768
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$8(GoalChannel, v));
718
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$9(GoalChannel, v));
769
719
  }
770
720
  return m;
771
721
  }
@@ -840,7 +790,7 @@ class GoalKey {
840
790
  }
841
791
  }
842
792
 
843
- function enumStringToValue$7(enumRef, value) {
793
+ function enumStringToValue$8(enumRef, value) {
844
794
  if (typeof value === 'number') {
845
795
  return value;
846
796
  }
@@ -870,7 +820,7 @@ class KeyValuePair {
870
820
  }
871
821
  }
872
822
 
873
- function enumStringToValue$6(enumRef, value) {
823
+ function enumStringToValue$7(enumRef, value) {
874
824
  if (typeof value === 'number') {
875
825
  return value;
876
826
  }
@@ -884,7 +834,7 @@ class Assistant {
884
834
  m.namespace = Namespace.fromProto(proto.namespace);
885
835
  }
886
836
  if (proto.type) {
887
- m.type = enumStringToValue$6(AssistantType, proto.type);
837
+ m.type = enumStringToValue$7(AssistantType, proto.type);
888
838
  }
889
839
  if (proto.config) {
890
840
  m.config = Config.fromProto(proto.config);
@@ -1142,7 +1092,7 @@ class ConfigVoiceConfig {
1142
1092
  let m = new ConfigVoiceConfig();
1143
1093
  m = Object.assign(m, proto);
1144
1094
  if (proto.vendorModel) {
1145
- m.vendorModel = enumStringToValue$6(VendorModel, proto.vendorModel);
1095
+ m.vendorModel = enumStringToValue$7(VendorModel, proto.vendorModel);
1146
1096
  }
1147
1097
  if (proto.modelConfig) {
1148
1098
  m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
@@ -1167,7 +1117,7 @@ class ConfigVoiceConfig {
1167
1117
  }
1168
1118
  }
1169
1119
 
1170
- function enumStringToValue$5(enumRef, value) {
1120
+ function enumStringToValue$6(enumRef, value) {
1171
1121
  if (typeof value === 'number') {
1172
1122
  return value;
1173
1123
  }
@@ -1184,7 +1134,7 @@ class Connection {
1184
1134
  m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
1185
1135
  }
1186
1136
  if (proto.supportedAssistantTypes) {
1187
- m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$5(AssistantType, v));
1137
+ m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$6(AssistantType, v));
1188
1138
  }
1189
1139
  return m;
1190
1140
  }
@@ -1259,7 +1209,7 @@ class ConnectionKey {
1259
1209
  }
1260
1210
  }
1261
1211
 
1262
- function enumStringToValue$4(enumRef, value) {
1212
+ function enumStringToValue$5(enumRef, value) {
1263
1213
  if (typeof value === 'number') {
1264
1214
  return value;
1265
1215
  }
@@ -1270,7 +1220,7 @@ class ChatAnswerFunctionExecutionJob {
1270
1220
  let m = new ChatAnswerFunctionExecutionJob();
1271
1221
  m = Object.assign(m, proto);
1272
1222
  if (proto.status) {
1273
- m.status = enumStringToValue$4(ChatAnswerFunctionExecutionJobStatus, proto.status);
1223
+ m.status = enumStringToValue$5(ChatAnswerFunctionExecutionJobStatus, proto.status);
1274
1224
  }
1275
1225
  if (proto.result) {
1276
1226
  m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
@@ -1331,7 +1281,7 @@ class ChatMessage {
1331
1281
  let m = new ChatMessage();
1332
1282
  m = Object.assign(m, proto);
1333
1283
  if (proto.role) {
1334
- m.role = enumStringToValue$4(ChatMessageRole, proto.role);
1284
+ m.role = enumStringToValue$5(ChatMessageRole, proto.role);
1335
1285
  }
1336
1286
  return m;
1337
1287
  }
@@ -1399,17 +1349,13 @@ class ChatUserInfo {
1399
1349
  return toReturn;
1400
1350
  }
1401
1351
  }
1402
-
1403
- function enumStringToValue$3(enumRef, value) {
1404
- if (typeof value === 'number') {
1405
- return value;
1406
- }
1407
- return enumRef[value];
1408
- }
1409
- class Access {
1352
+ class ContextInfo {
1410
1353
  static fromProto(proto) {
1411
- let m = new Access();
1354
+ let m = new ContextInfo();
1412
1355
  m = Object.assign(m, proto);
1356
+ if (proto.variables) {
1357
+ m.variables = proto.variables.map(KeyValuePair.fromProto);
1358
+ }
1413
1359
  return m;
1414
1360
  }
1415
1361
  constructor(kwargs) {
@@ -1420,17 +1366,14 @@ class Access {
1420
1366
  }
1421
1367
  toApiJson() {
1422
1368
  const toReturn = {};
1423
- if (typeof this.scope !== 'undefined') {
1424
- toReturn['scope'] = this.scope;
1425
- }
1426
- if (typeof this.public !== 'undefined') {
1427
- toReturn['public'] = this.public;
1369
+ if (typeof this.variables !== 'undefined' && this.variables !== null) {
1370
+ toReturn['variables'] = 'toApiJson' in this.variables ? this.variables.toApiJson() : this.variables;
1428
1371
  }
1429
1372
  return toReturn;
1430
1373
  }
1431
1374
  }
1432
1375
 
1433
- function enumStringToValue$2(enumRef, value) {
1376
+ function enumStringToValue$4(enumRef, value) {
1434
1377
  if (typeof value === 'number') {
1435
1378
  return value;
1436
1379
  }
@@ -1492,6 +1435,234 @@ class PagedResponseMetadata {
1492
1435
  }
1493
1436
  }
1494
1437
 
1438
+ function enumStringToValue$3(enumRef, value) {
1439
+ if (typeof value === 'number') {
1440
+ return value;
1441
+ }
1442
+ return enumRef[value];
1443
+ }
1444
+ class DeleteTestCasesRequest {
1445
+ static fromProto(proto) {
1446
+ let m = new DeleteTestCasesRequest();
1447
+ m = Object.assign(m, proto);
1448
+ if (proto.connection) {
1449
+ m.connection = ConnectionKey.fromProto(proto.connection);
1450
+ }
1451
+ return m;
1452
+ }
1453
+ constructor(kwargs) {
1454
+ if (!kwargs) {
1455
+ return;
1456
+ }
1457
+ Object.assign(this, kwargs);
1458
+ }
1459
+ toApiJson() {
1460
+ const toReturn = {};
1461
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
1462
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
1463
+ }
1464
+ if (typeof this.testCaseIds !== 'undefined') {
1465
+ toReturn['testCaseIds'] = this.testCaseIds;
1466
+ }
1467
+ return toReturn;
1468
+ }
1469
+ }
1470
+ class ListTestCasesByConnectionRequest {
1471
+ static fromProto(proto) {
1472
+ let m = new ListTestCasesByConnectionRequest();
1473
+ m = Object.assign(m, proto);
1474
+ if (proto.connection) {
1475
+ m.connection = ConnectionKey.fromProto(proto.connection);
1476
+ }
1477
+ if (proto.pagingOptions) {
1478
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
1479
+ }
1480
+ return m;
1481
+ }
1482
+ constructor(kwargs) {
1483
+ if (!kwargs) {
1484
+ return;
1485
+ }
1486
+ Object.assign(this, kwargs);
1487
+ }
1488
+ toApiJson() {
1489
+ const toReturn = {};
1490
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
1491
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
1492
+ }
1493
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
1494
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1495
+ }
1496
+ return toReturn;
1497
+ }
1498
+ }
1499
+ class ListTestCasesByConnectionResponse {
1500
+ static fromProto(proto) {
1501
+ let m = new ListTestCasesByConnectionResponse();
1502
+ m = Object.assign(m, proto);
1503
+ if (proto.testCases) {
1504
+ m.testCases = proto.testCases.map(TestCase.fromProto);
1505
+ }
1506
+ if (proto.pagingMetadata) {
1507
+ m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
1508
+ }
1509
+ return m;
1510
+ }
1511
+ constructor(kwargs) {
1512
+ if (!kwargs) {
1513
+ return;
1514
+ }
1515
+ Object.assign(this, kwargs);
1516
+ }
1517
+ toApiJson() {
1518
+ const toReturn = {};
1519
+ if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
1520
+ toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
1521
+ }
1522
+ if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
1523
+ toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
1524
+ }
1525
+ return toReturn;
1526
+ }
1527
+ }
1528
+ class RunTestsRequest {
1529
+ static fromProto(proto) {
1530
+ let m = new RunTestsRequest();
1531
+ m = Object.assign(m, proto);
1532
+ if (proto.connection) {
1533
+ m.connection = ConnectionKey.fromProto(proto.connection);
1534
+ }
1535
+ return m;
1536
+ }
1537
+ constructor(kwargs) {
1538
+ if (!kwargs) {
1539
+ return;
1540
+ }
1541
+ Object.assign(this, kwargs);
1542
+ }
1543
+ toApiJson() {
1544
+ const toReturn = {};
1545
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
1546
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
1547
+ }
1548
+ if (typeof this.testCaseIds !== 'undefined') {
1549
+ toReturn['testCaseIds'] = this.testCaseIds;
1550
+ }
1551
+ return toReturn;
1552
+ }
1553
+ }
1554
+ class RunTestsResponse {
1555
+ static fromProto(proto) {
1556
+ let m = new RunTestsResponse();
1557
+ m = Object.assign(m, proto);
1558
+ return m;
1559
+ }
1560
+ constructor(kwargs) {
1561
+ if (!kwargs) {
1562
+ return;
1563
+ }
1564
+ Object.assign(this, kwargs);
1565
+ }
1566
+ toApiJson() {
1567
+ const toReturn = {};
1568
+ if (typeof this.buildUrl !== 'undefined') {
1569
+ toReturn['buildUrl'] = this.buildUrl;
1570
+ }
1571
+ return toReturn;
1572
+ }
1573
+ }
1574
+ class TestCase {
1575
+ static fromProto(proto) {
1576
+ let m = new TestCase();
1577
+ m = Object.assign(m, proto);
1578
+ if (proto.chatHistory) {
1579
+ m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
1580
+ }
1581
+ return m;
1582
+ }
1583
+ constructor(kwargs) {
1584
+ if (!kwargs) {
1585
+ return;
1586
+ }
1587
+ Object.assign(this, kwargs);
1588
+ }
1589
+ toApiJson() {
1590
+ const toReturn = {};
1591
+ if (typeof this.id !== 'undefined') {
1592
+ toReturn['id'] = this.id;
1593
+ }
1594
+ if (typeof this.name !== 'undefined') {
1595
+ toReturn['name'] = this.name;
1596
+ }
1597
+ if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
1598
+ toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
1599
+ }
1600
+ if (typeof this.expectation !== 'undefined') {
1601
+ toReturn['expectation'] = this.expectation;
1602
+ }
1603
+ return toReturn;
1604
+ }
1605
+ }
1606
+ class UpsertTestCasesRequest {
1607
+ static fromProto(proto) {
1608
+ let m = new UpsertTestCasesRequest();
1609
+ m = Object.assign(m, proto);
1610
+ if (proto.connection) {
1611
+ m.connection = ConnectionKey.fromProto(proto.connection);
1612
+ }
1613
+ if (proto.testCases) {
1614
+ m.testCases = proto.testCases.map(TestCase.fromProto);
1615
+ }
1616
+ return m;
1617
+ }
1618
+ constructor(kwargs) {
1619
+ if (!kwargs) {
1620
+ return;
1621
+ }
1622
+ Object.assign(this, kwargs);
1623
+ }
1624
+ toApiJson() {
1625
+ const toReturn = {};
1626
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
1627
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
1628
+ }
1629
+ if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
1630
+ toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
1631
+ }
1632
+ return toReturn;
1633
+ }
1634
+ }
1635
+
1636
+ function enumStringToValue$2(enumRef, value) {
1637
+ if (typeof value === 'number') {
1638
+ return value;
1639
+ }
1640
+ return enumRef[value];
1641
+ }
1642
+ class Access {
1643
+ static fromProto(proto) {
1644
+ let m = new Access();
1645
+ m = Object.assign(m, proto);
1646
+ return m;
1647
+ }
1648
+ constructor(kwargs) {
1649
+ if (!kwargs) {
1650
+ return;
1651
+ }
1652
+ Object.assign(this, kwargs);
1653
+ }
1654
+ toApiJson() {
1655
+ const toReturn = {};
1656
+ if (typeof this.scope !== 'undefined') {
1657
+ toReturn['scope'] = this.scope;
1658
+ }
1659
+ if (typeof this.public !== 'undefined') {
1660
+ toReturn['public'] = this.public;
1661
+ }
1662
+ return toReturn;
1663
+ }
1664
+ }
1665
+
1495
1666
  function enumStringToValue$1(enumRef, value) {
1496
1667
  if (typeof value === 'number') {
1497
1668
  return value;
@@ -2267,6 +2438,9 @@ class GenerateChatAnswerRequest {
2267
2438
  if (proto.assistantKey) {
2268
2439
  m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
2269
2440
  }
2441
+ if (proto.contextInfo) {
2442
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
2443
+ }
2270
2444
  return m;
2271
2445
  }
2272
2446
  constructor(kwargs) {
@@ -2295,6 +2469,9 @@ class GenerateChatAnswerRequest {
2295
2469
  if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
2296
2470
  toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
2297
2471
  }
2472
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
2473
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
2474
+ }
2298
2475
  return toReturn;
2299
2476
  }
2300
2477
  }
@@ -3158,6 +3335,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
3158
3335
  if (proto.filters) {
3159
3336
  m.filters = ListAllAssistantsAssociatedToConnectionRequestFilters.fromProto(proto.filters);
3160
3337
  }
3338
+ if (proto.fieldMask) {
3339
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
3340
+ }
3161
3341
  return m;
3162
3342
  }
3163
3343
  constructor(kwargs) {
@@ -3174,6 +3354,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
3174
3354
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
3175
3355
  toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
3176
3356
  }
3357
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
3358
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
3359
+ }
3177
3360
  return toReturn;
3178
3361
  }
3179
3362
  }
@@ -4277,6 +4460,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4277
4460
  args: [{ providedIn: 'root' }]
4278
4461
  }] });
4279
4462
 
4463
+ // *********************************
4464
+ // Code generated by sdkgen
4465
+ // DO NOT EDIT!.
4466
+ //
4467
+ // API Service.
4468
+ // *********************************
4469
+ class IntegrationTestApiService {
4470
+ constructor() {
4471
+ this.hostService = inject(HostService);
4472
+ this.http = inject(HttpClient);
4473
+ this._host = this.hostService.hostWithScheme;
4474
+ }
4475
+ apiOptions() {
4476
+ return {
4477
+ headers: new HttpHeaders({
4478
+ 'Content-Type': 'application/json'
4479
+ }),
4480
+ withCredentials: true
4481
+ };
4482
+ }
4483
+ listTestCasesByConnection(r) {
4484
+ const request = (r.toApiJson) ? r : new ListTestCasesByConnectionRequest(r);
4485
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByConnection", request.toApiJson(), this.apiOptions())
4486
+ .pipe(map(resp => ListTestCasesByConnectionResponse.fromProto(resp)));
4487
+ }
4488
+ upsertTestCases(r) {
4489
+ const request = (r.toApiJson) ? r : new UpsertTestCasesRequest(r);
4490
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/UpsertTestCases", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4491
+ }
4492
+ deleteTestCases(r) {
4493
+ const request = (r.toApiJson) ? r : new DeleteTestCasesRequest(r);
4494
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/DeleteTestCases", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
4495
+ }
4496
+ runTests(r) {
4497
+ const request = (r.toApiJson) ? r : new RunTestsRequest(r);
4498
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/RunTests", request.toApiJson(), this.apiOptions())
4499
+ .pipe(map(resp => RunTestsResponse.fromProto(resp)));
4500
+ }
4501
+ }
4502
+ IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4503
+ IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
4504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, decorators: [{
4505
+ type: Injectable,
4506
+ args: [{ providedIn: 'root' }]
4507
+ }] });
4508
+
4280
4509
  // *********************************
4281
4510
  // Code generated by sdkgen
4282
4511
  // DO NOT EDIT!.
@@ -4446,5 +4675,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4446
4675
  * Generated bundle index. Do not edit.
4447
4676
  */
4448
4677
 
4449
- 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, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, 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 };
4678
+ 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 };
4450
4679
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map