@vendasta/ai-assistants 0.52.0 → 0.54.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 +151 -93
- package/esm2020/lib/_internal/objects/assistant.mjs +27 -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 +30 -21
- package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/api.d.ts +52 -37
- package/lib/_internal/objects/assistant.d.ts +8 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1759,6 +1759,32 @@ class OpenAIRealtimeConfig {
|
|
|
1759
1759
|
return toReturn;
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
+
class TemplateVariable {
|
|
1763
|
+
static fromProto(proto) {
|
|
1764
|
+
let m = new TemplateVariable();
|
|
1765
|
+
m = Object.assign(m, proto);
|
|
1766
|
+
return m;
|
|
1767
|
+
}
|
|
1768
|
+
constructor(kwargs) {
|
|
1769
|
+
if (!kwargs) {
|
|
1770
|
+
return;
|
|
1771
|
+
}
|
|
1772
|
+
Object.assign(this, kwargs);
|
|
1773
|
+
}
|
|
1774
|
+
toApiJson() {
|
|
1775
|
+
const toReturn = {};
|
|
1776
|
+
if (typeof this.key !== 'undefined') {
|
|
1777
|
+
toReturn['key'] = this.key;
|
|
1778
|
+
}
|
|
1779
|
+
if (typeof this.value !== 'undefined') {
|
|
1780
|
+
toReturn['value'] = this.value;
|
|
1781
|
+
}
|
|
1782
|
+
if (typeof this.description !== 'undefined') {
|
|
1783
|
+
toReturn['description'] = this.description;
|
|
1784
|
+
}
|
|
1785
|
+
return toReturn;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1762
1788
|
class OpenAIRealtimeConfigTurnDetection {
|
|
1763
1789
|
static fromProto(proto) {
|
|
1764
1790
|
let m = new OpenAIRealtimeConfigTurnDetection();
|
|
@@ -3080,6 +3106,9 @@ class DeleteFunctionRequest {
|
|
|
3080
3106
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3081
3107
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3082
3108
|
}
|
|
3109
|
+
if (typeof this.removeFromGoals !== 'undefined') {
|
|
3110
|
+
toReturn['removeFromGoals'] = this.removeFromGoals;
|
|
3111
|
+
}
|
|
3083
3112
|
return toReturn;
|
|
3084
3113
|
}
|
|
3085
3114
|
}
|
|
@@ -3106,6 +3135,9 @@ class DeleteGoalRequest {
|
|
|
3106
3135
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3107
3136
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3108
3137
|
}
|
|
3138
|
+
if (typeof this.removeFromAssistants !== 'undefined') {
|
|
3139
|
+
toReturn['removeFromAssistants'] = this.removeFromAssistants;
|
|
3140
|
+
}
|
|
3109
3141
|
return toReturn;
|
|
3110
3142
|
}
|
|
3111
3143
|
}
|
|
@@ -3265,10 +3297,13 @@ class ExecuteFunctionResponse {
|
|
|
3265
3297
|
return toReturn;
|
|
3266
3298
|
}
|
|
3267
3299
|
}
|
|
3268
|
-
class
|
|
3300
|
+
class ListAssistantRequestFilters {
|
|
3269
3301
|
static fromProto(proto) {
|
|
3270
|
-
let m = new
|
|
3302
|
+
let m = new ListAssistantRequestFilters();
|
|
3271
3303
|
m = Object.assign(m, proto);
|
|
3304
|
+
if (proto.namespace) {
|
|
3305
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3306
|
+
}
|
|
3272
3307
|
if (proto.type) {
|
|
3273
3308
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3274
3309
|
}
|
|
@@ -3282,21 +3317,36 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3282
3317
|
}
|
|
3283
3318
|
toApiJson() {
|
|
3284
3319
|
const toReturn = {};
|
|
3320
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3321
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3322
|
+
}
|
|
3285
3323
|
if (typeof this.type !== 'undefined') {
|
|
3286
3324
|
toReturn['type'] = this.type;
|
|
3287
3325
|
}
|
|
3288
3326
|
return toReturn;
|
|
3289
3327
|
}
|
|
3290
3328
|
}
|
|
3291
|
-
class
|
|
3329
|
+
class ListGoalsRequestFilters {
|
|
3292
3330
|
static fromProto(proto) {
|
|
3293
|
-
let m = new
|
|
3331
|
+
let m = new ListGoalsRequestFilters();
|
|
3294
3332
|
m = Object.assign(m, proto);
|
|
3295
3333
|
if (proto.namespace) {
|
|
3296
3334
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3297
3335
|
}
|
|
3298
|
-
if (proto.
|
|
3299
|
-
m.
|
|
3336
|
+
if (proto.type) {
|
|
3337
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3338
|
+
}
|
|
3339
|
+
if (proto.supportedChannels) {
|
|
3340
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3341
|
+
}
|
|
3342
|
+
if (proto.namespaces) {
|
|
3343
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3344
|
+
}
|
|
3345
|
+
if (proto.constraintFilters) {
|
|
3346
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3347
|
+
}
|
|
3348
|
+
if (proto.sortOptions) {
|
|
3349
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3300
3350
|
}
|
|
3301
3351
|
return m;
|
|
3302
3352
|
}
|
|
@@ -3311,19 +3361,37 @@ class ListConnectionsRequestFilters {
|
|
|
3311
3361
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3312
3362
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3313
3363
|
}
|
|
3314
|
-
if (typeof this.
|
|
3315
|
-
toReturn['
|
|
3364
|
+
if (typeof this.type !== 'undefined') {
|
|
3365
|
+
toReturn['type'] = this.type;
|
|
3366
|
+
}
|
|
3367
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3368
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3369
|
+
}
|
|
3370
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3371
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3372
|
+
}
|
|
3373
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3374
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3375
|
+
}
|
|
3376
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3377
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3378
|
+
}
|
|
3379
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3380
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3316
3381
|
}
|
|
3317
3382
|
return toReturn;
|
|
3318
3383
|
}
|
|
3319
3384
|
}
|
|
3320
|
-
class
|
|
3385
|
+
class ListConnectionsRequestFilters {
|
|
3321
3386
|
static fromProto(proto) {
|
|
3322
|
-
let m = new
|
|
3387
|
+
let m = new ListConnectionsRequestFilters();
|
|
3323
3388
|
m = Object.assign(m, proto);
|
|
3324
3389
|
if (proto.namespace) {
|
|
3325
3390
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3326
3391
|
}
|
|
3392
|
+
if (proto.assistantType) {
|
|
3393
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3394
|
+
}
|
|
3327
3395
|
return m;
|
|
3328
3396
|
}
|
|
3329
3397
|
constructor(kwargs) {
|
|
@@ -3337,31 +3405,19 @@ class ListPromptModuleRequestFilters {
|
|
|
3337
3405
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3338
3406
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3339
3407
|
}
|
|
3408
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3409
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3410
|
+
}
|
|
3340
3411
|
return toReturn;
|
|
3341
3412
|
}
|
|
3342
3413
|
}
|
|
3343
|
-
class
|
|
3414
|
+
class ListPromptModuleRequestFilters {
|
|
3344
3415
|
static fromProto(proto) {
|
|
3345
|
-
let m = new
|
|
3416
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3346
3417
|
m = Object.assign(m, proto);
|
|
3347
3418
|
if (proto.namespace) {
|
|
3348
3419
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3349
3420
|
}
|
|
3350
|
-
if (proto.type) {
|
|
3351
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3352
|
-
}
|
|
3353
|
-
if (proto.supportedChannels) {
|
|
3354
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3355
|
-
}
|
|
3356
|
-
if (proto.namespaces) {
|
|
3357
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3358
|
-
}
|
|
3359
|
-
if (proto.constraintFilters) {
|
|
3360
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3361
|
-
}
|
|
3362
|
-
if (proto.sortOptions) {
|
|
3363
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3364
|
-
}
|
|
3365
3421
|
return m;
|
|
3366
3422
|
}
|
|
3367
3423
|
constructor(kwargs) {
|
|
@@ -3375,24 +3431,6 @@ class ListGoalsRequestFilters {
|
|
|
3375
3431
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3376
3432
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3377
3433
|
}
|
|
3378
|
-
if (typeof this.type !== 'undefined') {
|
|
3379
|
-
toReturn['type'] = this.type;
|
|
3380
|
-
}
|
|
3381
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3382
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3383
|
-
}
|
|
3384
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3385
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3386
|
-
}
|
|
3387
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3388
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3389
|
-
}
|
|
3390
|
-
if (typeof this.searchTerm !== 'undefined') {
|
|
3391
|
-
toReturn['searchTerm'] = this.searchTerm;
|
|
3392
|
-
}
|
|
3393
|
-
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3394
|
-
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3395
|
-
}
|
|
3396
3434
|
return toReturn;
|
|
3397
3435
|
}
|
|
3398
3436
|
}
|
|
@@ -3425,18 +3463,12 @@ class ListAvailableModelsRequestFilters {
|
|
|
3425
3463
|
return toReturn;
|
|
3426
3464
|
}
|
|
3427
3465
|
}
|
|
3428
|
-
class
|
|
3466
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3429
3467
|
static fromProto(proto) {
|
|
3430
|
-
let m = new
|
|
3468
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3431
3469
|
m = Object.assign(m, proto);
|
|
3432
|
-
if (proto.
|
|
3433
|
-
m.
|
|
3434
|
-
}
|
|
3435
|
-
if (proto.namespaces) {
|
|
3436
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3437
|
-
}
|
|
3438
|
-
if (proto.constraintFilters) {
|
|
3439
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3470
|
+
if (proto.type) {
|
|
3471
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3440
3472
|
}
|
|
3441
3473
|
return m;
|
|
3442
3474
|
}
|
|
@@ -3448,30 +3480,24 @@ class ListFunctionRequestFilters {
|
|
|
3448
3480
|
}
|
|
3449
3481
|
toApiJson() {
|
|
3450
3482
|
const toReturn = {};
|
|
3451
|
-
if (typeof this.
|
|
3452
|
-
toReturn['
|
|
3453
|
-
}
|
|
3454
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3455
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3456
|
-
}
|
|
3457
|
-
if (typeof this.mcpId !== 'undefined') {
|
|
3458
|
-
toReturn['mcpId'] = this.mcpId;
|
|
3459
|
-
}
|
|
3460
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3461
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3483
|
+
if (typeof this.type !== 'undefined') {
|
|
3484
|
+
toReturn['type'] = this.type;
|
|
3462
3485
|
}
|
|
3463
3486
|
return toReturn;
|
|
3464
3487
|
}
|
|
3465
3488
|
}
|
|
3466
|
-
class
|
|
3489
|
+
class ListFunctionRequestFilters {
|
|
3467
3490
|
static fromProto(proto) {
|
|
3468
|
-
let m = new
|
|
3491
|
+
let m = new ListFunctionRequestFilters();
|
|
3469
3492
|
m = Object.assign(m, proto);
|
|
3470
3493
|
if (proto.namespace) {
|
|
3471
3494
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3472
3495
|
}
|
|
3473
|
-
if (proto.
|
|
3474
|
-
m.
|
|
3496
|
+
if (proto.namespaces) {
|
|
3497
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3498
|
+
}
|
|
3499
|
+
if (proto.constraintFilters) {
|
|
3500
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3475
3501
|
}
|
|
3476
3502
|
return m;
|
|
3477
3503
|
}
|
|
@@ -3486,8 +3512,14 @@ class ListAssistantRequestFilters {
|
|
|
3486
3512
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3487
3513
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3488
3514
|
}
|
|
3489
|
-
if (typeof this.
|
|
3490
|
-
toReturn['
|
|
3515
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3516
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3517
|
+
}
|
|
3518
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3519
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3520
|
+
}
|
|
3521
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3522
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3491
3523
|
}
|
|
3492
3524
|
return toReturn;
|
|
3493
3525
|
}
|
|
@@ -5036,12 +5068,15 @@ class ListPromptVersionsResponse {
|
|
|
5036
5068
|
return toReturn;
|
|
5037
5069
|
}
|
|
5038
5070
|
}
|
|
5039
|
-
class
|
|
5071
|
+
class ListTemplateVariablesRequest {
|
|
5040
5072
|
static fromProto(proto) {
|
|
5041
|
-
let m = new
|
|
5073
|
+
let m = new ListTemplateVariablesRequest();
|
|
5042
5074
|
m = Object.assign(m, proto);
|
|
5043
|
-
if (proto.
|
|
5044
|
-
m.
|
|
5075
|
+
if (proto.assistantKey) {
|
|
5076
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5077
|
+
}
|
|
5078
|
+
if (proto.chatUserInfo) {
|
|
5079
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5045
5080
|
}
|
|
5046
5081
|
return m;
|
|
5047
5082
|
}
|
|
@@ -5053,22 +5088,22 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5053
5088
|
}
|
|
5054
5089
|
toApiJson() {
|
|
5055
5090
|
const toReturn = {};
|
|
5056
|
-
if (typeof this.
|
|
5057
|
-
toReturn['
|
|
5058
|
-
}
|
|
5059
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5060
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5091
|
+
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5092
|
+
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5061
5093
|
}
|
|
5062
|
-
if (typeof this.
|
|
5063
|
-
toReturn['
|
|
5094
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5095
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5064
5096
|
}
|
|
5065
5097
|
return toReturn;
|
|
5066
5098
|
}
|
|
5067
5099
|
}
|
|
5068
|
-
class
|
|
5100
|
+
class ListTemplateVariablesResponse {
|
|
5069
5101
|
static fromProto(proto) {
|
|
5070
|
-
let m = new
|
|
5102
|
+
let m = new ListTemplateVariablesResponse();
|
|
5071
5103
|
m = Object.assign(m, proto);
|
|
5104
|
+
if (proto.assistantScopedVariables) {
|
|
5105
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
5106
|
+
}
|
|
5072
5107
|
return m;
|
|
5073
5108
|
}
|
|
5074
5109
|
constructor(kwargs) {
|
|
@@ -5079,8 +5114,8 @@ class GetMultiAssistantRequestOptions {
|
|
|
5079
5114
|
}
|
|
5080
5115
|
toApiJson() {
|
|
5081
5116
|
const toReturn = {};
|
|
5082
|
-
if (typeof this.
|
|
5083
|
-
toReturn['
|
|
5117
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
5118
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5084
5119
|
}
|
|
5085
5120
|
return toReturn;
|
|
5086
5121
|
}
|
|
@@ -5125,10 +5160,13 @@ class UpsertAssistantRequestOptions {
|
|
|
5125
5160
|
return toReturn;
|
|
5126
5161
|
}
|
|
5127
5162
|
}
|
|
5128
|
-
class
|
|
5163
|
+
class GenerateChatAnswerRequestOptions {
|
|
5129
5164
|
static fromProto(proto) {
|
|
5130
|
-
let m = new
|
|
5165
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
5131
5166
|
m = Object.assign(m, proto);
|
|
5167
|
+
if (proto.maxTokens) {
|
|
5168
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5169
|
+
}
|
|
5132
5170
|
return m;
|
|
5133
5171
|
}
|
|
5134
5172
|
constructor(kwargs) {
|
|
@@ -5139,8 +5177,14 @@ class CreateAssistantRequestOptions {
|
|
|
5139
5177
|
}
|
|
5140
5178
|
toApiJson() {
|
|
5141
5179
|
const toReturn = {};
|
|
5142
|
-
if (typeof this.
|
|
5143
|
-
toReturn['
|
|
5180
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
5181
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
5182
|
+
}
|
|
5183
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5184
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5185
|
+
}
|
|
5186
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
5187
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
5144
5188
|
}
|
|
5145
5189
|
return toReturn;
|
|
5146
5190
|
}
|
|
@@ -5165,6 +5209,46 @@ class GetAssistantRequestOptions {
|
|
|
5165
5209
|
return toReturn;
|
|
5166
5210
|
}
|
|
5167
5211
|
}
|
|
5212
|
+
class GetMultiAssistantRequestOptions {
|
|
5213
|
+
static fromProto(proto) {
|
|
5214
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
5215
|
+
m = Object.assign(m, proto);
|
|
5216
|
+
return m;
|
|
5217
|
+
}
|
|
5218
|
+
constructor(kwargs) {
|
|
5219
|
+
if (!kwargs) {
|
|
5220
|
+
return;
|
|
5221
|
+
}
|
|
5222
|
+
Object.assign(this, kwargs);
|
|
5223
|
+
}
|
|
5224
|
+
toApiJson() {
|
|
5225
|
+
const toReturn = {};
|
|
5226
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
5227
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5228
|
+
}
|
|
5229
|
+
return toReturn;
|
|
5230
|
+
}
|
|
5231
|
+
}
|
|
5232
|
+
class CreateAssistantRequestOptions {
|
|
5233
|
+
static fromProto(proto) {
|
|
5234
|
+
let m = new CreateAssistantRequestOptions();
|
|
5235
|
+
m = Object.assign(m, proto);
|
|
5236
|
+
return m;
|
|
5237
|
+
}
|
|
5238
|
+
constructor(kwargs) {
|
|
5239
|
+
if (!kwargs) {
|
|
5240
|
+
return;
|
|
5241
|
+
}
|
|
5242
|
+
Object.assign(this, kwargs);
|
|
5243
|
+
}
|
|
5244
|
+
toApiJson() {
|
|
5245
|
+
const toReturn = {};
|
|
5246
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
5247
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
5248
|
+
}
|
|
5249
|
+
return toReturn;
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5168
5252
|
class SetAssistantConnectionsRequest {
|
|
5169
5253
|
static fromProto(proto) {
|
|
5170
5254
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -5589,6 +5673,11 @@ class AssistantApiService {
|
|
|
5589
5673
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
5590
5674
|
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
5591
5675
|
}
|
|
5676
|
+
listTemplateVariables(r) {
|
|
5677
|
+
const request = (r.toApiJson) ? r : new ListTemplateVariablesRequest(r);
|
|
5678
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListTemplateVariables", request.toApiJson(), this.apiOptions())
|
|
5679
|
+
.pipe(map(resp => ListTemplateVariablesResponse.fromProto(resp)));
|
|
5680
|
+
}
|
|
5592
5681
|
}
|
|
5593
5682
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5594
5683
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -6015,5 +6104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6015
6104
|
* Generated bundle index. Do not edit.
|
|
6016
6105
|
*/
|
|
6017
6106
|
|
|
6018
|
-
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 };
|
|
6107
|
+
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 };
|
|
6019
6108
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|