@vendasta/ai-assistants 0.48.0 → 0.49.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.
Files changed (37) hide show
  1. package/esm2020/lib/_internal/enums/assistant-type.enum.mjs +18 -0
  2. package/esm2020/lib/_internal/enums/assistant.enum.mjs +1 -12
  3. package/esm2020/lib/_internal/enums/constraints.enum.mjs +19 -0
  4. package/esm2020/lib/_internal/enums/index.mjs +5 -2
  5. package/esm2020/lib/_internal/enums/namespace.enum.mjs +15 -0
  6. package/esm2020/lib/_internal/function.api.service.mjs +6 -2
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/constraints.interface.mjs +8 -0
  9. package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/objects/api.mjs +81 -68
  13. package/esm2020/lib/_internal/objects/constraints.mjs +101 -0
  14. package/esm2020/lib/_internal/objects/function.mjs +63 -1
  15. package/esm2020/lib/_internal/objects/goal.mjs +8 -1
  16. package/esm2020/lib/_internal/objects/index.mjs +4 -3
  17. package/fesm2015/vendasta-ai-assistants.mjs +304 -80
  18. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  19. package/fesm2020/vendasta-ai-assistants.mjs +304 -80
  20. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  21. package/lib/_internal/enums/assistant-type.enum.d.ts +10 -0
  22. package/lib/_internal/enums/assistant.enum.d.ts +0 -10
  23. package/lib/_internal/enums/constraints.enum.d.ts +10 -0
  24. package/lib/_internal/enums/index.d.ts +4 -1
  25. package/lib/_internal/enums/namespace.enum.d.ts +7 -0
  26. package/lib/_internal/function.api.service.d.ts +3 -2
  27. package/lib/_internal/interfaces/api.interface.d.ts +19 -16
  28. package/lib/_internal/interfaces/constraints.interface.d.ts +14 -0
  29. package/lib/_internal/interfaces/function.interface.d.ts +11 -0
  30. package/lib/_internal/interfaces/goal.interface.d.ts +2 -0
  31. package/lib/_internal/interfaces/index.d.ts +3 -2
  32. package/lib/_internal/objects/api.d.ts +33 -30
  33. package/lib/_internal/objects/constraints.d.ts +25 -0
  34. package/lib/_internal/objects/function.d.ts +17 -0
  35. package/lib/_internal/objects/goal.d.ts +2 -0
  36. package/lib/_internal/objects/index.d.ts +3 -2
  37. package/package.json +1 -1
@@ -26,6 +26,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
26
26
  args: [{ providedIn: 'root' }]
27
27
  }] });
28
28
 
