@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
|
@@ -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();
|
|
@@ -3270,10 +3296,13 @@ class ExecuteFunctionResponse {
|
|
|
3270
3296
|
return toReturn;
|
|
3271
3297
|
}
|
|
3272
3298
|
}
|
|
3273
|
-
class
|
|
3299
|
+
class ListAssistantRequestFilters {
|
|
3274
3300
|
static fromProto(proto) {
|
|
3275
|
-
let m = new
|
|
3301
|
+
let m = new ListAssistantRequestFilters();
|
|
3276
3302
|
m = Object.assign(m, proto);
|
|
3303
|
+
if (proto.namespace) {
|
|
3304
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3305
|
+
}
|
|
3277
3306
|
if (proto.type) {
|
|
3278
3307
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3279
3308
|
}
|
|
@@ -3287,21 +3316,36 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3287
3316
|
}
|
|
3288
3317
|
toApiJson() {
|
|
3289
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
|
+
}
|
|
3290
3322
|
if (typeof this.type !== 'undefined') {
|
|
3291
3323
|
toReturn['type'] = this.type;
|
|
3292
3324
|
}
|
|
3293
3325
|
return toReturn;
|
|
3294
3326
|
}
|
|
3295
3327
|
}
|
|
3296
|
-
class
|
|
3328
|
+
class ListGoalsRequestFilters {
|
|
3297
3329
|
static fromProto(proto) {
|
|
3298
|
-
let m = new
|
|
3330
|
+
let m = new ListGoalsRequestFilters();
|
|
3299
3331
|
m = Object.assign(m, proto);
|
|
3300
3332
|
if (proto.namespace) {
|
|
3301
3333
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3302
3334
|
}
|
|
3303
|
-
if (proto.
|
|
3304
|
-
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);
|
|
3305
3349
|
}
|
|
3306
3350
|
return m;
|
|
3307
3351
|
}
|
|
@@ -3316,19 +3360,37 @@ class ListConnectionsRequestFilters {
|
|
|
3316
3360
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3317
3361
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3318
3362
|
}
|
|
3319
|
-
if (typeof this.
|
|
3320
|
-
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;
|
|
3321
3380
|
}
|
|
3322
3381
|
return toReturn;
|
|
3323
3382
|
}
|
|
3324
3383
|
}
|
|
3325
|
-
class
|
|
3384
|
+
class ListConnectionsRequestFilters {
|
|
3326
3385
|
static fromProto(proto) {
|
|
3327
|
-
let m = new
|
|
3386
|
+
let m = new ListConnectionsRequestFilters();
|
|
3328
3387
|
m = Object.assign(m, proto);
|
|
3329
3388
|
if (proto.namespace) {
|
|
3330
3389
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3331
3390
|
}
|
|
3391
|
+
if (proto.assistantType) {
|
|
3392
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3393
|
+
}
|
|
3332
3394
|
return m;
|
|
3333
3395
|
}
|
|
3334
3396
|
constructor(kwargs) {
|
|
@@ -3342,31 +3404,19 @@ class ListPromptModuleRequestFilters {
|
|
|
3342
3404
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3343
3405
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3344
3406
|
}
|
|
3407
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3408
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3409
|
+
}
|
|
3345
3410
|
return toReturn;
|
|
3346
3411
|
}
|
|
3347
3412
|
}
|
|
3348
|
-
class
|
|
3413
|
+
class ListPromptModuleRequestFilters {
|
|
3349
3414
|
static fromProto(proto) {
|
|
3350
|
-
let m = new
|
|
3415
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3351
3416
|
m = Object.assign(m, proto);
|
|
3352
3417
|
if (proto.namespace) {
|
|
3353
3418
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3354
3419
|
}
|
|
3355
|
-
if (proto.type) {
|
|
3356
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3357
|
-
}
|
|
3358
|
-
if (proto.supportedChannels) {
|
|
3359
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3360
|
-
}
|
|
3361
|
-
if (proto.namespaces) {
|
|
3362
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3363
|
-
}
|
|
3364
|
-
if (proto.constraintFilters) {
|
|
3365
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3366
|
-
}
|
|
3367
|
-
if (proto.sortOptions) {
|
|
3368
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3369
|
-
}
|
|
3370
3420
|
return m;
|
|
3371
3421
|
}
|
|
3372
3422
|
constructor(kwargs) {
|
|
@@ -3380,24 +3430,6 @@ class ListGoalsRequestFilters {
|
|
|
3380
3430
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3381
3431
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3382
3432
|
}
|
|
3383
|
-
if (typeof this.type !== 'undefined') {
|
|
3384
|
-
toReturn['type'] = this.type;
|
|
3385
|
-
}
|
|
3386
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3387
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3388
|
-
}
|
|
3389
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3390
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3391
|
-
}
|
|
3392
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3393
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3394
|
-
}
|
|
3395
|
-
if (typeof this.searchTerm !== 'undefined') {
|
|
3396
|
-
toReturn['searchTerm'] = this.searchTerm;
|
|
3397
|
-
}
|
|
3398
|
-
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3399
|
-
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3400
|
-
}
|
|
3401
3433
|
return toReturn;
|
|
3402
3434
|
}
|
|
3403
3435
|
}
|
|
@@ -3430,18 +3462,12 @@ class ListAvailableModelsRequestFilters {
|
|
|
3430
3462
|
return toReturn;
|
|
3431
3463
|
}
|
|
3432
3464
|
}
|
|
3433
|
-
class
|
|
3465
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3434
3466
|
static fromProto(proto) {
|
|
3435
|
-
let m = new
|
|
3467
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3436
3468
|
m = Object.assign(m, proto);
|
|
3437
|
-
if (proto.
|
|
3438
|
-
m.
|
|
3439
|
-
}
|
|
3440
|
-
if (proto.namespaces) {
|
|
3441
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3442
|
-
}
|
|
3443
|
-
if (proto.constraintFilters) {
|
|
3444
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3469
|
+
if (proto.type) {
|
|
3470
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3445
3471
|
}
|
|
3446
3472
|
return m;
|
|
3447
3473
|
}
|
|
@@ -3453,30 +3479,24 @@ class ListFunctionRequestFilters {
|
|
|
3453
3479
|
}
|
|
3454
3480
|
toApiJson() {
|
|
3455
3481
|
const toReturn = {};
|
|
3456
|
-
if (typeof this.
|
|
3457
|
-
toReturn['
|
|
3458
|
-
}
|
|
3459
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3460
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3461
|
-
}
|
|
3462
|
-
if (typeof this.mcpId !== 'undefined') {
|
|
3463
|
-
toReturn['mcpId'] = this.mcpId;
|
|
3464
|
-
}
|
|
3465
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3466
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3482
|
+
if (typeof this.type !== 'undefined') {
|
|
3483
|
+
toReturn['type'] = this.type;
|
|
3467
3484
|
}
|
|
3468
3485
|
return toReturn;
|
|
3469
3486
|
}
|
|
3470
3487
|
}
|
|
3471
|
-
class
|
|
3488
|
+
class ListFunctionRequestFilters {
|
|
3472
3489
|
static fromProto(proto) {
|
|
3473
|
-
let m = new
|
|
3490
|
+
let m = new ListFunctionRequestFilters();
|
|
3474
3491
|
m = Object.assign(m, proto);
|
|
3475
3492
|
if (proto.namespace) {
|
|
3476
3493
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3477
3494
|
}
|
|
3478
|
-
if (proto.
|
|
3479
|
-
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);
|
|
3480
3500
|
}
|
|
3481
3501
|
return m;
|
|
3482
3502
|
}
|
|
@@ -3491,8 +3511,14 @@ class ListAssistantRequestFilters {
|
|
|
3491
3511
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3492
3512
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3493
3513
|
}
|
|
3494
|
-
if (typeof this.
|
|
3495
|
-
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;
|
|
3496
3522
|
}
|
|
3497
3523
|
return toReturn;
|
|
3498
3524
|
}
|
|
@@ -5041,12 +5067,15 @@ class ListPromptVersionsResponse {
|
|
|
5041
5067
|
return toReturn;
|
|
5042
5068
|
}
|
|
5043
5069
|
}
|
|
5044
|
-
class
|
|
5070
|
+
class ListTemplateVariablesRequest {
|
|
5045
5071
|
static fromProto(proto) {
|
|
5046
|
-
let m = new
|
|
5072
|
+
let m = new ListTemplateVariablesRequest();
|
|
5047
5073
|
m = Object.assign(m, proto);
|
|
5048
|
-
if (proto.
|
|
5049
|
-
m.
|
|
5074
|
+
if (proto.assistantKey) {
|
|
5075
|
+
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5076
|
+
}
|
|
5077
|
+
if (proto.chatUserInfo) {
|
|
5078
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5050
5079
|
}
|
|
5051
5080
|
return m;
|
|
5052
5081
|
}
|
|
@@ -5058,22 +5087,22 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5058
5087
|
}
|
|
5059
5088
|
toApiJson() {
|
|
5060
5089
|
const toReturn = {};
|
|
5061
|
-
if (typeof this.
|
|
5062
|
-
toReturn['
|
|
5063
|
-
}
|
|
5064
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
5065
|
-
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;
|
|
5066
5092
|
}
|
|
5067
|
-
if (typeof this.
|
|
5068
|
-
toReturn['
|
|
5093
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5094
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5069
5095
|
}
|
|
5070
5096
|
return toReturn;
|
|
5071
5097
|
}
|
|
5072
5098
|
}
|
|
5073
|
-
class
|
|
5099
|
+
class ListTemplateVariablesResponse {
|
|
5074
5100
|
static fromProto(proto) {
|
|
5075
|
-
let m = new
|
|
5101
|
+
let m = new ListTemplateVariablesResponse();
|
|
5076
5102
|
m = Object.assign(m, proto);
|
|
5103
|
+
if (proto.assistantScopedVariables) {
|
|
5104
|
+
m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
|
|
5105
|
+
}
|
|
5077
5106
|
return m;
|
|
5078
5107
|
}
|
|
5079
5108
|
constructor(kwargs) {
|
|
@@ -5084,8 +5113,8 @@ class GetMultiAssistantRequestOptions {
|
|
|
5084
5113
|
}
|
|
5085
5114
|
toApiJson() {
|
|
5086
5115
|
const toReturn = {};
|
|
5087
|
-
if (typeof this.
|
|
5088
|
-
toReturn['
|
|
5116
|
+
if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
|
|
5117
|
+
toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
|
|
5089
5118
|
}
|
|
5090
5119
|
return toReturn;
|
|
5091
5120
|
}
|
|
@@ -5130,10 +5159,13 @@ class UpsertAssistantRequestOptions {
|
|
|
5130
5159
|
return toReturn;
|
|
5131
5160
|
}
|
|
5132
5161
|
}
|
|
5133
|
-
class
|
|
5162
|
+
class GenerateChatAnswerRequestOptions {
|
|
5134
5163
|
static fromProto(proto) {
|
|
5135
|
-
let m = new
|
|
5164
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
5136
5165
|
m = Object.assign(m, proto);
|
|
5166
|
+
if (proto.maxTokens) {
|
|
5167
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
5168
|
+
}
|
|
5137
5169
|
return m;
|
|
5138
5170
|
}
|
|
5139
5171
|
constructor(kwargs) {
|
|
@@ -5144,8 +5176,14 @@ class CreateAssistantRequestOptions {
|
|
|
5144
5176
|
}
|
|
5145
5177
|
toApiJson() {
|
|
5146
5178
|
const toReturn = {};
|
|
5147
|
-
if (typeof this.
|
|
5148
|
-
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;
|
|
5149
5187
|
}
|
|
5150
5188
|
return toReturn;
|
|
5151
5189
|
}
|
|
@@ -5170,6 +5208,46 @@ class GetAssistantRequestOptions {
|
|
|
5170
5208
|
return toReturn;
|
|
5171
5209
|
}
|
|
5172
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
|
+
}
|
|
5173
5251
|
class SetAssistantConnectionsRequest {
|
|
5174
5252
|
static fromProto(proto) {
|
|
5175
5253
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -5594,6 +5672,11 @@ class AssistantApiService {
|
|
|
5594
5672
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
5595
5673
|
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
5596
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
|
+
}
|
|
5597
5680
|
}
|
|
5598
5681
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5599
5682
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -6020,5 +6103,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6020
6103
|
* Generated bundle index. Do not edit.
|
|
6021
6104
|
*/
|
|
6022
6105
|
|
|
6023
|
-
export { Access, Action, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
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 };
|
|
6024
6107
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|