@vendasta/ai-assistants 0.53.0 → 0.55.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 +7 -2
- 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/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +145 -93
- package/esm2020/lib/_internal/objects/assistant.mjs +33 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-ai-assistants.mjs +181 -92
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +181 -92
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +28 -21
- package/lib/_internal/interfaces/assistant.interface.d.ts +7 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/api.d.ts +50 -37
- package/lib/_internal/objects/assistant.d.ts +10 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1541,6 +1541,12 @@ class Assistant {
|
|
|
1541
1541
|
if (typeof this.userId !== 'undefined') {
|
|
1542
1542
|
toReturn['userId'] = this.userId;
|
|
1543
1543
|
}
|
|
1544
|
+
if (typeof this.role !== 'undefined') {
|
|
1545
|
+
toReturn['role'] = this.role;
|
|
1546
|
+
}
|
|
1547
|
+
if (typeof this.description !== 'undefined') {
|
|
1548
|
+
toReturn['description'] = this.description;
|
|
1549
|
+
}
|
|
1544
1550
|
return toReturn;
|
|
1545
1551
|
}
|
|
1546
1552
|
}
|
|
@@ -1758,6 +1764,32 @@ class OpenAIRealtimeConfig {
|
|
|
1758
1764
|
return toReturn;
|
|
1759
1765
|
}
|
|
1760
1766
|
}
|
|
1767
|
+
class TemplateVariable {
|
|
1768
|
+
static fromProto(proto) {
|
|
1769
|
+
let m = new TemplateVariable();
|
|
1770
|
+
m = Object.assign(m, proto);
|
|
1771
|
+
return m;
|
|
1772
|
+
}
|
|
1773
|
+
constructor(kwargs) {
|
|
1774
|
+
if (!kwargs) {
|
|
1775
|
+
return;
|
|
1776
|
+
}
|
|
1777
|
+
Object.assign(this, kwargs);
|
|
1778
|
+
}
|
|
1779
|
+
toApiJson() {
|
|
1780
|
+
const toReturn = {};
|
|
1781
|
+
if (typeof this.key !== 'undefined') {
|
|
1782
|
+
toReturn['key'] = this.key;
|
|
1783
|
+
}
|
|
1784
|
+
if (typeof this.value !== 'undefined') {
|
|
1785
|
+
toReturn['value'] = this.value;
|
|
1786
|
+
}
|
|
1787
|
+
if (typeof this.description !== 'undefined') {
|
|
1788
|
+
toReturn['description'] = this.description;
|
|
1789
|
+
}
|
|
1790
|
+
return toReturn;
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1761
1793
|
class OpenAIRealtimeConfigTurnDetection {
|
|
1762
1794
|
static fromProto(proto) {
|
|
1763
1795
|
let m = new OpenAIRealtimeConfigTurnDetection();
|
|
@@ -3270,10 +3302,13 @@ class ExecuteFunctionResponse {
|
|
|
3270
3302
|
return toReturn;
|
|
3271
3303
|
}
|
|
3272
3304
|
}
|
|
3273
|
-
class
|
|
3305
|
+
class ListAssistantRequestFilters {
|
|
3274
3306
|
static fromProto(proto) {
|
|
3275
|
-
let m = new
|
|
3307
|
+
let m = new ListAssistantRequestFilters();
|
|
3276
3308
|
m = Object.assign(m, proto);
|
|
3309
|
+
if (proto.namespace) {
|
|
3310
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3311
|
+
}
|
|
3277
3312
|
if (proto.type) {
|
|
3278
3313
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3279
3314
|
}
|
|
@@ -3287,21 +3322,36 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3287
3322
|
}
|
|
3288
3323
|
toApiJson() {
|
|
3289
3324
|
const toReturn = {};
|
|
3325
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3326
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3327
|
+
}
|
|
3290
3328
|
if (typeof this.type !== 'undefined') {
|
|
3291
3329
|
toReturn['type'] = this.type;
|
|
3292
3330
|
}
|
|
3293
3331
|
return toReturn;
|
|
3294
3332
|
}
|
|
3295
3333
|
}
|
|
3296
|
-
class
|
|
3334
|
+
class ListGoalsRequestFilters {
|
|
3297
3335
|
static fromProto(proto) {
|
|
3298
|
-
let m = new
|
|
3336
|
+
let m = new ListGoalsRequestFilters();
|
|
3299
3337
|
m = Object.assign(m, proto);
|
|
3300
3338
|
if (proto.namespace) {
|
|
3301
3339
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3302
3340
|
}
|
|
3303
|
-
if (proto.
|
|
3304
|
-
m.
|
|
3341
|
+
if (proto.type) {
|
|
3342
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3343
|
+
}
|
|
3344
|
+
if (proto.supportedChannels) {
|
|
3345
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3346
|
+
}
|
|
3347
|
+
if (proto.namespaces) {
|
|
3348
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3349
|
+
}
|
|
3350
|
+
if (proto.constraintFilters) {
|
|
3351
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3352
|
+
}
|
|
3353
|
+
if (proto.sortOptions) {
|
|
3354
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3305
3355
|
}
|
|
3306
3356
|
return m;
|
|
3307
3357
|
}
|
|
@@ -3316,19 +3366,37 @@ class ListConnectionsRequestFilters {
|
|
|
3316
3366
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3317
3367
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3318
3368
|
}
|
|
3319
|
-
if (typeof this.
|
|
3320
|
-
toReturn['
|
|
3369
|
+
if (typeof this.type !== 'undefined') {
|
|
3370
|
+
toReturn['type'] = this.type;
|
|
3371
|
+
}
|
|
3372
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3373
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3374
|
+
}
|
|
3375
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3376
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3377
|
+
}
|
|
3378
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3379
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3380
|
+
}
|
|
3381
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3382
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3383
|
+
}
|
|
3384
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3385
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3321
3386
|
}
|
|
3322
3387
|
return toReturn;
|
|
3323
3388
|
}
|
|
3324
3389
|
}
|
|
3325
|
-
class
|
|
3390
|
+
class ListConnectionsRequestFilters {
|
|
3326
3391
|
static fromProto(proto) {
|
|
3327
|
-
let m = new
|
|
3392
|
+
let m = new ListConnectionsRequestFilters();
|
|
3328
3393
|
m = Object.assign(m, proto);
|
|
3329
3394
|
if (proto.namespace) {
|
|
3330
3395
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3331
3396
|
}
|
|
3397
|
+
if (proto.assistantType) {
|
|
3398
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3399
|
+
}
|
|
3332
3400
|
return m;
|
|
3333
3401
|
}
|
|
3334
3402
|
constructor(kwargs) {
|
|
@@ -3342,31 +3410,19 @@ class ListPromptModuleRequestFilters {
|
|
|
3342
3410
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3343
3411
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3344
3412
|
}
|
|
3413
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3414
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3415
|
+
}
|
|
3345
3416
|
return toReturn;
|
|
3346
3417
|
}
|
|
3347
3418
|
}
|
|
3348
|
-
class
|
|
3419
|
+
class ListPromptModuleRequestFilters {
|
|
3349
3420
|
static fromProto(proto) {
|
|
3350
|
-
let m = new
|
|
3421
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3351
3422
|
m = Object.assign(m, proto);
|
|
3352
3423
|
if (proto.namespace) {
|
|
3353
3424
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3354
3425
|
}
|
|
3355
|
-
if (proto.type) {
|
|
3356
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3357
|
-
}
|
|
3358
|
-
if (proto.supportedChannels) {
|
|
3359
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3360
|
-
}
|
|
3361
|
-
if (proto.namespaces) {
|
|
3362
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3363
|
-
}
|
|
3364
|
-
if (proto.constraintFilters) {
|
|
3365
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3366
|
-
}
|
|
3367
|
-
if (proto.sortOptions) {
|
|
3368
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3369
|
-
}
|
|
3370
3426
|
return m;
|
|
3371
3427
|
}
|
|
3372
3428
|
constructor(kwargs) {
|
|
@@ -3380,24 +3436,6 @@ class ListGoalsRequestFilters {
|
|
|
3380
3436
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3381
3437
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3382
3438
|
}
|
|
3383
|
-
if (typeof this.type !== 'undefined') {
|
|
3384
|
-
toReturn['type'] = this.type;
|
|
3385
|
-
}
|
|
3386
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3387
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3388
|
-
}
|
|
3389
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3390
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3391
|
-
}
|
|
3392
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3393
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3394
|
-
}
|
|
3395
|
-
if (typeof this.searchTerm !== 'undefined') {
|
|
3396
|
-
toReturn['searchTerm'] = this.searchTerm;
|
|
3397
|
-
}
|
|
3398
|
-
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3399
|
-
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3400
|
-
}
|
|
3401
3439
|
return toReturn;
|
|
3402
3440
|
}
|
|
3403
3441
|
}
|
|
@@ -3430,18 +3468,12 @@ class ListAvailableModelsRequestFilters {
|
|
|
3430
3468
|
return toReturn;
|
|
3431
3469
|
}
|
|
3432
3470
|
}
|
|
3433
|
-
class
|
|
3471
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3434
3472
|
static fromProto(proto) {
|
|
3435
|
-
let m = new
|
|
3473
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3436
3474
|
m = Object.assign(m, proto);
|
|
3437
|
-
if (proto.
|
|
3438
|
-
m.
|
|
3439
|
-
}
|
|
3440
|
-
if (proto.namespaces) {
|
|
3441
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3442
|
-
}
|
|
3443
|
-
if (proto.constraintFilters) {
|
|
3444
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3475
|
+
if (proto.type) {
|
|
3476
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3445
3477
|
}
|
|
3446
3478
|
return m;
|
|
3447
3479
|
}
|
|
@@ -3453,30 +3485,24 @@ class ListFunctionRequestFilters {
|
|
|
3453
3485
|
}
|
|
3454
3486
|
toApiJson() {
|
|
3455
3487
|
const toReturn = {};
|
|
3456
|
-
if (typeof this.
|
|
3457
|
-
toReturn['
|
|
3458
|
-
}
|
|
3459
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3460
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3461
|
-
}
|
|
3462
|
-
if (typeof this.mcpId !== 'undefined') {
|
|
3463
|
-
toReturn['mcpId'] = this.mcpId;
|
|
3464
|
-
}
|
|
3465
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3466
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3488
|
+
if (typeof this.type !== 'undefined') {
|
|
3489
|
+
toReturn['type'] = this.type;
|
|
3467
3490
|
}
|
|
3468
3491
|
return toReturn;
|
|
3469
3492
|
}
|
|
3470
3493
|
}
|
|
3471
|
-
class
|
|
3494
|
+
class ListFunctionRequestFilters {
|
|
3472
3495
|
static fromProto(proto) {
|
|
3473
|
-
let m = new
|
|
3496
|
+
let m = new ListFunctionRequestFilters();
|
|
3474
3497
|
m = Object.assign(m, proto);
|
|
3475
3498
|
if (proto.namespace) {
|
|
3476
3499
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3477
3500
|
}
|
|
3478
|
-
if (proto.
|
|
3479
|
-
m.
|
|
3501
|
+
if (proto.namespaces) {
|
|
3502
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3503
|
+
}
|
|
3504
|
+
if (proto.constraintFilters) {
|
|
3505
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3480
3506
|
}
|
|
3481
3507
|
return m;
|
|
3482
3508
|
}
|
|
@@ -3491,8 +3517,14 @@ class ListAssistantRequestFilters {
|
|
|
3491
3517
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3492
3518
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3493
3519
|
}
|
|
3494
|
-
if (typeof this.
|
|
3495
|
-
toReturn['
|
|
3520
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3521
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3522
|
+
}
|
|
3523
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3524
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3525
|
+
}
|
|
3526
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3527
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3496
3528
|
}
|
|
3497
3529
|
return toReturn;
|
|
3498
3530
|
}
|
|
@@ -5041,12 +5073,15 @@ class ListPromptVersionsResponse {
|
|
|
5041
5073
|
return toReturn;
|
|
5042
5074
|
}
|
|
5043
5075
|
}
|
|
5044
|
-
class
|
|
5076
|
+
class ListTemplateVariablesRequest {
|
|
5045
5077
|
static fromProto(proto) {
|
|
5046
|
-
let m = new
|
|
5078
|
+
let m = new ListTemplateVariablesRequest();
|
|
5047
5079
|
m = Object.assign(m, proto);
|
|
5048
|
-
if (proto.
|
|
5049
|
-
m.
|
|
5080
|
+
if (proto.assistantKey) {
|
|
5081
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5082
|
+
}
|
|
5083
|
+
if (proto.chatUserInfo) {
|
|
5084
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5050
5085
|
}
|
|
5051
5086
|
return m;
|
|
5052
5087
|
}
|
|
@@ -5058,22 +5093,22 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5058
5093
|
}
|
|
5059
5094
|
toApiJson() {
|
|
5060
5095
|
const toReturn = {};
|
|
5061
|
-
if (typeof this.
|
|
5062
|
-
toReturn['
|
|
5063
|
-
}
|
|
5064
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5065
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5096
|
+
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5097
|
+
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5066
5098
|
}
|
|
5067
|
-
if (typeof this.
|
|
5068
|
-
toReturn['
|
|
5099
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5100
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5069
5101
|
}
|
|
5070
5102
|
return toReturn;
|
|
5071
5103
|
}
|
|
5072
5104
|
}
|
|
5073
|
-
class
|
|
5105
|
+
class ListTemplateVariablesResponse {
|
|
5074
5106
|
static fromProto(proto) {
|
|
5075
|
-
let m = new
|
|
5107
|
+
let m = new ListTemplateVariablesResponse();
|
|
5076
5108
|
m = Object.assign(m, proto);
|
|
5109
|
+
if (proto.assistantScopedVariables) {
|
|
5110
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
5111
|
+
}
|
|
5077
5112
|
return m;
|
|
5078
5113
|
}
|
|
5079
5114
|
constructor(kwargs) {
|
|
@@ -5084,8 +5119,8 @@ class GetMultiAssistantRequestOptions {
|
|
|
5084
5119
|
}
|
|
5085
5120
|
toApiJson() {
|
|
5086
5121
|
const toReturn = {};
|
|
5087
|
-
if (typeof this.
|
|
5088
|
-
toReturn['
|
|
5122
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
5123
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5089
5124
|
}
|
|
5090
5125
|
return toReturn;
|
|
5091
5126
|
}
|
|
@@ -5130,10 +5165,13 @@ class UpsertAssistantRequestOptions {
|
|
|
5130
5165
|
return toReturn;
|
|
5131
5166
|
}
|
|
5132
5167
|
}
|
|
5133
|
-
class
|
|
5168
|
+
class GenerateChatAnswerRequestOptions {
|
|
5134
5169
|
static fromProto(proto) {
|
|
5135
|
-
let m = new
|
|
5170
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
5136
5171
|
m = Object.assign(m, proto);
|
|
5172
|
+
if (proto.maxTokens) {
|
|
5173
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5174
|
+
}
|
|
5137
5175
|
return m;
|
|
5138
5176
|
}
|
|
5139
5177
|
constructor(kwargs) {
|
|
@@ -5144,8 +5182,14 @@ class CreateAssistantRequestOptions {
|
|
|
5144
5182
|
}
|
|
5145
5183
|
toApiJson() {
|
|
5146
5184
|
const toReturn = {};
|
|
5147
|
-
if (typeof this.
|
|
5148
|
-
toReturn['
|
|
5185
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
5186
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
5187
|
+
}
|
|
5188
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5189
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5190
|
+
}
|
|
5191
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
5192
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
5149
5193
|
}
|
|
5150
5194
|
return toReturn;
|
|
5151
5195
|
}
|
|
@@ -5170,6 +5214,46 @@ class GetAssistantRequestOptions {
|
|
|
5170
5214
|
return toReturn;
|
|
5171
5215
|
}
|
|
5172
5216
|
}
|
|
5217
|
+
class GetMultiAssistantRequestOptions {
|
|
5218
|
+
static fromProto(proto) {
|
|
5219
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
5220
|
+
m = Object.assign(m, proto);
|
|
5221
|
+
return m;
|
|
5222
|
+
}
|
|
5223
|
+
constructor(kwargs) {
|
|
5224
|
+
if (!kwargs) {
|
|
5225
|
+
return;
|
|
5226
|
+
}
|
|
5227
|
+
Object.assign(this, kwargs);
|
|
5228
|
+
}
|
|
5229
|
+
toApiJson() {
|
|
5230
|
+
const toReturn = {};
|
|
5231
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
5232
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5233
|
+
}
|
|
5234
|
+
return toReturn;
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5237
|
+
class CreateAssistantRequestOptions {
|
|
5238
|
+
static fromProto(proto) {
|
|
5239
|
+
let m = new CreateAssistantRequestOptions();
|
|
5240
|
+
m = Object.assign(m, proto);
|
|
5241
|
+
return m;
|
|
5242
|
+
}
|
|
5243
|
+
constructor(kwargs) {
|
|
5244
|
+
if (!kwargs) {
|
|
5245
|
+
return;
|
|
5246
|
+
}
|
|
5247
|
+
Object.assign(this, kwargs);
|
|
5248
|
+
}
|
|
5249
|
+
toApiJson() {
|
|
5250
|
+
const toReturn = {};
|
|
5251
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
5252
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
5253
|
+
}
|
|
5254
|
+
return toReturn;
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5173
5257
|
class SetAssistantConnectionsRequest {
|
|
5174
5258
|
static fromProto(proto) {
|
|
5175
5259
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -5594,6 +5678,11 @@ class AssistantApiService {
|
|
|
5594
5678
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
5595
5679
|
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
5596
5680
|
}
|
|
5681
|
+
listTemplateVariables(r) {
|
|
5682
|
+
const request = (r.toApiJson) ? r : new ListTemplateVariablesRequest(r);
|
|
5683
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListTemplateVariables", request.toApiJson(), this.apiOptions())
|
|
5684
|
+
.pipe(map(resp => ListTemplateVariablesResponse.fromProto(resp)));
|
|
5685
|
+
}
|
|
5597
5686
|
}
|
|
5598
5687
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5599
5688
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -6020,5 +6109,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6020
6109
|
* Generated bundle index. Do not edit.
|
|
6021
6110
|
*/
|
|
6022
6111
|
|
|
6023
|
-
export { Access, Action, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
6112
|
+
export { Access, Action, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
6024
6113
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|