29
+ // *********************************
30
+ // Code generated by sdkgen
31
+ // DO NOT EDIT!.
32
+ //
33
+ // Enums.
34
+ // *********************************
35
+ var NamespaceType;
36
+ (function (NamespaceType) {
37
+ NamespaceType[NamespaceType["NAMESPACE_TYPE_UNSPECIFIED"] = 0] = "NAMESPACE_TYPE_UNSPECIFIED";
38
+ NamespaceType[NamespaceType["NAMESPACE_TYPE_ACCOUNT_GROUP"] = 1] = "NAMESPACE_TYPE_ACCOUNT_GROUP";
39
+ NamespaceType[NamespaceType["NAMESPACE_TYPE_PARTNER"] = 2] = "NAMESPACE_TYPE_PARTNER";
40
+ NamespaceType[NamespaceType["NAMESPACE_TYPE_SYSTEM"] = 3] = "NAMESPACE_TYPE_SYSTEM";
41
+ NamespaceType[NamespaceType["NAMESPACE_TYPE_GLOBAL"] = 4] = "NAMESPACE_TYPE_GLOBAL";
42
+ })(NamespaceType || (NamespaceType = {}));
43
+
44
+ // *********************************
45
+ // Code generated by sdkgen
46
+ // DO NOT EDIT!.
47
+ //
48
+ // Enums.
49
+ // *********************************
50
+ var AssistantType;
51
+ (function (AssistantType) {
52
+ AssistantType[AssistantType["ASSISTANT_TYPE_UNSPECIFIED"] = 0] = "ASSISTANT_TYPE_UNSPECIFIED";
53
+ AssistantType[AssistantType["ASSISTANT_TYPE_SYSTEM"] = 1] = "ASSISTANT_TYPE_SYSTEM";
54
+ AssistantType[AssistantType["ASSISTANT_TYPE_INBOX"] = 2] = "ASSISTANT_TYPE_INBOX";
55
+ AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
56
+ AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
57
+ AssistantType[AssistantType["ASSISTANT_TYPE_CUSTOM"] = 5] = "ASSISTANT_TYPE_CUSTOM";
58
+ AssistantType[AssistantType["ASSISTANT_TYPE_SALES_COACH"] = 6] = "ASSISTANT_TYPE_SALES_COACH";
59
+ AssistantType[AssistantType["ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT"] = 7] = "ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT";
60
+ })(AssistantType || (AssistantType = {}));
61
+
62
+ // *********************************
63
+ // Code generated by sdkgen
64
+ // DO NOT EDIT!.
65
+ //
66
+ // Enums.
67
+ // *********************************
68
+ var Action;
69
+ (function (Action) {
70
+ Action[Action["ACTION_UNSPECIFIED"] = 0] = "ACTION_UNSPECIFIED";
71
+ Action[Action["ACTION_ASSIGN"] = 1] = "ACTION_ASSIGN";
72
+ Action[Action["ACTION_VIEW"] = 2] = "ACTION_VIEW";
73
+ })(Action || (Action = {}));
74
+ var Effect;
75
+ (function (Effect) {
76
+ Effect[Effect["EFFECT_UNSPECIFIED"] = 0] = "EFFECT_UNSPECIFIED";
77
+ Effect[Effect["EFFECT_ALLOW"] = 1] = "EFFECT_ALLOW";
78
+ Effect[Effect["EFFECT_DENY"] = 2] = "EFFECT_DENY";
79
+ })(Effect || (Effect = {}));
80
+
29
81
  // *********************************
30
82
  // Code generated by sdkgen
31
83
  // DO NOT EDIT!.
@@ -97,17 +149,6 @@ var ModelVendor;
97
149
  //
98
150
  // Enums.
99
151
  // *********************************
100
- var AssistantType;
101
- (function (AssistantType) {
102
- AssistantType[AssistantType["ASSISTANT_TYPE_UNSPECIFIED"] = 0] = "ASSISTANT_TYPE_UNSPECIFIED";
103
- AssistantType[AssistantType["ASSISTANT_TYPE_SYSTEM"] = 1] = "ASSISTANT_TYPE_SYSTEM";
104
- AssistantType[AssistantType["ASSISTANT_TYPE_INBOX"] = 2] = "ASSISTANT_TYPE_INBOX";
105
- AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
106
- AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
107
- AssistantType[AssistantType["ASSISTANT_TYPE_CUSTOM"] = 5] = "ASSISTANT_TYPE_CUSTOM";
108
- AssistantType[AssistantType["ASSISTANT_TYPE_SALES_COACH"] = 6] = "ASSISTANT_TYPE_SALES_COACH";
109
- AssistantType[AssistantType["ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT"] = 7] = "ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT";
110
- })(AssistantType || (AssistantType = {}));
111
152
  var VendorModel;
