@vendasta/ai-assistants 0.53.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 +145 -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 +175 -92
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +175 -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 +5 -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 +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();
|
|
@@ -3271,10 +3297,13 @@ class ExecuteFunctionResponse {
|
|
|
3271
3297
|
return toReturn;
|
|
3272
3298
|
}
|
|
3273
3299
|
}
|
|
3274
|
-
class
|
|
3300
|
+
class ListAssistantRequestFilters {
|
|
3275
3301
|
static fromProto(proto) {
|
|
3276
|
-
let m = new
|
|
3302
|
+
let m = new ListAssistantRequestFilters();
|
|
3277
3303
|
m = Object.assign(m, proto);
|
|
3304
|
+
if (proto.namespace) {
|
|
3305
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3306
|
+
}
|
|
3278
3307
|
if (proto.type) {
|
|
3279
3308
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3280
3309
|
}
|
|
@@ -3288,21 +3317,36 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3288
3317
|
}
|
|
3289
3318
|
toApiJson() {
|
|
3290
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
|
+
}
|
|
3291
3323
|
if (typeof this.type !== 'undefined') {
|
|
3292
3324
|
toReturn['type'] = this.type;
|
|
3293
3325
|
}
|
|
3294
3326
|
return toReturn;
|
|
3295
3327
|
}
|
|
3296
3328
|
}
|
|
3297
|
-
class
|
|
3329
|
+
class ListGoalsRequestFilters {
|
|
3298
3330
|
static fromProto(proto) {
|
|
3299
|
-
let m = new
|
|
3331
|
+
let m = new ListGoalsRequestFilters();
|
|
3300
3332
|
m = Object.assign(m, proto);
|
|
3301
3333
|
if (proto.namespace) {
|
|
3302
3334
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3303
3335
|
}
|
|
3304
|
-
if (proto.
|
|
3305
|
-
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);
|
|
3306
3350
|
}
|
|
3307
3351
|
return m;
|
|
3308
3352
|
}
|
|
@@ -3317,19 +3361,37 @@ class ListConnectionsRequestFilters {
|
|
|
3317
3361
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3318
3362
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3319
3363
|
}
|
|
3320
|
-
if (typeof this.
|
|
3321
|
-
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;
|
|
3322
3381
|
}
|
|
3323
3382
|
return toReturn;
|
|
3324
3383
|
}
|
|
3325
3384
|
}
|
|
3326
|
-
class
|
|
3385
|
+
class ListConnectionsRequestFilters {
|
|
3327
3386
|
static fromProto(proto) {
|
|
3328
|
-
let m = new
|
|
3387
|
+
let m = new ListConnectionsRequestFilters();
|
|
3329
3388
|
m = Object.assign(m, proto);
|
|
3330
3389
|
if (proto.namespace) {
|
|
3331
3390
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3332
3391
|
}
|
|
3392
|
+
if (proto.assistantType) {
|
|
3393
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3394
|
+
}
|
|
3333
3395
|
return m;
|
|
3334
3396
|
}
|
|
3335
3397
|
constructor(kwargs) {
|
|
@@ -3343,31 +3405,19 @@ class ListPromptModuleRequestFilters {
|
|
|
3343
3405
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3344
3406
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3345
3407
|
}
|
|
3408
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3409
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3410
|
+
}
|
|
3346
3411
|
return toReturn;
|
|
3347
3412
|
}
|
|
3348
3413
|
}
|
|
3349
|
-
class
|
|
3414
|
+
class ListPromptModuleRequestFilters {
|
|
3350
3415
|
static fromProto(proto) {
|
|
3351
|
-
let m = new
|
|
3416
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3352
3417
|
m = Object.assign(m, proto);
|
|
3353
3418
|
if (proto.namespace) {
|
|
3354
3419
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3355
3420
|
}
|
|
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
3421
|
return m;
|
|
3372
3422
|
}
|
|
3373
3423
|
constructor(kwargs) {
|
|
@@ -3381,24 +3431,6 @@ class ListGoalsRequestFilters {
|
|
|
3381
3431
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3382
3432
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3383
3433
|
}
|
|
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
3434
|
return toReturn;
|
|
3403
3435
|
}
|
|
3404
3436
|
}
|
|
@@ -3431,18 +3463,12 @@ class ListAvailableModelsRequestFilters {
|
|
|
3431
3463
|
return toReturn;
|
|
3432
3464
|
}
|
|
3433
3465
|
}
|
|
3434
|
-
class
|
|
3466
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3435
3467
|
static fromProto(proto) {
|
|
3436
|
-
let m = new
|
|
3468
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3437
3469
|
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);
|
|
3470
|
+
if (proto.type) {
|
|
3471
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3446
3472
|
}
|
|
3447
3473
|
return m;
|
|
3448
3474
|
}
|
|
@@ -3454,30 +3480,24 @@ class ListFunctionRequestFilters {
|
|
|
3454
3480
|
}
|
|
3455
3481
|
toApiJson() {
|
|
3456
3482
|
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;
|
|
3483
|
+
if (typeof this.type !== 'undefined') {
|
|
3484
|
+
toReturn['type'] = this.type;
|
|
3468
3485
|
}
|
|
3469
3486
|
return toReturn;
|
|
3470
3487
|
}
|
|
3471
3488
|
}
|
|
3472
|
-
class
|
|
3489
|
+
class ListFunctionRequestFilters {
|
|
3473
3490
|
static fromProto(proto) {
|
|
3474
|
-
let m = new
|
|
3491
|
+
let m = new ListFunctionRequestFilters();
|
|
3475
3492
|
m = Object.assign(m, proto);
|
|
3476
3493
|
if (proto.namespace) {
|
|
3477
3494
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3478
3495
|
}
|
|
3479
|
-
if (proto.
|
|
3480
|
-
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);
|
|
3481
3501
|
}
|
|
3482
3502
|
return m;
|
|
3483
3503
|
}
|
|
@@ -3492,8 +3512,14 @@ class ListAssistantRequestFilters {
|
|
|
3492
3512
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3493
3513
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3494
3514
|
}
|
|
3495
|
-
if (typeof this.
|
|
3496
|
-
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;
|
|
3497
3523
|
}
|
|
3498
3524
|
return toReturn;
|
|
3499
3525
|
}
|
|
@@ -5042,12 +5068,15 @@ class ListPromptVersionsResponse {
|
|
|
5042
5068
|
return toReturn;
|
|
5043
5069
|
}
|
|
5044
5070
|
}
|
|
5045
|
-
class
|
|
5071
|
+
class ListTemplateVariablesRequest {
|
|
5046
5072
|
static fromProto(proto) {
|
|
5047
|
-
let m = new
|
|
5073
|
+
let m = new ListTemplateVariablesRequest();
|
|
5048
5074
|
m = Object.assign(m, proto);
|
|
5049
|
-
if (proto.
|
|
5050
|
-
m.
|
|
5075
|
+
if (proto.assistantKey) {
|
|
5076
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5077
|
+
}
|
|
5078
|
+
if (proto.chatUserInfo) {
|
|
5079
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5051
5080
|
}
|
|
5052
5081
|
return m;
|
|
5053
5082
|
}
|
|
@@ -5059,22 +5088,22 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5059
5088
|
}
|
|
5060
5089
|
toApiJson() {
|
|
5061
5090
|
const toReturn = {};
|
|
5062
|
-
if (typeof this.
|
|
5063
|
-
toReturn['
|
|
5064
|
-
}
|
|
5065
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5066
|
-
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;
|
|
5067
5093
|
}
|
|
5068
|
-
if (typeof this.
|
|
5069
|
-
toReturn['
|
|
5094
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5095
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5070
5096
|
}
|
|
5071
5097
|
return toReturn;
|
|
5072
5098
|
}
|
|
5073
5099
|
}
|
|
5074
|
-
class
|
|
5100
|
+
class ListTemplateVariablesResponse {
|
|
5075
5101
|
static fromProto(proto) {
|
|
5076
|
-
let m = new
|
|
5102
|
+
let m = new ListTemplateVariablesResponse();
|
|
5077
5103
|
m = Object.assign(m, proto);
|
|
5104
|
+
if (proto.assistantScopedVariables) {
|
|
5105
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
5106
|
+
}
|
|
5078
5107
|
return m;
|
|
5079
5108
|
}
|
|
5080
5109
|
constructor(kwargs) {
|
|
@@ -5085,8 +5114,8 @@ class GetMultiAssistantRequestOptions {
|
|
|
5085
5114
|
}
|
|
5086
5115
|
toApiJson() {
|
|
5087
5116
|
const toReturn = {};
|
|
5088
|
-
if (typeof this.
|
|
5089
|
-
toReturn['
|
|
5117
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
5118
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5090
5119
|
}
|
|
5091
5120
|
return toReturn;
|
|
5092
5121
|
}
|
|
@@ -5131,10 +5160,13 @@ class UpsertAssistantRequestOptions {
|
|
|
5131
5160
|
return toReturn;
|
|
5132
5161
|
}
|
|
5133
5162
|
}
|
|
5134
|
-
class
|
|
5163
|
+
class GenerateChatAnswerRequestOptions {
|
|
5135
5164
|
static fromProto(proto) {
|
|
5136
|
-
let m = new
|
|
5165
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
5137
5166
|
m = Object.assign(m, proto);
|
|
5167
|
+
if (proto.maxTokens) {
|
|
5168
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5169
|
+
}
|
|
5138
5170
|
return m;
|
|
5139
5171
|
}
|
|
5140
5172
|
constructor(kwargs) {
|
|
@@ -5145,8 +5177,14 @@ class CreateAssistantRequestOptions {
|
|
|
5145
5177
|
}
|
|
5146
5178
|
toApiJson() {
|
|
5147
5179
|
const toReturn = {};
|
|
5148
|
-
if (typeof this.
|
|
5149
|
-
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;
|
|
5150
5188
|
}
|
|
5151
5189
|
return toReturn;
|
|
5152
5190
|
}
|
|
@@ -5171,6 +5209,46 @@ class GetAssistantRequestOptions {
|
|
|
5171
5209
|
return toReturn;
|
|
5172
5210
|
}
|
|
5173
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
|
+
}
|
|
5174
5252
|
class SetAssistantConnectionsRequest {
|
|
5175
5253
|
static fromProto(proto) {
|
|
5176
5254
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -5595,6 +5673,11 @@ class AssistantApiService {
|
|
|
5595
5673
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
5596
5674
|
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
5597
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
|
+
}
|
|
5598
5681
|
}
|
|
5599
5682
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5600
5683
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -6021,5 +6104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6021
6104
|
* Generated bundle index. Do not edit.
|
|
6022
6105
|
*/
|
|
6023
6106
|
|
|
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 };
|
|
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 };
|
|
6025
6108
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|