@vendasta/ai-assistants 0.29.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.
Files changed (29) hide show
  1. package/esm2020/lib/_internal/assistant.api.service.mjs +11 -2
  2. package/esm2020/lib/_internal/enums/assistant.enum.mjs +3 -1
  3. package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/objects/answer.mjs +27 -1
  9. package/esm2020/lib/_internal/objects/api.mjs +142 -28
  10. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  11. package/esm2020/lib/_internal/objects/index.mjs +5 -4
  12. package/esm2020/lib/_internal/objects/namespace.mjs +1 -53
  13. package/fesm2015/vendasta-ai-assistants.mjs +222 -97
  14. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  15. package/fesm2020/vendasta-ai-assistants.mjs +222 -97
  16. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  17. package/lib/_internal/assistant.api.service.d.ts +4 -2
  18. package/lib/_internal/enums/assistant.enum.d.ts +3 -1
  19. package/lib/_internal/interfaces/answer.interface.d.ts +4 -0
  20. package/lib/_internal/interfaces/api.interface.d.ts +28 -11
  21. package/lib/_internal/interfaces/field-mask.interface.d.ts +3 -0
  22. package/lib/_internal/interfaces/index.d.ts +4 -3
  23. package/lib/_internal/interfaces/namespace.interface.d.ts +0 -8
  24. package/lib/_internal/objects/answer.d.ts +7 -0
  25. package/lib/_internal/objects/api.d.ts +44 -15
  26. package/lib/_internal/objects/field-mask.d.ts +8 -0
  27. package/lib/_internal/objects/index.d.ts +4 -3
  28. package/lib/_internal/objects/namespace.d.ts +0 -14
  29. 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) {
@@ -127,7 +129,7 @@ var ChatMessageRole;
127
129
  // Enums Index.
128
130
  // *********************************
129
131
 
130
- function enumStringToValue$a(enumRef, value) {
132
+ function enumStringToValue$b(enumRef, value) {
131
133
  if (typeof value === 'number') {
132
134
  return value;
133
135
  }
@@ -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
  }
@@ -301,7 +251,7 @@ class NamespaceSystemNamespace {
301
251
  }
302
252
  }
303
253
 
304
- function enumStringToValue$9(enumRef, value) {
254
+ function enumStringToValue$a(enumRef, value) {
305
255
  if (typeof value === 'number') {
306
256
  return value;
307
257
  }
@@ -461,7 +411,7 @@ class FunctionParameter {
461
411
  m.items = FunctionParameter.fromProto(proto.items);
462
412
  }
463
413
  if (proto.location) {
464
- m.location = enumStringToValue$9(FunctionParameterParameterLocation, proto.location);
414
+ m.location = enumStringToValue$a(FunctionParameterParameterLocation, proto.location);
465
415
  }
466
416
  return m;
467
417
  }
@@ -535,7 +485,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
535
485
  }
536
486
  }
537
487
 
538
- function enumStringToValue$8(enumRef, value) {
488
+ function enumStringToValue$9(enumRef, value) {
539
489
  if (typeof value === 'number') {
540
490
  return value;
541
491
  }
@@ -738,7 +688,7 @@ class PromptVersion {
738
688
  }
739
689
  }
740
690
 
741
- function enumStringToValue$7(enumRef, value) {
691
+ function enumStringToValue$8(enumRef, value) {
742
692
  if (typeof value === 'number') {
743
693
  return value;
744
694
  }
@@ -752,7 +702,7 @@ class Goal {
752
702
  m.namespace = Namespace.fromProto(proto.namespace);
753
703
  }
754
704
  if (proto.type) {
755
- m.type = enumStringToValue$7(GoalType, proto.type);
705
+ m.type = enumStringToValue$8(GoalType, proto.type);
756
706
  }
757
707
  if (proto.promptModules) {
758
708
  m.promptModules = proto.promptModules.map(PromptModule.fromProto);
@@ -764,7 +714,7 @@ class Goal {
764
714
  m.updated = new Date(proto.updated);
765
715
  }
766
716
  if (proto.supportedChannels) {
767
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$7(GoalChannel, v));
717
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$8(GoalChannel, v));
768
718
  }
769
719
  return m;
770
720
  }
@@ -839,7 +789,7 @@ class GoalKey {
839
789
  }
840
790
  }
841
791
 
