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