@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
|
@@ -1542,6 +1542,12 @@ class Assistant {
|
|
|
1542
1542
|
if (typeof this.userId !== 'undefined') {
|
|
1543
1543
|
toReturn['userId'] = this.userId;
|
|
1544
1544
|
}
|
|
1545
|
+
if (typeof this.role !== 'undefined') {
|
|
1546
|
+
toReturn['role'] = this.role;
|
|
1547
|
+
}
|
|
1548
|
+
if (typeof this.description !== 'undefined') {
|
|
1549
|
+
toReturn['description'] = this.description;
|
|
1550
|
+
}
|
|
1545
1551
|
return toReturn;
|
|
1546
1552
|
}
|
|
1547
1553
|
}
|
|
@@ -1759,6 +1765,32 @@ class OpenAIRealtimeConfig {
|
|
|
1759
1765
|
return toReturn;
|
|
1760
1766
|
}
|
|
1761
1767
|
}
|
|
1768
|
+
class TemplateVariable {
|
|
1769
|
+
static fromProto(proto) {
|
|
1770
|
+
let m = new TemplateVariable();
|
|
1771
|
+
m = Object.assign(m, proto);
|
|
1772
|
+
return m;
|
|
1773
|
+
}
|
|
1774
|
+
constructor(kwargs) {
|
|
1775
|
+
if (!kwargs) {
|
|
1776
|
+
return;
|
|
1777
|
+
}
|
|
1778
|
+
Object.assign(this, kwargs);
|
|
1779
|
+
}
|
|
1780
|
+
toApiJson() {
|
|
1781
|
+
const toReturn = {};
|
|
1782
|
+
if (typeof this.key !== 'undefined') {
|
|
1783
|
+
toReturn['key'] = this.key;
|
|
1784
|
+
}
|
|
1785
|
+
if (typeof this.value !== 'undefined') {
|
|
1786
|
+
toReturn['value'] = this.value;
|
|
1787
|
+
}
|
|
1788
|
+
if (typeof this.description !== 'undefined') {
|
|
1789
|
+
toReturn['description'] = this.description;
|
|
1790
|
+
}
|
|
1791
|
+
return toReturn;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1762
1794
|
class OpenAIRealtimeConfigTurnDetection {
|
|
1763
1795
|
static fromProto(proto) {
|
|
1764
1796
|
let m = new OpenAIRealtimeConfigTurnDetection();
|
|
@@ -3271,10 +3303,13 @@ class ExecuteFunctionResponse {
|
|
|
3271
3303
|
return toReturn;
|
|
3272
3304
|
}
|
|
3273
3305
|
}
|
|
3274
|
-
class
|
|
3306
|
+
class ListAssistantRequestFilters {
|
|
3275
3307
|
static fromProto(proto) {
|
|
3276
|
-
let m = new
|
|
3308
|
+
let m = new ListAssistantRequestFilters();
|
|
3277
3309
|
m = Object.assign(m, proto);
|
|
3310
|
+
if (proto.namespace) {
|
|
3311
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3312
|
+
}
|
|
3278
3313
|
if (proto.type) {
|
|
3279
3314
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3280
3315
|
}
|
|
@@ -3288,21 +3323,36 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3288
3323
|
}
|
|
3289
3324
|
toApiJson() {
|
|
3290
3325
|
const toReturn = {};
|
|
3326
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3327
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3328
|
+
}
|
|
3291
3329
|
if (typeof this.type !== 'undefined') {
|
|
3292
3330
|
toReturn['type'] = this.type;
|
|
3293
3331
|
}
|
|
3294
3332
|
return toReturn;
|
|
3295
3333
|
}
|
|
3296
3334
|
}
|
|
3297
|
-
class
|
|
3335
|
+
class ListGoalsRequestFilters {
|
|
3298
3336
|
static fromProto(proto) {
|
|
3299
|
-
let m = new
|
|
3337
|
+
let m = new ListGoalsRequestFilters();
|
|
3300
3338
|
m = Object.assign(m, proto);
|
|
3301
3339
|
if (proto.namespace) {
|
|
3302
3340
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3303
3341
|
}
|
|
3304
|
-
if (proto.
|
|
3305
|
-
m.
|
|
3342
|
+
if (proto.type) {
|
|
3343
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3344
|
+
}
|
|
3345
|
+
if (proto.supportedChannels) {
|
|
3346
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3347
|
+
}
|
|
3348
|
+
if (proto.namespaces) {
|
|
3349
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3350
|
+
}
|
|
3351
|
+
if (proto.constraintFilters) {
|
|
3352
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3353
|
+
}
|
|
3354
|
+
if (proto.sortOptions) {
|
|
3355
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3306
3356
|
}
|
|
3307
3357
|
return m;
|
|
3308
3358
|
}
|
|
@@ -3317,19 +3367,37 @@ class ListConnectionsRequestFilters {
|
|
|
3317
3367
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3318
3368
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3319
3369
|
}
|
|
3320
|
-
if (typeof this.
|
|
3321
|
-
toReturn['
|
|
3370
|
+
if (typeof this.type !== 'undefined') {
|
|
3371
|
+
toReturn['type'] = this.type;
|
|
3372
|
+
}
|
|
3373
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3374
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3375
|
+
}
|
|
3376
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3377
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3378
|
+
}
|
|
3379
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3380
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3381
|
+
}
|
|
3382
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3383
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3384
|
+
}
|
|
3385
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3386
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3322
3387
|
}
|
|
3323
3388
|
return toReturn;
|
|
3324
3389
|
}
|
|
3325
3390
|
}
|
|
3326
|
-
class
|
|
3391
|
+
class ListConnectionsRequestFilters {
|
|
3327
3392
|
static fromProto(proto) {
|
|
3328
|
-
let m = new
|
|
3393
|
+
let m = new ListConnectionsRequestFilters();
|
|
3329
3394
|
m = Object.assign(m, proto);
|
|
3330
3395
|
if (proto.namespace) {
|
|
3331
3396
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3332
3397
|
}
|
|
3398
|
+
if (proto.assistantType) {
|
|
3399
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3400
|
+
}
|
|
3333
3401
|
return m;
|
|
3334
3402
|
}
|
|
3335
3403
|
constructor(kwargs) {
|
|
@@ -3343,31 +3411,19 @@ class ListPromptModuleRequestFilters {
|
|
|
3343
3411
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3344
3412
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3345
3413
|
}
|
|
3414
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3415
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3416
|
+
}
|
|
3346
3417
|
return toReturn;
|
|
3347
3418
|
}
|
|
3348
3419
|
}
|
|
3349
|
-
class
|
|
3420
|
+
class ListPromptModuleRequestFilters {
|
|
3350
3421
|
static fromProto(proto) {
|
|
3351
|
-
let m = new
|
|
3422
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3352
3423
|
m = Object.assign(m, proto);
|
|
3353
3424
|
if (proto.namespace) {
|
|
3354
3425
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3355
3426
|
}
|
|
3356
|
-
if (proto.type) {
|
|
3357
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3358
|
-
}
|
|
3359
|
-
if (proto.supportedChannels) {
|
|
3360
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3361
|
-
}
|
|
3362
|
-
if (proto.namespaces) {
|
|
3363
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3364
|
-
}
|
|
3365
|
-
if (proto.constraintFilters) {
|
|
3366
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3367
|
-
}
|
|
3368
|
-
if (proto.sortOptions) {
|
|
3369
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3370
|
-
}
|
|
3371
3427
|
return m;
|
|
3372
3428
|
}
|
|
3373
3429
|
constructor(kwargs) {
|
|
@@ -3381,24 +3437,6 @@ class ListGoalsRequestFilters {
|
|
|
3381
3437
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3382
3438
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3383
3439
|
}
|
|
3384
|
-
if (typeof this.type !== 'undefined') {
|
|
3385
|
-
toReturn['type'] = this.type;
|
|
3386
|
-
}
|
|
3387
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3388
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3389
|
-
}
|
|
3390
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3391
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3392
|
-
}
|
|
3393
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3394
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3395
|
-
}
|
|
3396
|
-
if (typeof this.searchTerm !== 'undefined') {
|
|
3397
|
-
toReturn['searchTerm'] = this.searchTerm;
|
|
3398
|
-
}
|
|
3399
|
-
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3400
|
-
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3401
|
-
}
|
|
3402
3440
|
return toReturn;
|
|
3403
3441
|
}
|
|
3404
3442
|
}
|
|
@@ -3431,18 +3469,12 @@ class ListAvailableModelsRequestFilters {
|
|
|
3431
3469
|
return toReturn;
|
|
3432
3470
|
}
|
|
3433
3471
|
}
|
|
3434
|
-
class
|
|
3472
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3435
3473
|
static fromProto(proto) {
|
|
3436
|
-
let m = new
|
|
3474
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3437
3475
|
m = Object.assign(m, proto);
|
|
3438
|
-
if (proto.
|
|
3439
|
-
m.
|
|
3440
|
-
}
|
|
3441
|
-
if (proto.namespaces) {
|
|
3442
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3443
|
-
}
|
|
3444
|
-
if (proto.constraintFilters) {
|
|
3445
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3476
|
+
if (proto.type) {
|
|
3477
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3446
3478
|
}
|
|
3447
3479
|
return m;
|
|
3448
3480
|
}
|
|
@@ -3454,30 +3486,24 @@ class ListFunctionRequestFilters {
|
|
|
3454
3486
|
}
|
|
3455
3487
|
toApiJson() {
|
|
3456
3488
|
const toReturn = {};
|
|
3457
|
-
if (typeof this.
|
|
3458
|
-
toReturn['
|
|
3459
|
-
}
|
|
3460
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3461
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3462
|
-
}
|
|
3463
|
-
if (typeof this.mcpId !== 'undefined') {
|
|
3464
|
-
toReturn['mcpId'] = this.mcpId;
|
|
3465
|
-
}
|
|
3466
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3467
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3489
|
+
if (typeof this.type !== 'undefined') {
|
|
3490
|
+
toReturn['type'] = this.type;
|
|
3468
3491
|
}
|
|
3469
3492
|
return toReturn;
|
|
3470
3493
|
}
|
|
3471
3494
|
}
|
|
3472
|
-
class
|
|
3495
|
+
class ListFunctionRequestFilters {
|
|
3473
3496
|
static fromProto(proto) {
|
|
3474
|
-
let m = new
|
|
3497
|
+
let m = new ListFunctionRequestFilters();
|
|
3475
3498
|
m = Object.assign(m, proto);
|
|
3476
3499
|
if (proto.namespace) {
|
|
3477
3500
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3478
3501
|
}
|
|
3479
|
-
if (proto.
|
|
3480
|
-
m.
|
|
3502
|
+
if (proto.namespaces) {
|
|
3503
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3504
|
+
}
|
|
3505
|
+
if (proto.constraintFilters) {
|
|
3506
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3481
3507
|
}
|
|
3482
3508
|
return m;
|
|
3483
3509
|
}
|
|
@@ -3492,8 +3518,14 @@ class ListAssistantRequestFilters {
|
|
|
3492
3518
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3493
3519
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3494
3520
|
}
|
|
3495
|
-
if (typeof this.
|
|
3496
|
-
toReturn['
|
|
3521
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3522
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3523
|
+
}
|
|
3524
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3525
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3526
|
+
}
|
|
3527
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3528
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3497
3529
|
}
|
|
3498
3530
|
return toReturn;
|
|
3499
3531
|
}
|
|
@@ -5042,12 +5074,15 @@ class ListPromptVersionsResponse {
|
|
|
5042
5074
|
return toReturn;
|
|
5043
5075
|
}
|
|
5044
5076
|
}
|
|
5045
|
-
class
|
|
5077
|
+
class ListTemplateVariablesRequest {
|
|
5046
5078
|
static fromProto(proto) {
|
|
5047
|
-
let m = new
|
|
5079
|
+
let m = new ListTemplateVariablesRequest();
|
|
5048
5080
|
m = Object.assign(m, proto);
|
|
5049
|
-
if (proto.
|
|
5050
|
-
m.
|
|
5081
|
+
if (proto.assistantKey) {
|
|
5082
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5083
|
+
}
|
|
5084
|
+
if (proto.chatUserInfo) {
|
|
5085
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5051
5086
|
}
|
|
5052
5087
|
return m;
|
|
5053
5088
|
}
|
|
@@ -5059,22 +5094,22 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5059
5094
|
}
|
|
5060
5095
|
toApiJson() {
|
|
5061
5096
|
const toReturn = {};
|
|
5062
|
-
if (typeof this.
|
|
5063
|
-
toReturn['
|
|
5064
|
-
}
|
|
5065
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5066
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5097
|
+
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5098
|
+
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5067
5099
|
}
|
|
5068
|
-
if (typeof this.
|
|
5069
|
-
toReturn['
|
|
5100
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5101
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5070
5102
|
}
|
|
5071
5103
|
return toReturn;
|
|
5072
5104
|
}
|
|
5073
5105
|
}
|
|
5074
|
-
class
|
|
5106
|
+
class ListTemplateVariablesResponse {
|
|
5075
5107
|
static fromProto(proto) {
|
|
5076
|
-
let m = new
|
|
5108
|
+
let m = new ListTemplateVariablesResponse();
|
|
5077
5109
|
m = Object.assign(m, proto);
|
|
5110
|
+
if (proto.assistantScopedVariables) {
|
|
5111
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
5112
|
+
}
|
|
5078
5113
|
return m;
|
|
5079
5114
|
}
|
|
5080
5115
|
constructor(kwargs) {
|
|
@@ -5085,8 +5120,8 @@ class GetMultiAssistantRequestOptions {
|
|
|
5085
5120
|
}
|
|
5086
5121
|
toApiJson() {
|
|
5087
5122
|
const toReturn = {};
|
|
5088
|
-
if (typeof this.
|
|
5089
|
-
toReturn['
|
|
5123
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
5124
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5090
5125
|
}
|
|
5091
5126
|
return toReturn;
|
|
5092
5127
|
}
|
|
@@ -5131,10 +5166,13 @@ class UpsertAssistantRequestOptions {
|
|
|
5131
5166
|
return toReturn;
|
|
5132
5167
|
}
|
|
5133
5168
|
}
|
|
5134
|
-
class
|
|
5169
|
+
class GenerateChatAnswerRequestOptions {
|
|
5135
5170
|
static fromProto(proto) {
|
|
5136
|
-
let m = new
|
|
5171
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
5137
5172
|
m = Object.assign(m, proto);
|
|
5173
|
+
if (proto.maxTokens) {
|
|
5174
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5175
|
+
}
|
|
5138
5176
|
return m;
|
|
5139
5177
|
}
|
|
5140
5178
|
constructor(kwargs) {
|
|
@@ -5145,8 +5183,14 @@ class CreateAssistantRequestOptions {
|
|
|
5145
5183
|
}
|
|
5146
5184
|
toApiJson() {
|
|
5147
5185
|
const toReturn = {};
|
|
5148
|
-
if (typeof this.
|
|
5149
|
-
toReturn['
|
|
5186
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
5187
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
5188
|
+
}
|
|
5189
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5190
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5191
|
+
}
|
|
5192
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
5193
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
5150
5194
|
}
|
|
5151
5195
|
return toReturn;
|
|
5152
5196
|
}
|
|
@@ -5171,6 +5215,46 @@ class GetAssistantRequestOptions {
|
|
|
5171
5215
|
return toReturn;
|
|
5172
5216
|
}
|
|
5173
5217
|
}
|
|
5218
|
+
class GetMultiAssistantRequestOptions {
|
|
5219
|
+
static fromProto(proto) {
|
|
5220
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
5221
|
+
m = Object.assign(m, proto);
|
|
5222
|
+
return m;
|
|
5223
|
+
}
|
|
5224
|
+
constructor(kwargs) {
|
|
5225
|
+
if (!kwargs) {
|
|
5226
|
+
return;
|
|
5227
|
+
}
|
|
5228
|
+
Object.assign(this, kwargs);
|
|
5229
|
+
}
|
|
5230
|
+
toApiJson() {
|
|
5231
|
+
const toReturn = {};
|
|
5232
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
5233
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5234
|
+
}
|
|
5235
|
+
return toReturn;
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
class CreateAssistantRequestOptions {
|
|
5239
|
+
static fromProto(proto) {
|
|
5240
|
+
let m = new CreateAssistantRequestOptions();
|
|
5241
|
+
m = Object.assign(m, proto);
|
|
5242
|
+
return m;
|
|
5243
|
+
}
|
|
5244
|
+
constructor(kwargs) {
|
|
5245
|
+
if (!kwargs) {
|
|
5246
|
+
return;
|
|
5247
|
+
}
|
|
5248
|
+
Object.assign(this, kwargs);
|
|
5249
|
+
}
|
|
5250
|
+
toApiJson() {
|
|
5251
|
+
const toReturn = {};
|
|
5252
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
5253
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
5254
|
+
}
|
|
5255
|
+
return toReturn;
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5174
5258
|
class SetAssistantConnectionsRequest {
|
|
5175
5259
|
static fromProto(proto) {
|
|
5176
5260
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -5595,6 +5679,11 @@ class AssistantApiService {
|
|
|
5595
5679
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
5596
5680
|
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
5597
5681
|
}
|
|
5682
|
+
listTemplateVariables(r) {
|
|
5683
|
+
const request = (r.toApiJson) ? r : new ListTemplateVariablesRequest(r);
|
|
5684
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListTemplateVariables", request.toApiJson(), this.apiOptions())
|
|
5685
|
+
.pipe(map(resp => ListTemplateVariablesResponse.fromProto(resp)));
|
|
5686
|
+
}
|
|
5598
5687
|
}
|
|
5599
5688
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5600
5689
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -6021,5 +6110,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6021
6110
|
* Generated bundle index. Do not edit.
|
|
6022
6111
|
*/
|
|
6023
6112
|
|
|
6024
|
-
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 };
|
|
6113
|
+
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 };
|
|
6025
6114
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|