842
- function enumStringToValue$6(enumRef, value) {
792
+ function enumStringToValue$7(enumRef, value) {
843
793
  if (typeof value === 'number') {
844
794
  return value;
845
795
  }
@@ -869,7 +819,7 @@ class KeyValuePair {
869
819
  }
870
820
  }
871
821
 
872
- function enumStringToValue$5(enumRef, value) {
822
+ function enumStringToValue$6(enumRef, value) {
873
823
  if (typeof value === 'number') {
874
824
  return value;
875
825
  }
@@ -883,7 +833,7 @@ class Assistant {
883
833
  m.namespace = Namespace.fromProto(proto.namespace);
884
834
  }
885
835
  if (proto.type) {
886
- m.type = enumStringToValue$5(AssistantType, proto.type);
836
+ m.type = enumStringToValue$6(AssistantType, proto.type);
887
837
  }
888
838
  if (proto.config) {
889
839
  m.config = Config.fromProto(proto.config);
@@ -1141,7 +1091,7 @@ class ConfigVoiceConfig {
1141
1091
  let m = new ConfigVoiceConfig();
1142
1092
  m = Object.assign(m, proto);
1143
1093
  if (proto.vendorModel) {
1144
- m.vendorModel = enumStringToValue$5(VendorModel, proto.vendorModel);
1094
+ m.vendorModel = enumStringToValue$6(VendorModel, proto.vendorModel);
1145
1095
  }
1146
1096
  if (proto.modelConfig) {
1147
1097
  m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
@@ -1166,7 +1116,7 @@ class ConfigVoiceConfig {
1166
1116
  }
1167
1117
  }
1168
1118
 
1169
- function enumStringToValue$4(enumRef, value) {
1119
+ function enumStringToValue$5(enumRef, value) {
1170
1120
  if (typeof value === 'number') {
1171
1121
  return value;
1172
1122
  }
@@ -1183,7 +1133,7 @@ class Connection {
1183
1133
  m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
1184
1134
  }
1185
1135
  if (proto.supportedAssistantTypes) {
1186
- m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$4(AssistantType, v));
1136
+ m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$5(AssistantType, v));
1187
1137
  }
1188
1138
  return m;
1189
1139
  }
@@ -1258,7 +1208,7 @@ class ConnectionKey {
1258
1208
  }
1259
1209
  }
1260
1210
 
1261
- function enumStringToValue$3(enumRef, value) {
1211
+ function enumStringToValue$4(enumRef, value) {
1262
1212
  if (typeof value === 'number') {
1263
1213
  return value;
1264
1214
  }
@@ -1269,7 +1219,7 @@ class ChatAnswerFunctionExecutionJob {
1269
1219
  let m = new ChatAnswerFunctionExecutionJob();
1270
1220
  m = Object.assign(m, proto);
1271
1221
  if (proto.status) {
1272
- m.status = enumStringToValue$3(ChatAnswerFunctionExecutionJobStatus, proto.status);
1222
+ m.status = enumStringToValue$4(ChatAnswerFunctionExecutionJobStatus, proto.status);
1273
1223
  }
1274
1224
  if (proto.result) {
1275
1225
  m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
@@ -1330,7 +1280,7 @@ class ChatMessage {
1330
1280
  let m = new ChatMessage();
1331
1281
  m = Object.assign(m, proto);
1332
1282
  if (proto.role) {
1333
- m.role = enumStringToValue$3(ChatMessageRole, proto.role);
1283
+ m.role = enumStringToValue$4(ChatMessageRole, proto.role);
1334
1284
  }
1335
1285
  return m;
1336
1286
  }
@@ -1392,11 +1342,37 @@ class ChatUserInfo {
1392
1342
  if (typeof this.zipCode !== 'undefined') {
1393
1343
  toReturn['zipCode'] = this.zipCode;
1394
1344
  }
1345
+ if (typeof this.timezone !== 'undefined') {
1346
+ toReturn['timezone'] = this.timezone;
1347
+ }
1348
+ return toReturn;
1349
+ }
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
+ }
1395
1371
  return toReturn;
1396
1372
  }
1397
1373
  }
1398
1374
 
1399
- function enumStringToValue$2(enumRef, value) {
1375
+ function enumStringToValue$3(enumRef, value) {
1400
1376
  if (typeof value === 'number') {
1401
1377
  return value;
1402
1378
  }
@@ -1426,7 +1402,7 @@ class Access {
1426
1402
  }
1427
1403
  }
1428
1404
 
1429
- function enumStringToValue$1(enumRef, value) {
1405
+ function enumStringToValue$2(enumRef, value) {
1430
1406
  if (typeof value === 'number') {
1431
1407
  return value;
1432
1408
  }
@@ -1488,6 +1464,33 @@ class PagedResponseMetadata {
1488
1464
  }
1489
1465
  }
1490
1466
 
1467
+ function enumStringToValue$1(enumRef, value) {
1468
+ if (typeof value === 'number') {
1469
+ return value;
1470
+ }
1471
+ return enumRef[value];
1472
+ }
1473
+ class FieldMask {
1474
+ static fromProto(proto) {
1475
+ let m = new FieldMask();
1476
+ m = Object.assign(m, proto);
1477
+ return m;
1478
+ }
1479
+ constructor(kwargs) {
1480
+ if (!kwargs) {
1481
+ return;
1482
+ }
1483
+ Object.assign(this, kwargs);
1484
+ }
1485
+ toApiJson() {
1486
+ const toReturn = {};
1487
+ if (typeof this.paths !== 'undefined') {
1488
+ toReturn['paths'] = this.paths;
1489
+ }
1490
+ return toReturn;
1491
+ }
1492
+ }
1493
+
1491
1494
  function enumStringToValue(enumRef, value) {
1492
1495
  if (typeof value === 'number') {
1493
1496
  return value;
@@ -1575,6 +1578,58 @@ class SetAssistantConnectionsRequestConnectionState {
1575
1578
  return toReturn;
1576
1579
  }
1577
1580
  }
1581
+ class CreateAssistantRequest {
1582
+ static fromProto(proto) {
1583
+ let m = new CreateAssistantRequest();
1584
+ m = Object.assign(m, proto);
1585
+ if (proto.assistant) {
1586
+ m.assistant = Assistant.fromProto(proto.assistant);
1587
+ }
1588
+ if (proto.options) {
1589
+ m.options = CreateAssistantRequestOptions.fromProto(proto.options);
1590
+ }
1591
+ return m;
1592
+ }
1593
+ constructor(kwargs) {
1594
+ if (!kwargs) {
1595
+ return;
1596
+ }
1597
+ Object.assign(this, kwargs);
1598
+ }
1599
+ toApiJson() {
1600
+ const toReturn = {};
1601
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
1602
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
1603
+ }
1604
+ if (typeof this.options !== 'undefined' && this.options !== null) {
1605
+ toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
1606
+ }
1607
+ return toReturn;
1608
+ }
1609
+ }
1610
+ class CreateAssistantResponse {
1611
+ static fromProto(proto) {
1612
+ let m = new CreateAssistantResponse();
1613
+ m = Object.assign(m, proto);
1614
+ if (proto.assistant) {
1615
+ m.assistant = Assistant.fromProto(proto.assistant);
1616
+ }
1617
+ return m;
1618
+ }
1619
+ constructor(kwargs) {
1620
+ if (!kwargs) {
1621
+ return;
1622
+ }
1623
+ Object.assign(this, kwargs);
1624
+ }
1625
+ toApiJson() {
1626
+ const toReturn = {};
1627
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
1628
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
1629
+ }
1630
+ return toReturn;
1631
+ }
1632
+ }
1578
1633
  class CreateGoalRequest {
1579
1634
  static fromProto(proto) {
1580
1635
  let m = new CreateGoalRequest();
@@ -2035,12 +2090,15 @@ class ListGoalsRequestFilters {
2035
2090
  return toReturn;
2036
2091
  }
2037
2092
  }
2038
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
2093
+ class ListConnectionsRequestFilters {
2039
2094
  static fromProto(proto) {
2040
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
2095
+ let m = new ListConnectionsRequestFilters();
2041
2096
  m = Object.assign(m, proto);
2042
- if (proto.type) {
2043
- m.type = enumStringToValue(AssistantType, proto.type);
2097
+ if (proto.namespace) {
2098
+ m.namespace = Namespace.fromProto(proto.namespace);
2099
+ }
2100
+ if (proto.assistantType) {
2101
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
2044
2102
  }
2045
2103
  return m;
2046
2104
  }
@@ -2052,8 +2110,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
2052
2110
  }
2053
2111
  toApiJson() {
2054
2112
  const toReturn = {};
2055
- if (typeof this.type !== 'undefined') {
2056
- toReturn['type'] = this.type;
2113
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2114
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2115
+ }
2116
+ if (typeof this.assistantType !== 'undefined') {
2117
+ toReturn['assistantType'] = this.assistantType;
2057
2118
  }
2058
2119
  return toReturn;
2059
2120
  }
@@ -2081,13 +2142,10 @@ class ListFunctionRequestFilters {
2081
2142
  return toReturn;
2082
2143
  }
2083
2144
  }
2084
- class ListAssistantRequestFilters {
2145
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
2085
2146
  static fromProto(proto) {
2086
- let m = new ListAssistantRequestFilters();
2147
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
2087
2148
  m = Object.assign(m, proto);
2088
- if (proto.namespace) {
2089
- m.namespace = Namespace.fromProto(proto.namespace);
2090
- }
2091
2149
  if (proto.type) {
2092
2150
  m.type = enumStringToValue(AssistantType, proto.type);
2093
2151
  }
@@ -2101,22 +2159,22 @@ class ListAssistantRequestFilters {
2101
2159
  }
2102
2160
  toApiJson() {
2103
2161
  const toReturn = {};
2104
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2105
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2106
- }
2107
2162
  if (typeof this.type !== 'undefined') {
2108
2163
  toReturn['type'] = this.type;
2109
2164
  }
2110
2165
  return toReturn;
2111
2166
  }
2112
2167
  }
2113
- class ListPromptModuleRequestFilters {
2168
+ class ListAssistantRequestFilters {
2114
2169
  static fromProto(proto) {
2115
- let m = new ListPromptModuleRequestFilters();
2170
+ let m = new ListAssistantRequestFilters();
2116
2171
  m = Object.assign(m, proto);
2117
2172
  if (proto.namespace) {
2118
2173
  m.namespace = Namespace.fromProto(proto.namespace);
2119
2174
  }
2175
+ if (proto.type) {
2176
+ m.type = enumStringToValue(AssistantType, proto.type);
2177
+ }
2120
2178
  return m;
2121
2179
  }
2122
2180
  constructor(kwargs) {
@@ -2130,19 +2188,19 @@ class ListPromptModuleRequestFilters {
2130
2188
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2131
2189
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2132
2190
  }
2191
+ if (typeof this.type !== 'undefined') {
2192
+ toReturn['type'] = this.type;
2193
+ }
2133
2194
  return toReturn;
2134
2195
  }
2135
2196
  }
2136
- class ListConnectionsRequestFilters {
2197
+ class ListPromptModuleRequestFilters {
2137
2198
  static fromProto(proto) {
2138
- let m = new ListConnectionsRequestFilters();
2199
+ let m = new ListPromptModuleRequestFilters();
2139
2200
  m = Object.assign(m, proto);
2140
2201
  if (proto.namespace) {
2141
2202
  m.namespace = Namespace.fromProto(proto.namespace);
2142
2203
  }
2143
- if (proto.assistantType) {
2144
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
2145
- }
2146
2204
  return m;
2147
2205
  }
2148
2206
  constructor(kwargs) {
@@ -2156,9 +2214,6 @@ class ListConnectionsRequestFilters {
2156
2214
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2157
2215
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2158
2216
  }
2159
- if (typeof this.assistantType !== 'undefined') {
2160
- toReturn['assistantType'] = this.assistantType;
2161
- }
2162
2217
  return toReturn;
2163
2218
  }
2164
2219
  }
@@ -2184,6 +2239,9 @@ class GenerateChatAnswerRequest {
2184
2239
  if (proto.assistantKey) {
2185
2240
  m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
2186
2241
  }
2242
+ if (proto.contextInfo) {
2243
+ m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
2244
+ }
2187
2245
  return m;
2188
2246
  }
2189
2247
  constructor(kwargs) {
@@ -2212,6 +2270,9 @@ class GenerateChatAnswerRequest {
2212
2270
  if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
2213
2271
  toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
2214
2272
  }
2273
+ if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
2274
+ toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
2275
+ }
2215
2276
  return toReturn;
2216
2277
  }
2217
2278
  }
@@ -3075,6 +3136,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
3075
3136
  if (proto.filters) {
3076
3137
  m.filters = ListAllAssistantsAssociatedToConnectionRequestFilters.fromProto(proto.filters);
3077
3138
  }
3139
+ if (proto.fieldMask) {
3140
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
3141
+ }
3078
3142
  return m;
3079
3143
  }
3080
3144
  constructor(kwargs) {
@@ -3091,6 +3155,9 @@ class ListAllAssistantsAssociatedToConnectionRequest {
3091
3155
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
3092
3156
  toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
3093
3157
  }
3158
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
3159
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
3160
+ }
3094
3161
  return toReturn;
3095
3162
  }
3096
3163
  }
@@ -3619,9 +3686,9 @@ class GenerateChatAnswerRequestOptions {
3619
3686
  return toReturn;
3620
3687
  }
3621
3688
  }
3622
- class UpsertAssistantRequestOptions {
3689
+ class CreateAssistantRequestOptions {
3623
3690
  static fromProto(proto) {
3624
- let m = new UpsertAssistantRequestOptions();
3691
+ let m = new CreateAssistantRequestOptions();
3625
3692
  m = Object.assign(m, proto);
3626
3693
  return m;
3627
3694
  }
@@ -3659,6 +3726,26 @@ class CreatePromptModuleVersionRequestOptions {
3659
3726
  return toReturn;
3660
3727
  }
3661
3728
  }
3729
+ class UpsertAssistantRequestOptions {
3730
+ static fromProto(proto) {
3731
+ let m = new UpsertAssistantRequestOptions();
3732
+ m = Object.assign(m, proto);
3733
+ return m;
3734
+ }
3735
+ constructor(kwargs) {
3736
+ if (!kwargs) {
3737
+ return;
3738
+ }
3739
+ Object.assign(this, kwargs);
3740
+ }
3741
+ toApiJson() {
3742
+ const toReturn = {};
3743
+ if (typeof this.applyDefaults !== 'undefined') {
3744
+ toReturn['applyDefaults'] = this.applyDefaults;
3745
+ }
3746
+ return toReturn;
3747
+ }
3748
+ }
3662
3749
  class SetAssistantConnectionsRequest {
3663
3750
  static fromProto(proto) {
3664
3751
  let m = new SetAssistantConnectionsRequest();
@@ -3688,6 +3775,35 @@ class SetAssistantConnectionsRequest {
3688
3775
  return toReturn;
3689
3776
  }
3690
3777
  }
3778
+ class UpdateAssistantRequest {
3779
+ static fromProto(proto) {
3780
+ let m = new UpdateAssistantRequest();
3781
+ m = Object.assign(m, proto);
3782
+ if (proto.assistant) {
3783
+ m.assistant = Assistant.fromProto(proto.assistant);
3784
+ }
3785
+ if (proto.fieldMask) {
3786
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
3787
+ }
3788
+ return m;
3789
+ }
3790
+ constructor(kwargs) {
3791
+ if (!kwargs) {
3792
+ return;
3793
+ }
3794
+ Object.assign(this, kwargs);
3795
+ }
3796
+ toApiJson() {
3797
+ const toReturn = {};
3798
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
3799
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
3800
+ }
3801
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
3802
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
3803
+ }
3804
+ return toReturn;
3805
+ }
3806
+ }
3691
3807
  class UpdateGoalRequest {
3692
3808
  static fromProto(proto) {
3693
3809
  let m = new UpdateGoalRequest();
@@ -3923,6 +4039,15 @@ class AssistantApiService {
3923
4039
  return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/UpsertAssistant", request.toApiJson(), this.apiOptions())
3924
4040
  .pipe(map(resp => UpsertAssistantResponse.fromProto(resp)));
3925
4041
  }
4042
+ createAssistant(r) {
4043
+ const request = (r.toApiJson) ? r : new CreateAssistantRequest(r);
4044
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/CreateAssistant", request.toApiJson(), this.apiOptions())
4045
+ .pipe(map(resp => CreateAssistantResponse.fromProto(resp)));
4046
+ }
4047
+ updateAssistant(r) {
4048
+ const request = (r.toApiJson) ? r : new UpdateAssistantRequest(r);
4049
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/UpdateAssistant", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
4050
+ }
3926
4051
  getAssistant(r) {
3927
4052
  const request = (r.toApiJson) ? r : new GetAssistantRequest(r);
3928
4053
  return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
@@ -4305,5 +4430,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4305
4430
  * Generated bundle index. Do not edit.
4306
4431
  */
4307
4432
 
4308
- export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, 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, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
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 };
4309
4434
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map