@vendasta/ai-assistants 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/assistant.api.service.mjs +11 -2
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/answer.mjs +4 -1
- package/esm2020/lib/_internal/objects/api.mjs +129 -27
- package/esm2020/lib/_internal/objects/assistant.mjs +4 -1
- package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/fesm2015/vendasta-ai-assistants.mjs +188 -45
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +188 -45
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +4 -2
- package/lib/_internal/interfaces/answer.interface.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +25 -10
- package/lib/_internal/interfaces/assistant.interface.d.ts +1 -0
- package/lib/_internal/interfaces/field-mask.interface.d.ts +3 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/answer.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +41 -14
- package/lib/_internal/objects/assistant.d.ts +1 -0
- package/lib/_internal/objects/field-mask.d.ts +8 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -128,7 +128,7 @@ var ChatMessageRole;
|
|
|
128
128
|
// Enums Index.
|
|
129
129
|
// *********************************
|
|
130
130
|
|
|
131
|
-
function enumStringToValue$
|
|
131
|
+
function enumStringToValue$b(enumRef, value) {
|
|
132
132
|
if (typeof value === 'number') {
|
|
133
133
|
return value;
|
|
134
134
|
}
|
|
@@ -302,7 +302,7 @@ class NamespaceSystemNamespace {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
function enumStringToValue$
|
|
305
|
+
function enumStringToValue$a(enumRef, value) {
|
|
306
306
|
if (typeof value === 'number') {
|
|
307
307
|
return value;
|
|
308
308
|
}
|
|
@@ -462,7 +462,7 @@ class FunctionParameter {
|
|
|
462
462
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
463
463
|
}
|
|
464
464
|
if (proto.location) {
|
|
465
|
-
m.location = enumStringToValue$
|
|
465
|
+
m.location = enumStringToValue$a(FunctionParameterParameterLocation, proto.location);
|
|
466
466
|
}
|
|
467
467
|
return m;
|
|
468
468
|
}
|
|
@@ -536,7 +536,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
function enumStringToValue$
|
|
539
|
+
function enumStringToValue$9(enumRef, value) {
|
|
540
540
|
if (typeof value === 'number') {
|
|
541
541
|
return value;
|
|
542
542
|
}
|
|
@@ -739,7 +739,7 @@ class PromptVersion {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function enumStringToValue$
|
|
742
|
+
function enumStringToValue$8(enumRef, value) {
|
|
743
743
|
if (typeof value === 'number') {
|
|
744
744
|
return value;
|
|
745
745
|
}
|
|
@@ -753,7 +753,7 @@ class Goal {
|
|
|
753
753
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
754
754
|
}
|
|
755
755
|
if (proto.type) {
|
|
756
|
-
m.type = enumStringToValue$
|
|
756
|
+
m.type = enumStringToValue$8(GoalType, proto.type);
|
|
757
757
|
}
|
|
758
758
|
if (proto.promptModules) {
|
|
759
759
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -765,7 +765,7 @@ class Goal {
|
|
|
765
765
|
m.updated = new Date(proto.updated);
|
|
766
766
|
}
|
|
767
767
|
if (proto.supportedChannels) {
|
|
768
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
768
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$8(GoalChannel, v));
|
|
769
769
|
}
|
|
770
770
|
return m;
|
|
771
771
|
}
|
|
@@ -840,7 +840,7 @@ class GoalKey {
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
function enumStringToValue$
|
|
843
|
+
function enumStringToValue$7(enumRef, value) {
|
|
844
844
|
if (typeof value === 'number') {
|
|
845
845
|
return value;
|
|
846
846
|
}
|
|
@@ -870,7 +870,7 @@ class KeyValuePair {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
function enumStringToValue$
|
|
873
|
+
function enumStringToValue$6(enumRef, value) {
|
|
874
874
|
if (typeof value === 'number') {
|
|
875
875
|
return value;
|
|
876
876
|
}
|
|
@@ -884,7 +884,7 @@ class Assistant {
|
|
|
884
884
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
885
885
|
}
|
|
886
886
|
if (proto.type) {
|
|
887
|
-
m.type = enumStringToValue$
|
|
887
|
+
m.type = enumStringToValue$6(AssistantType, proto.type);
|
|
888
888
|
}
|
|
889
889
|
if (proto.config) {
|
|
890
890
|
m.config = Config.fromProto(proto.config);
|
|
@@ -923,6 +923,9 @@ class Assistant {
|
|
|
923
923
|
if (typeof this.configurableGoals !== 'undefined' && this.configurableGoals !== null) {
|
|
924
924
|
toReturn['configurableGoals'] = 'toApiJson' in this.configurableGoals ? this.configurableGoals.toApiJson() : this.configurableGoals;
|
|
925
925
|
}
|
|
926
|
+
if (typeof this.userId !== 'undefined') {
|
|
927
|
+
toReturn['userId'] = this.userId;
|
|
928
|
+
}
|
|
926
929
|
return toReturn;
|
|
927
930
|
}
|
|
928
931
|
}
|
|
@@ -1139,7 +1142,7 @@ class ConfigVoiceConfig {
|
|
|
1139
1142
|
let m = new ConfigVoiceConfig();
|
|
1140
1143
|
m = Object.assign(m, proto);
|
|
1141
1144
|
if (proto.vendorModel) {
|
|
1142
|
-
m.vendorModel = enumStringToValue$
|
|
1145
|
+
m.vendorModel = enumStringToValue$6(VendorModel, proto.vendorModel);
|
|
1143
1146
|
}
|
|
1144
1147
|
if (proto.modelConfig) {
|
|
1145
1148
|
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
@@ -1164,7 +1167,7 @@ class ConfigVoiceConfig {
|
|
|
1164
1167
|
}
|
|
1165
1168
|
}
|
|
1166
1169
|
|
|
1167
|
-
function enumStringToValue$
|
|
1170
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1168
1171
|
if (typeof value === 'number') {
|
|
1169
1172
|
return value;
|
|
1170
1173
|
}
|
|
@@ -1181,7 +1184,7 @@ class Connection {
|
|
|
1181
1184
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
1182
1185
|
}
|
|
1183
1186
|
if (proto.supportedAssistantTypes) {
|
|
1184
|
-
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$
|
|
1187
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$5(AssistantType, v));
|
|
1185
1188
|
}
|
|
1186
1189
|
return m;
|
|
1187
1190
|
}
|
|
@@ -1256,7 +1259,7 @@ class ConnectionKey {
|
|
|
1256
1259
|
}
|
|
1257
1260
|
}
|
|
1258
1261
|
|
|
1259
|
-
function enumStringToValue$
|
|
1262
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1260
1263
|
if (typeof value === 'number') {
|
|
1261
1264
|
return value;
|
|
1262
1265
|
}
|
|
@@ -1267,7 +1270,7 @@ class ChatAnswerFunctionExecutionJob {
|
|
|
1267
1270
|
let m = new ChatAnswerFunctionExecutionJob();
|
|
1268
1271
|
m = Object.assign(m, proto);
|
|
1269
1272
|
if (proto.status) {
|
|
1270
|
-
m.status = enumStringToValue$
|
|
1273
|
+
m.status = enumStringToValue$4(ChatAnswerFunctionExecutionJobStatus, proto.status);
|
|
1271
1274
|
}
|
|
1272
1275
|
if (proto.result) {
|
|
1273
1276
|
m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
|
|
@@ -1328,7 +1331,7 @@ class ChatMessage {
|
|
|
1328
1331
|
let m = new ChatMessage();
|
|
1329
1332
|
m = Object.assign(m, proto);
|
|
1330
1333
|
if (proto.role) {
|
|
1331
|
-
m.role = enumStringToValue$
|
|
1334
|
+
m.role = enumStringToValue$4(ChatMessageRole, proto.role);
|
|
1332
1335
|
}
|
|
1333
1336
|
return m;
|
|
1334
1337
|
}
|
|
@@ -1390,11 +1393,14 @@ class ChatUserInfo {
|
|
|
1390
1393
|
if (typeof this.zipCode !== 'undefined') {
|
|
1391
1394
|
toReturn['zipCode'] = this.zipCode;
|
|
1392
1395
|
}
|
|
1396
|
+
if (typeof this.timezone !== 'undefined') {
|
|
1397
|
+
toReturn['timezone'] = this.timezone;
|
|
1398
|
+
}
|
|
1393
1399
|
return toReturn;
|
|
1394
1400
|
}
|
|
1395
1401
|
}
|
|
1396
1402
|
|
|
1397
|
-
function enumStringToValue$
|
|
1403
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1398
1404
|
if (typeof value === 'number') {
|
|
1399
1405
|
return value;
|
|
1400
1406
|
}
|
|
@@ -1424,7 +1430,7 @@ class Access {
|
|
|
1424
1430
|
}
|
|
1425
1431
|
}
|
|
1426
1432
|
|
|
1427
|
-
function enumStringToValue$
|
|
1433
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1428
1434
|
if (typeof value === 'number') {
|
|
1429
1435
|
return value;
|
|
1430
1436
|
}
|
|
@@ -1486,6 +1492,33 @@ class PagedResponseMetadata {
|
|
|
1486
1492
|
}
|
|
1487
1493
|
}
|
|
1488
1494
|
|
|
1495
|
+
function enumStringToValue$1(enumRef, value) {
|
|
1496
|
+
if (typeof value === 'number') {
|
|
1497
|
+
return value;
|
|
1498
|
+
}
|
|
1499
|
+
return enumRef[value];
|
|
1500
|
+
}
|
|
1501
|
+
class FieldMask {
|
|
1502
|
+
static fromProto(proto) {
|
|
1503
|
+
let m = new FieldMask();
|
|
1504
|
+
m = Object.assign(m, proto);
|
|
1505
|
+
return m;
|
|
1506
|
+
}
|
|
1507
|
+
constructor(kwargs) {
|
|
1508
|
+
if (!kwargs) {
|
|
1509
|
+
return;
|
|
1510
|
+
}
|
|
1511
|
+
Object.assign(this, kwargs);
|
|
1512
|
+
}
|
|
1513
|
+
toApiJson() {
|
|
1514
|
+
const toReturn = {};
|
|
1515
|
+
if (typeof this.paths !== 'undefined') {
|
|
1516
|
+
toReturn['paths'] = this.paths;
|
|
1517
|
+
}
|
|
1518
|
+
return toReturn;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1489
1522
|
function enumStringToValue(enumRef, value) {
|
|
1490
1523
|
if (typeof value === 'number') {
|
|
1491
1524
|
return value;
|
|
@@ -1573,6 +1606,58 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1573
1606
|
return toReturn;
|
|
1574
1607
|
}
|
|
1575
1608
|
}
|
|
1609
|
+
class CreateAssistantRequest {
|
|
1610
|
+
static fromProto(proto) {
|
|
1611
|
+
let m = new CreateAssistantRequest();
|
|
1612
|
+
m = Object.assign(m, proto);
|
|
1613
|
+
if (proto.assistant) {
|
|
1614
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
1615
|
+
}
|
|
1616
|
+
if (proto.options) {
|
|
1617
|
+
m.options = CreateAssistantRequestOptions.fromProto(proto.options);
|
|
1618
|
+
}
|
|
1619
|
+
return m;
|
|
1620
|
+
}
|
|
1621
|
+
constructor(kwargs) {
|
|
1622
|
+
if (!kwargs) {
|
|
1623
|
+
return;
|
|
1624
|
+
}
|
|
1625
|
+
Object.assign(this, kwargs);
|
|
1626
|
+
}
|
|
1627
|
+
toApiJson() {
|
|
1628
|
+
const toReturn = {};
|
|
1629
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1630
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1631
|
+
}
|
|
1632
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
1633
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
1634
|
+
}
|
|
1635
|
+
return toReturn;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
class CreateAssistantResponse {
|
|
1639
|
+
static fromProto(proto) {
|
|
1640
|
+
let m = new CreateAssistantResponse();
|
|
1641
|
+
m = Object.assign(m, proto);
|
|
1642
|
+
if (proto.assistant) {
|
|
1643
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
1644
|
+
}
|
|
1645
|
+
return m;
|
|
1646
|
+
}
|
|
1647
|
+
constructor(kwargs) {
|
|
1648
|
+
if (!kwargs) {
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
Object.assign(this, kwargs);
|
|
1652
|
+
}
|
|
1653
|
+
toApiJson() {
|
|
1654
|
+
const toReturn = {};
|
|
1655
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1656
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1657
|
+
}
|
|
1658
|
+
return toReturn;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1576
1661
|
class CreateGoalRequest {
|
|
1577
1662
|
static fromProto(proto) {
|
|
1578
1663
|
let m = new CreateGoalRequest();
|
|
@@ -2033,12 +2118,15 @@ class ListGoalsRequestFilters {
|
|
|
2033
2118
|
return toReturn;
|
|
2034
2119
|
}
|
|
2035
2120
|
}
|
|
2036
|
-
class
|
|
2121
|
+
class ListConnectionsRequestFilters {
|
|
2037
2122
|
static fromProto(proto) {
|
|
2038
|
-
let m = new
|
|
2123
|
+
let m = new ListConnectionsRequestFilters();
|
|
2039
2124
|
m = Object.assign(m, proto);
|
|
2040
|
-
if (proto.
|
|
2041
|
-
m.
|
|
2125
|
+
if (proto.namespace) {
|
|
2126
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2127
|
+
}
|
|
2128
|
+
if (proto.assistantType) {
|
|
2129
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
2042
2130
|
}
|
|
2043
2131
|
return m;
|
|
2044
2132
|
}
|
|
@@ -2050,8 +2138,11 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2050
2138
|
}
|
|
2051
2139
|
toApiJson() {
|
|
2052
2140
|
const toReturn = {};
|
|
2053
|
-
if (typeof this.
|
|
2054
|
-
toReturn['
|
|
2141
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2142
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2143
|
+
}
|
|
2144
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
2145
|
+
toReturn['assistantType'] = this.assistantType;
|
|
2055
2146
|
}
|
|
2056
2147
|
return toReturn;
|
|
2057
2148
|
}
|
|
@@ -2079,13 +2170,10 @@ class ListFunctionRequestFilters {
|
|
|
2079
2170
|
return toReturn;
|
|
2080
2171
|
}
|
|
2081
2172
|
}
|
|
2082
|
-
class
|
|
2173
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
2083
2174
|
static fromProto(proto) {
|
|
2084
|
-
let m = new
|
|
2175
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
2085
2176
|
m = Object.assign(m, proto);
|
|
2086
|
-
if (proto.namespace) {
|
|
2087
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2088
|
-
}
|
|
2089
2177
|
if (proto.type) {
|
|
2090
2178
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2091
2179
|
}
|
|
@@ -2099,22 +2187,22 @@ class ListAssistantRequestFilters {
|
|
|
2099
2187
|
}
|
|
2100
2188
|
toApiJson() {
|
|
2101
2189
|
const toReturn = {};
|
|
2102
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2103
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2104
|
-
}
|
|
2105
2190
|
if (typeof this.type !== 'undefined') {
|
|
2106
2191
|
toReturn['type'] = this.type;
|
|
2107
2192
|
}
|
|
2108
2193
|
return toReturn;
|
|
2109
2194
|
}
|
|
2110
2195
|
}
|
|
2111
|
-
class
|
|
2196
|
+
class ListAssistantRequestFilters {
|
|
2112
2197
|
static fromProto(proto) {
|
|
2113
|
-
let m = new
|
|
2198
|
+
let m = new ListAssistantRequestFilters();
|
|
2114
2199
|
m = Object.assign(m, proto);
|
|
2115
2200
|
if (proto.namespace) {
|
|
2116
2201
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2117
2202
|
}
|
|
2203
|
+
if (proto.type) {
|
|
2204
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2205
|
+
}
|
|
2118
2206
|
return m;
|
|
2119
2207
|
}
|
|
2120
2208
|
constructor(kwargs) {
|
|
@@ -2128,19 +2216,19 @@ class ListPromptModuleRequestFilters {
|
|
|
2128
2216
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2129
2217
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2130
2218
|
}
|
|
2219
|
+
if (typeof this.type !== 'undefined') {
|
|
2220
|
+
toReturn['type'] = this.type;
|
|
2221
|
+
}
|
|
2131
2222
|
return toReturn;
|
|
2132
2223
|
}
|
|
2133
2224
|
}
|
|
2134
|
-
class
|
|
2225
|
+
class ListPromptModuleRequestFilters {
|
|
2135
2226
|
static fromProto(proto) {
|
|
2136
|
-
let m = new
|
|
2227
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2137
2228
|
m = Object.assign(m, proto);
|
|
2138
2229
|
if (proto.namespace) {
|
|
2139
2230
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2140
2231
|
}
|
|
2141
|
-
if (proto.assistantType) {
|
|
2142
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
2143
|
-
}
|
|
2144
2232
|
return m;
|
|
2145
2233
|
}
|
|
2146
2234
|
constructor(kwargs) {
|
|
@@ -2154,9 +2242,6 @@ class ListConnectionsRequestFilters {
|
|
|
2154
2242
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2155
2243
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2156
2244
|
}
|
|
2157
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
2158
|
-
toReturn['assistantType'] = this.assistantType;
|
|
2159
|
-
}
|
|
2160
2245
|
return toReturn;
|
|
2161
2246
|
}
|
|
2162
2247
|
}
|
|
@@ -3617,9 +3702,9 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3617
3702
|
return toReturn;
|
|
3618
3703
|
}
|
|
3619
3704
|
}
|
|
3620
|
-
class
|
|
3705
|
+
class CreateAssistantRequestOptions {
|
|
3621
3706
|
static fromProto(proto) {
|
|
3622
|
-
let m = new
|
|
3707
|
+
let m = new CreateAssistantRequestOptions();
|
|
3623
3708
|
m = Object.assign(m, proto);
|
|
3624
3709
|
return m;
|
|
3625
3710
|
}
|
|
@@ -3657,6 +3742,26 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3657
3742
|
return toReturn;
|
|
3658
3743
|
}
|
|
3659
3744
|
}
|
|
3745
|
+
class UpsertAssistantRequestOptions {
|
|
3746
|
+
static fromProto(proto) {
|
|
3747
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3748
|
+
m = Object.assign(m, proto);
|
|
3749
|
+
return m;
|
|
3750
|
+
}
|
|
3751
|
+
constructor(kwargs) {
|
|
3752
|
+
if (!kwargs) {
|
|
3753
|
+
return;
|
|
3754
|
+
}
|
|
3755
|
+
Object.assign(this, kwargs);
|
|
3756
|
+
}
|
|
3757
|
+
toApiJson() {
|
|
3758
|
+
const toReturn = {};
|
|
3759
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3760
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3761
|
+
}
|
|
3762
|
+
return toReturn;
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3660
3765
|
class SetAssistantConnectionsRequest {
|
|
3661
3766
|
static fromProto(proto) {
|
|
3662
3767
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -3686,6 +3791,35 @@ class SetAssistantConnectionsRequest {
|
|
|
3686
3791
|
return toReturn;
|
|
3687
3792
|
}
|
|
3688
3793
|
}
|
|
3794
|
+
class UpdateAssistantRequest {
|
|
3795
|
+
static fromProto(proto) {
|
|
3796
|
+
let m = new UpdateAssistantRequest();
|
|
3797
|
+
m = Object.assign(m, proto);
|
|
3798
|
+
if (proto.assistant) {
|
|
3799
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
3800
|
+
}
|
|
3801
|
+
if (proto.fieldMask) {
|
|
3802
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
3803
|
+
}
|
|
3804
|
+
return m;
|
|
3805
|
+
}
|
|
3806
|
+
constructor(kwargs) {
|
|
3807
|
+
if (!kwargs) {
|
|
3808
|
+
return;
|
|
3809
|
+
}
|
|
3810
|
+
Object.assign(this, kwargs);
|
|
3811
|
+
}
|
|
3812
|
+
toApiJson() {
|
|
3813
|
+
const toReturn = {};
|
|
3814
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
3815
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
3816
|
+
}
|
|
3817
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
3818
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
3819
|
+
}
|
|
3820
|
+
return toReturn;
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3689
3823
|
class UpdateGoalRequest {
|
|
3690
3824
|
static fromProto(proto) {
|
|
3691
3825
|
let m = new UpdateGoalRequest();
|
|
@@ -3921,6 +4055,15 @@ class AssistantApiService {
|
|
|
3921
4055
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/UpsertAssistant", request.toApiJson(), this.apiOptions())
|
|
3922
4056
|
.pipe(map(resp => UpsertAssistantResponse.fromProto(resp)));
|
|
3923
4057
|
}
|
|
4058
|
+
createAssistant(r) {
|
|
4059
|
+
const request = (r.toApiJson) ? r : new CreateAssistantRequest(r);
|
|
4060
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/CreateAssistant", request.toApiJson(), this.apiOptions())
|
|
4061
|
+
.pipe(map(resp => CreateAssistantResponse.fromProto(resp)));
|
|
4062
|
+
}
|
|
4063
|
+
updateAssistant(r) {
|
|
4064
|
+
const request = (r.toApiJson) ? r : new UpdateAssistantRequest(r);
|
|
4065
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/UpdateAssistant", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4066
|
+
}
|
|
3924
4067
|
getAssistant(r) {
|
|
3925
4068
|
const request = (r.toApiJson) ? r : new GetAssistantRequest(r);
|
|
3926
4069
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
|
|
@@ -4303,5 +4446,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4303
4446
|
* Generated bundle index. Do not edit.
|
|
4304
4447
|
*/
|
|
4305
4448
|
|
|
4306
|
-
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 };
|
|
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 };
|
|
4307
4450
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|