112
153
  (function (VendorModel) {
113
154
  VendorModel[VendorModel["VENDOR_MODEL_UNSPECIFIED"] = 0] = "VENDOR_MODEL_UNSPECIFIED";
@@ -169,7 +210,7 @@ var SortDirection;
169
210
  // Enums Index.
170
211
  // *********************************
171
212
 
172
- function enumStringToValue$d(enumRef, value) {
213
+ function enumStringToValue$e(enumRef, value) {
173
214
  if (typeof value === 'number') {
174
215
  return value;
175
216
  }
@@ -291,6 +332,106 @@ class NamespaceSystemNamespace {
291
332
  }
292
333
  }
293
334
 
335
+ function enumStringToValue$d(enumRef, value) {
336
+ if (typeof value === 'number') {
337
+ return value;
338
+ }
339
+ return enumRef[value];
340
+ }
341
+ class Constraint {
342
+ static fromProto(proto) {
343
+ let m = new Constraint();
344
+ m = Object.assign(m, proto);
345
+ if (proto.action) {
346
+ m.action = enumStringToValue$d(Action, proto.action);
347
+ }
348
+ if (proto.scope) {
349
+ m.scope = Scope.fromProto(proto.scope);
350
+ }
351
+ if (proto.effect) {
352
+ m.effect = enumStringToValue$d(Effect, proto.effect);
353
+ }
354
+ return m;
355
+ }
356
+ constructor(kwargs) {
357
+ if (!kwargs) {
358
+ return;
359
+ }
360
+ Object.assign(this, kwargs);
361
+ }
362
+ toApiJson() {
363
+ const toReturn = {};
364
+ if (typeof this.action !== 'undefined') {
365
+ toReturn['action'] = this.action;
366
+ }
367
+ if (typeof this.scope !== 'undefined' && this.scope !== null) {
368
+ toReturn['scope'] = 'toApiJson' in this.scope ? this.scope.toApiJson() : this.scope;
369
+ }
370
+ if (typeof this.effect !== 'undefined') {
371
+ toReturn['effect'] = this.effect;
372
+ }
373
+ return toReturn;
374
+ }
375
+ }
376
+ class ConstraintFilter {
377
+ static fromProto(proto) {
378
+ let m = new ConstraintFilter();
379
+ m = Object.assign(m, proto);
380
+ if (proto.action) {
381
+ m.action = enumStringToValue$d(Action, proto.action);
382
+ }
383
+ if (proto.scope) {
384
+ m.scope = Scope.fromProto(proto.scope);
385
+ }
386
+ return m;
387
+ }
388
+ constructor(kwargs) {
389
+ if (!kwargs) {
390
+ return;
391
+ }
392
+ Object.assign(this, kwargs);
393
+ }
394
+ toApiJson() {
395
+ const toReturn = {};
396
+ if (typeof this.action !== 'undefined') {
397
+ toReturn['action'] = this.action;
398
+ }
399
+ if (typeof this.scope !== 'undefined' && this.scope !== null) {
400
+ toReturn['scope'] = 'toApiJson' in this.scope ? this.scope.toApiJson() : this.scope;
401
+ }
402
+ return toReturn;
403
+ }
404
+ }
405
+ class Scope {
406
+ static fromProto(proto) {
407
+ let m = new Scope();
408
+ m = Object.assign(m, proto);
409
+ if (proto.assistantNamespaceType) {
410
+ m.assistantNamespaceType = enumStringToValue$d(NamespaceType, proto.assistantNamespaceType);
411
+ }
412
+ if (proto.assistantType) {
413
+ m.assistantType = enumStringToValue$d(AssistantType, proto.assistantType);
414
+ }
415
+ return m;
416
+ }
417
+ constructor(kwargs) {
418
+ if (!kwargs) {
419
+ return;
420
+ }
421
+ Object.assign(this, kwargs);
422
+ }
423
+ toApiJson() {
424
+ const toReturn = {};
425
+ if (typeof this.assistantNamespaceType !== 'undefined') {
426
+ toReturn['assistantNamespaceType'] = this.assistantNamespaceType;
427
+ }
428
+ if (typeof this.assistantType !== 'undefined') {
429
+ toReturn['assistantType'] = this.assistantType;
430
+ }
431
+ return toReturn;
432
+ }
433
+ }
434
+
294
435
  function enumStringToValue$c(enumRef, value) {
295
436
  if (typeof value === 'number') {
296
437
  return value;
@@ -359,6 +500,55 @@ function enumStringToValue$b(enumRef, value) {
359
500
  }
360
501
  return enumRef[value];
361
502
  }
503
+ class FunctionAuthStrategyConnectedIntegrationAuthStrategy {
504
+ static fromProto(proto) {
505
+ let m = new FunctionAuthStrategyConnectedIntegrationAuthStrategy();
506
+ m = Object.assign(m, proto);
507
+ return m;
508
+ }
509
+ constructor(kwargs) {
510
+ if (!kwargs) {
511
+ return;
512
+ }
513
+ Object.assign(this, kwargs);
514
+ }
515
+ toApiJson() {
516
+ const toReturn = {};
517
+ if (typeof this.connectionId !== 'undefined') {
518
+ toReturn['connectionId'] = this.connectionId;
519
+ }
520
+ return toReturn;
521
+ }
522
+ }
523
+ class CreateMCPFromIntegrationRequest {
524
+ static fromProto(proto) {
525
+ let m = new CreateMCPFromIntegrationRequest();
526
+ m = Object.assign(m, proto);
527
+ if (proto.namespace) {
528
+ m.namespace = Namespace.fromProto(proto.namespace);
529
+ }
530
+ return m;
531
+ }
532
+ constructor(kwargs) {
533
+ if (!kwargs) {
534
+ return;
535
+ }
536
+ Object.assign(this, kwargs);
537
+ }
538
+ toApiJson() {
539
+ const toReturn = {};
540
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
541
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
542
+ }
543
+ if (typeof this.mcpId !== 'undefined') {
544
+ toReturn['mcpId'] = this.mcpId;
545
+ }
546
+ if (typeof this.connectionId !== 'undefined') {
547
+ toReturn['connectionId'] = this.connectionId;
548
+ }
549
+ return toReturn;
550
+ }
551
+ }
362
552
  class DeleteMCPRequest {
363
553
  static fromProto(proto) {
364
554
  let m = new DeleteMCPRequest();
@@ -430,6 +620,9 @@ class Function {
430
620
  if (proto.authStrategy) {
431
621
  m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
432
622
  }
623
+ if (proto.constraints) {
624
+ m.constraints = proto.constraints.map(Constraint.fromProto);
625
+ }
433
626
  return m;
434
627
  }
435
628
  constructor(kwargs) {
@@ -476,6 +669,9 @@ class Function {
476
669
  if (typeof this.mcpId !== 'undefined') {
477
670
  toReturn['mcpId'] = this.mcpId;
478
671
  }
672
+ if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
673
+ toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
674
+ }
479
675
  return toReturn;
480
676
  }
481
677
  }
@@ -489,6 +685,9 @@ class FunctionAuthStrategy {
489
685
  if (proto.platformManaged) {
490
686
  m.platformManaged = FunctionAuthStrategyPlatformManagedFunctionAuthStrategy.fromProto(proto.platformManaged);
491
687
  }
688
+ if (proto.connectedIntegration) {
689
+ m.connectedIntegration = FunctionAuthStrategyConnectedIntegrationAuthStrategy.fromProto(proto.connectedIntegration);
690
+ }
492
691
  return m;
493
692
  }
494
693
  constructor(kwargs) {
@@ -505,6 +704,9 @@ class FunctionAuthStrategy {
505
704
  if (typeof this.platformManaged !== 'undefined' && this.platformManaged !== null) {
506
705
  toReturn['platformManaged'] = 'toApiJson' in this.platformManaged ? this.platformManaged.toApiJson() : this.platformManaged;
507
706
  }
707
+ if (typeof this.connectedIntegration !== 'undefined' && this.connectedIntegration !== null) {
708
+ toReturn['connectedIntegration'] = 'toApiJson' in this.connectedIntegration ? this.connectedIntegration.toApiJson() : this.connectedIntegration;
709
+ }
508
710
  return toReturn;
509
711
  }
510
712
  }
@@ -1077,6 +1279,9 @@ class Goal {
1077
1279
  if (proto.overrideOf) {
1078
1280
  m.overrideOf = GoalKey.fromProto(proto.overrideOf);
1079
1281
  }
1282
+ if (proto.constraints) {
1283
+ m.constraints = proto.constraints.map(Constraint.fromProto);
1284
+ }
1080
1285
  return m;
1081
1286
  }
1082
1287
  constructor(kwargs) {
@@ -1123,6 +1328,9 @@ class Goal {
1123
1328
  if (typeof this.overrideOf !== 'undefined' && this.overrideOf !== null) {
1124
1329
  toReturn['overrideOf'] = 'toApiJson' in this.overrideOf ? this.overrideOf.toApiJson() : this.overrideOf;
1125
1330
  }
1331
+ if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
1332
+ toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
1333
+ }
1126
1334
  return toReturn;
1127
1335
  }
1128
1336
  }
@@ -3007,15 +3215,12 @@ class ExecuteFunctionResponse {
3007
3215
  return toReturn;
3008
3216
  }
3009
3217
  }
3010
- class ListFunctionRequestFilters {
3218
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3011
3219
  static fromProto(proto) {
3012
- let m = new ListFunctionRequestFilters();
3220
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3013
3221
  m = Object.assign(m, proto);
3014
- if (proto.namespace) {
3015
- m.namespace = Namespace.fromProto(proto.namespace);
3016
- }
3017
- if (proto.namespaces) {
3018
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3222
+ if (proto.type) {
3223
+ m.type = enumStringToValue(AssistantType, proto.type);
3019
3224
  }
3020
3225
  return m;
3021
3226
  }
@@ -3027,25 +3232,22 @@ class ListFunctionRequestFilters {
3027
3232
  }
3028
3233
  toApiJson() {
3029
3234
  const toReturn = {};
3030
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3031
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3032
- }
3033
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3034
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3035
- }
3036
- if (typeof this.mcpId !== 'undefined') {
3037
- toReturn['mcpId'] = this.mcpId;
3235
+ if (typeof this.type !== 'undefined') {
3236
+ toReturn['type'] = this.type;
3038
3237
  }
3039
3238
  return toReturn;
3040
3239
  }
3041
3240
  }
3042
- class ListPromptModuleRequestFilters {
3241
+ class ListConnectionsRequestFilters {
3043
3242
  static fromProto(proto) {
3044
- let m = new ListPromptModuleRequestFilters();
3243
+ let m = new ListConnectionsRequestFilters();
3045
3244
  m = Object.assign(m, proto);
3046
3245
  if (proto.namespace) {
3047
3246
  m.namespace = Namespace.fromProto(proto.namespace);
3048
3247
  }
3248
+ if (proto.assistantType) {
3249
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3250
+ }
3049
3251
  return m;
3050
3252
  }
3051
3253
  constructor(kwargs) {
@@ -3059,19 +3261,19 @@ class ListPromptModuleRequestFilters {
3059
3261
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3060
3262
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3061
3263
  }
3264
+ if (typeof this.assistantType !== 'undefined') {
3265
+ toReturn['assistantType'] = this.assistantType;
3266
+ }
3062
3267
  return toReturn;
3063
3268
  }
3064
3269
  }
3065
- class ListAssistantRequestFilters {
3270
+ class ListPromptModuleRequestFilters {
3066
3271
  static fromProto(proto) {
3067
- let m = new ListAssistantRequestFilters();
3272
+ let m = new ListPromptModuleRequestFilters();
3068
3273
  m = Object.assign(m, proto);
3069
3274
  if (proto.namespace) {
3070
3275
  m.namespace = Namespace.fromProto(proto.namespace);
3071
3276
  }
3072
- if (proto.type) {
3073
- m.type = enumStringToValue(AssistantType, proto.type);
3074
- }
3075
3277
  return m;
3076
3278
  }
3077
3279
  constructor(kwargs) {
@@ -3085,21 +3287,27 @@ class ListAssistantRequestFilters {
3085
3287
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3086
3288
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3087
3289
  }
3088
- if (typeof this.type !== 'undefined') {
3089
- toReturn['type'] = this.type;
3090
- }
3091
3290
  return toReturn;
3092
3291
  }
3093
3292
  }
3094
- class ListConnectionsRequestFilters {
3293
+ class ListGoalsRequestFilters {
3095
3294
  static fromProto(proto) {
3096
- let m = new ListConnectionsRequestFilters();
3295
+ let m = new ListGoalsRequestFilters();
3097
3296
  m = Object.assign(m, proto);
3098
3297
  if (proto.namespace) {
3099
3298
  m.namespace = Namespace.fromProto(proto.namespace);
3100
3299
  }
3101
- if (proto.assistantType) {
3102
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3300
+ if (proto.type) {
3301
+ m.type = enumStringToValue(GoalType, proto.type);
3302
+ }
3303
+ if (proto.supportedChannels) {
3304
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3305
+ }
3306
+ if (proto.namespaces) {
3307
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3308
+ }
3309
+ if (proto.constraintFilters) {
3310
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3103
3311
  }
3104
3312
  return m;
3105
3313
  }
@@ -3114,8 +3322,17 @@ class ListConnectionsRequestFilters {
3114
3322
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3115
3323
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3116
3324
  }
3117
- if (typeof this.assistantType !== 'undefined') {
3118
- toReturn['assistantType'] = this.assistantType;
3325
+ if (typeof this.type !== 'undefined') {
3326
+ toReturn['type'] = this.type;
3327
+ }
3328
+ if (typeof this.supportedChannels !== 'undefined') {
3329
+ toReturn['supportedChannels'] = this.supportedChannels;
3330
+ }
3331
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3332
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3333
+ }
3334
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3335
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3119
3336
  }
3120
3337
  return toReturn;
3121
3338
  }
@@ -3149,22 +3366,19 @@ class ListAvailableModelsRequestFilters {
3149
3366
  return toReturn;
3150
3367
  }
3151
3368
  }
3152
- class ListGoalsRequestFilters {
3369
+ class ListFunctionRequestFilters {
3153
3370
  static fromProto(proto) {
3154
- let m = new ListGoalsRequestFilters();
3371
+ let m = new ListFunctionRequestFilters();
3155
3372
  m = Object.assign(m, proto);
3156
3373
  if (proto.namespace) {
3157
3374
  m.namespace = Namespace.fromProto(proto.namespace);
3158
3375
  }
3159
- if (proto.type) {
3160
- m.type = enumStringToValue(GoalType, proto.type);
3161
- }
3162
- if (proto.supportedChannels) {
3163
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
3164
- }
3165
3376
  if (proto.namespaces) {
3166
3377
  m.namespaces = proto.namespaces.map(Namespace.fromProto);
3167
3378
  }
3379
+ if (proto.constraintFilters) {
3380
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3381
+ }
3168
3382
  return m;
3169
3383
  }
3170
3384
  constructor(kwargs) {
@@ -3178,22 +3392,25 @@ class ListGoalsRequestFilters {
3178
3392
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3179
3393
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3180
3394
  }
3181
- if (typeof this.type !== 'undefined') {
3182
- toReturn['type'] = this.type;
3183
- }
3184
- if (typeof this.supportedChannels !== 'undefined') {
3185
- toReturn['supportedChannels'] = this.supportedChannels;
3186
- }
3187
3395
  if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3188
3396
  toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3189
3397
  }
3398
+ if (typeof this.mcpId !== 'undefined') {
3399
+ toReturn['mcpId'] = this.mcpId;
3400
+ }
3401
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3402
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3403
+ }
3190
3404
  return toReturn;
3191
3405
  }
3192
3406
  }
3193
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3407
+ class ListAssistantRequestFilters {
3194
3408
  static fromProto(proto) {
3195
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3409
+ let m = new ListAssistantRequestFilters();
3196
3410
  m = Object.assign(m, proto);
3411
+ if (proto.namespace) {
3412
+ m.namespace = Namespace.fromProto(proto.namespace);
3413
+ }
3197
3414
  if (proto.type) {
3198
3415
  m.type = enumStringToValue(AssistantType, proto.type);
3199
3416
  }
@@ -3207,6 +3424,9 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3207
3424
  }
3208
3425
  toApiJson() {
3209
3426
  const toReturn = {};
3427
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3428
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3429
+ }
3210
3430
  if (typeof this.type !== 'undefined') {
3211
3431
  toReturn['type'] = this.type;
3212
3432
  }
@@ -4777,6 +4997,26 @@ class CreatePromptModuleVersionRequestOptions {
4777
4997
  return toReturn;
4778
4998
  }
4779
4999
  }
5000
+ class GetAssistantRequestOptions {
5001
+ static fromProto(proto) {
5002
+ let m = new GetAssistantRequestOptions();
5003
+ m = Object.assign(m, proto);
5004
+ return m;
5005
+ }
5006
+ constructor(kwargs) {
5007
+ if (!kwargs) {
5008
+ return;
5009
+ }
5010
+ Object.assign(this, kwargs);
5011
+ }
5012
+ toApiJson() {
5013
+ const toReturn = {};
5014
+ if (typeof this.skipGoalsHydration !== 'undefined') {
5015
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5016
+ }
5017
+ return toReturn;
5018
+ }
5019
+ }
4780
5020
  class GenerateChatAnswerRequestOptions {
4781
5021
  static fromProto(proto) {
4782
5022
  let m = new GenerateChatAnswerRequestOptions();
@@ -4866,26 +5106,6 @@ class GetMultiAssistantRequestOptions {
4866
5106
  return toReturn;
4867
5107
  }
4868
5108
  }
4869
- class GetAssistantRequestOptions {
4870
- static fromProto(proto) {
4871
- let m = new GetAssistantRequestOptions();
4872
- m = Object.assign(m, proto);
4873
- return m;
4874
- }
4875
- constructor(kwargs) {
4876
- if (!kwargs) {
4877
- return;
4878
- }
4879
- Object.assign(this, kwargs);
4880
- }
4881
- toApiJson() {
4882
- const toReturn = {};
4883
- if (typeof this.skipGoalsHydration !== 'undefined') {
4884
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
4885
- }
4886
- return toReturn;
4887
- }
4888
- }
4889
5109
  class SetAssistantConnectionsRequest {
4890
5110
  static fromProto(proto) {
4891
5111
  let m = new SetAssistantConnectionsRequest();
@@ -5399,6 +5619,10 @@ class FunctionApiService {
5399
5619
  const request = (r.toApiJson) ? r : new DeleteMCPRequest(r);
5400
5620
  return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/DeleteMCP", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5401
5621
  }
5622
+ createMcpFromIntegration(r) {
5623
+ const request = (r.toApiJson) ? r : new CreateMCPFromIntegrationRequest(r);
5624
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/CreateMCPFromIntegration", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5625
+ }
5402
5626
  }
5403
5627
  FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5404
5628
  FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
@@ -5706,5 +5930,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5706
5930
  * Generated bundle index. Do not edit.
5707
5931
  */
5708
5932
 
5709
- export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, 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, 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, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
5933
+ 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, 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, 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, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
5710
5934
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map