@vendasta/ai-assistants 0.58.0 → 0.60.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.
@@ -229,6 +229,15 @@ var ListGoalsRequestSortingOrder;
229
229
  ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_ASCENDING"] = 0] = "GOAL_SORTING_ORDER_ASCENDING";
230
230
  ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_DESCENDING"] = 1] = "GOAL_SORTING_ORDER_DESCENDING";
231
231
  })(ListGoalsRequestSortingOrder || (ListGoalsRequestSortingOrder = {}));
232
+ var ValidationFailureAction;
233
+ (function (ValidationFailureAction) {
234
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_UNSPECIFIED"] = 0] = "VALIDATION_FAILURE_ACTION_UNSPECIFIED";
235
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_NONE"] = 1] = "VALIDATION_FAILURE_ACTION_NONE";
236
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_WARN"] = 2] = "VALIDATION_FAILURE_ACTION_WARN";
237
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_MODIFY"] = 3] = "VALIDATION_FAILURE_ACTION_MODIFY";
238
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_BLOCK"] = 4] = "VALIDATION_FAILURE_ACTION_BLOCK";
239
+ ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_EXCEPTION"] = 5] = "VALIDATION_FAILURE_ACTION_EXCEPTION";
240
+ })(ValidationFailureAction || (ValidationFailureAction = {}));
232
241
 
233
242
  // *********************************
234
243
  // Code generated by sdkgen
@@ -1107,47 +1116,6 @@ function enumStringToValue$a(enumRef, value) {
1107
1116
  }
1108
1117
  return enumRef[value];
1109
1118
  }
1110
- class Prompt {
1111
- static fromProto(proto) {
1112
- let m = new Prompt();
1113
- m = Object.assign(m, proto);
1114
- if (proto.updated) {
1115
- m.updated = new Date(proto.updated);
1116
- }
1117
- if (proto.deployed) {
1118
- m.deployed = new Date(proto.deployed);
1119
- }
1120
- return m;
1121
- }
1122
- constructor(kwargs) {
1123
- if (!kwargs) {
1124
- return;
1125
- }
1126
- Object.assign(this, kwargs);
1127
- }
1128
- toApiJson() {
1129
- const toReturn = {};
1130
- if (typeof this.id !== 'undefined') {
1131
- toReturn['id'] = this.id;
1132
- }
1133
- if (typeof this.deployedVersion !== 'undefined') {
1134
- toReturn['deployedVersion'] = this.deployedVersion;
1135
- }
1136
- if (typeof this.deployedBy !== 'undefined') {
1137
- toReturn['deployedBy'] = this.deployedBy;
1138
- }
1139
- if (typeof this.updated !== 'undefined' && this.updated !== null) {
1140
- toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
1141
- }
1142
- if (typeof this.description !== 'undefined') {
1143
- toReturn['description'] = this.description;
1144
- }
1145
- if (typeof this.deployed !== 'undefined' && this.deployed !== null) {
1146
- toReturn['deployed'] = 'toApiJson' in this.deployed ? this.deployed.toApiJson() : this.deployed;
1147
- }
1148
- return toReturn;
1149
- }
1150
- }
1151
1119
  class PromptModule {
1152
1120
  static fromProto(proto) {
1153
1121
  let m = new PromptModule();
@@ -1268,41 +1236,6 @@ class PromptModuleVersion {
1268
1236
  return toReturn;
1269
1237
  }
1270
1238
  }
1271
- class PromptVersion {
1272
- static fromProto(proto) {
1273
- let m = new PromptVersion();
1274
- m = Object.assign(m, proto);
1275
- if (proto.created) {
1276
- m.created = new Date(proto.created);
1277
- }
1278
- return m;
1279
- }
1280
- constructor(kwargs) {
1281
- if (!kwargs) {
1282
- return;
1283
- }
1284
- Object.assign(this, kwargs);
1285
- }
1286
- toApiJson() {
1287
- const toReturn = {};
1288
- if (typeof this.id !== 'undefined') {
1289
- toReturn['id'] = this.id;
1290
- }
1291
- if (typeof this.version !== 'undefined') {
1292
- toReturn['version'] = this.version;
1293
- }
1294
- if (typeof this.content !== 'undefined') {
1295
- toReturn['content'] = this.content;
1296
- }
1297
- if (typeof this.createdBy !== 'undefined') {
1298
- toReturn['createdBy'] = this.createdBy;
1299
- }
1300
- if (typeof this.created !== 'undefined' && this.created !== null) {
1301
- toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
1302
- }
1303
- return toReturn;
1304
- }
1305
- }
1306
1239
 
1307
1240
  function enumStringToValue$9(enumRef, value) {
1308
1241
  if (typeof value === 'number') {
@@ -3014,32 +2947,6 @@ class CreatePromptModuleVersionRequest {
3014
2947
  return toReturn;
3015
2948
  }
3016
2949
  }
3017
- class CreatePromptRequest {
3018
- static fromProto(proto) {
3019
- let m = new CreatePromptRequest();
3020
- m = Object.assign(m, proto);
3021
- return m;
3022
- }
3023
- constructor(kwargs) {
3024
- if (!kwargs) {
3025
- return;
3026
- }
3027
- Object.assign(this, kwargs);
3028
- }
3029
- toApiJson() {
3030
- const toReturn = {};
3031
- if (typeof this.id !== 'undefined') {
3032
- toReturn['id'] = this.id;
3033
- }
3034
- if (typeof this.content !== 'undefined') {
3035
- toReturn['content'] = this.content;
3036
- }
3037
- if (typeof this.description !== 'undefined') {
3038
- toReturn['description'] = this.description;
3039
- }
3040
- return toReturn;
3041
- }
3042
- }
3043
2950
  class DeleteAssistantRequest {
3044
2951
  static fromProto(proto) {
3045
2952
  let m = new DeleteAssistantRequest();
@@ -3179,26 +3086,6 @@ class DeletePromptModuleRequest {
3179
3086
  return toReturn;
3180
3087
  }
3181
3088
  }
3182
- class DeletePromptRequest {
3183
- static fromProto(proto) {
3184
- let m = new DeletePromptRequest();
3185
- m = Object.assign(m, proto);
3186
- return m;
3187
- }
3188
- constructor(kwargs) {
3189
- if (!kwargs) {
3190
- return;
3191
- }
3192
- Object.assign(this, kwargs);
3193
- }
3194
- toApiJson() {
3195
- const toReturn = {};
3196
- if (typeof this.id !== 'undefined') {
3197
- toReturn['id'] = this.id;
3198
- }
3199
- return toReturn;
3200
- }
3201
- }
3202
3089
  class DeployPromptModuleRequest {
3203
3090
  static fromProto(proto) {
3204
3091
  let m = new DeployPromptModuleRequest();
@@ -3228,29 +3115,6 @@ class DeployPromptModuleRequest {
3228
3115
  return toReturn;
3229
3116
  }
3230
3117
  }
3231
- class DeployPromptRequest {
3232
- static fromProto(proto) {
3233
- let m = new DeployPromptRequest();
3234
- m = Object.assign(m, proto);
3235
- return m;
3236
- }
3237
- constructor(kwargs) {
3238
- if (!kwargs) {
3239
- return;
3240
- }
3241
- Object.assign(this, kwargs);
3242
- }
3243
- toApiJson() {
3244
- const toReturn = {};
3245
- if (typeof this.id !== 'undefined') {
3246
- toReturn['id'] = this.id;
3247
- }
3248
- if (typeof this.version !== 'undefined') {
3249
- toReturn['version'] = this.version;
3250
- }
3251
- return toReturn;
3252
- }
3253
- }
3254
3118
  class ExecuteFunctionRequest {
3255
3119
  static fromProto(proto) {
3256
3120
  let m = new ExecuteFunctionRequest();
@@ -3315,73 +3179,18 @@ class ExecuteFunctionResponse {
3315
3179
  return toReturn;
3316
3180
  }
3317
3181
  }
3318
- class ListAssistantRequestFilters {
3182
+ class ListFunctionRequestFilters {
3319
3183
  static fromProto(proto) {
3320
- let m = new ListAssistantRequestFilters();
3184
+ let m = new ListFunctionRequestFilters();
3321
3185
  m = Object.assign(m, proto);
3322
3186
  if (proto.namespace) {
3323
3187
  m.namespace = Namespace.fromProto(proto.namespace);
3324
3188
  }
3325
- if (proto.type) {
3326
- m.type = enumStringToValue(AssistantType, proto.type);
3327
- }
3328
- return m;
3329
- }
3330
- constructor(kwargs) {
3331
- if (!kwargs) {
3332
- return;
3333
- }
3334
- Object.assign(this, kwargs);
3335
- }
3336
- toApiJson() {
3337
- const toReturn = {};
3338
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3339
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3340
- }
3341
- if (typeof this.type !== 'undefined') {
3342
- toReturn['type'] = this.type;
3343
- }
3344
- return toReturn;
3345
- }
3346
- }
3347
- class ListAvailableModelsRequestFilters {
3348
- static fromProto(proto) {
3349
- let m = new ListAvailableModelsRequestFilters();
3350
- m = Object.assign(m, proto);
3351
- if (proto.vendor) {
3352
- m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3353
- }
3354
- if (proto.type) {
3355
- m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3356
- }
3357
- return m;
3358
- }
3359
- constructor(kwargs) {
3360
- if (!kwargs) {
3361
- return;
3362
- }
3363
- Object.assign(this, kwargs);
3364
- }
3365
- toApiJson() {
3366
- const toReturn = {};
3367
- if (typeof this.vendor !== 'undefined') {
3368
- toReturn['vendor'] = this.vendor;
3369
- }
3370
- if (typeof this.type !== 'undefined') {
3371
- toReturn['type'] = this.type;
3372
- }
3373
- return toReturn;
3374
- }
3375
- }
3376
- class ListConnectionsRequestFilters {
3377
- static fromProto(proto) {
3378
- let m = new ListConnectionsRequestFilters();
3379
- m = Object.assign(m, proto);
3380
- if (proto.namespace) {
3381
- m.namespace = Namespace.fromProto(proto.namespace);
3189
+ if (proto.namespaces) {
3190
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
3382
3191
  }
3383
- if (proto.assistantType) {
3384
- m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3192
+ if (proto.constraintFilters) {
3193
+ m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3385
3194
  }
3386
3195
  return m;
3387
3196
  }
@@ -3396,31 +3205,14 @@ class ListConnectionsRequestFilters {
3396
3205
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3397
3206
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3398
3207
  }
3399
- if (typeof this.assistantType !== 'undefined') {
3400
- toReturn['assistantType'] = this.assistantType;
3401
- }
3402
- return toReturn;
3403
- }
3404
- }
3405
- class ListPromptModuleRequestFilters {
3406
- static fromProto(proto) {
3407
- let m = new ListPromptModuleRequestFilters();
3408
- m = Object.assign(m, proto);
3409
- if (proto.namespace) {
3410
- m.namespace = Namespace.fromProto(proto.namespace);
3208
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3209
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3411
3210
  }
3412
- return m;
3413
- }
3414
- constructor(kwargs) {
3415
- if (!kwargs) {
3416
- return;
3211
+ if (typeof this.mcpId !== 'undefined') {
3212
+ toReturn['mcpId'] = this.mcpId;
3417
3213
  }
3418
- Object.assign(this, kwargs);
3419
- }
3420
- toApiJson() {
3421
- const toReturn = {};
3422
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3423
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3214
+ if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3215
+ toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3424
3216
  }
3425
3217
  return toReturn;
3426
3218
  }
@@ -3484,10 +3276,13 @@ class ListGoalsRequestFilters {
3484
3276
  return toReturn;
3485
3277
  }
3486
3278
  }
3487
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
3279
+ class ListAssistantRequestFilters {
3488
3280
  static fromProto(proto) {
3489
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3281
+ let m = new ListAssistantRequestFilters();
3490
3282
  m = Object.assign(m, proto);
3283
+ if (proto.namespace) {
3284
+ m.namespace = Namespace.fromProto(proto.namespace);
3285
+ }
3491
3286
  if (proto.type) {
3492
3287
  m.type = enumStringToValue(AssistantType, proto.type);
3493
3288
  }
@@ -3501,24 +3296,21 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3501
3296
  }
3502
3297
  toApiJson() {
3503
3298
  const toReturn = {};
3299
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3300
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3301
+ }
3504
3302
  if (typeof this.type !== 'undefined') {
3505
3303
  toReturn['type'] = this.type;
3506
3304
  }
3507
3305
  return toReturn;
3508
3306
  }
3509
3307
  }
3510
- class ListFunctionRequestFilters {
3308
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
3511
3309
  static fromProto(proto) {
3512
- let m = new ListFunctionRequestFilters();
3310
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
3513
3311
  m = Object.assign(m, proto);
3514
- if (proto.namespace) {
3515
- m.namespace = Namespace.fromProto(proto.namespace);
3516
- }
3517
- if (proto.namespaces) {
3518
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
3519
- }
3520
- if (proto.constraintFilters) {
3521
- m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
3312
+ if (proto.type) {
3313
+ m.type = enumStringToValue(AssistantType, proto.type);
3522
3314
  }
3523
3315
  return m;
3524
3316
  }
@@ -3530,17 +3322,89 @@ class ListFunctionRequestFilters {
3530
3322
  }
3531
3323
  toApiJson() {
3532
3324
  const toReturn = {};
3533
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3325
+ if (typeof this.type !== 'undefined') {
3326
+ toReturn['type'] = this.type;
3327
+ }
3328
+ return toReturn;
3329
+ }
3330
+ }
3331
+ class ListPromptModuleRequestFilters {
3332
+ static fromProto(proto) {
3333
+ let m = new ListPromptModuleRequestFilters();
3334
+ m = Object.assign(m, proto);
3335
+ if (proto.namespace) {
3336
+ m.namespace = Namespace.fromProto(proto.namespace);
3337
+ }
3338
+ return m;
3339
+ }
3340
+ constructor(kwargs) {
3341
+ if (!kwargs) {
3342
+ return;
3343
+ }
3344
+ Object.assign(this, kwargs);
3345
+ }
3346
+ toApiJson() {
3347
+ const toReturn = {};
3348
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3534
3349
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3535
3350
  }
3536
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
3537
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
3351
+ return toReturn;
3352
+ }
3353
+ }
3354
+ class ListConnectionsRequestFilters {
3355
+ static fromProto(proto) {
3356
+ let m = new ListConnectionsRequestFilters();
3357
+ m = Object.assign(m, proto);
3358
+ if (proto.namespace) {
3359
+ m.namespace = Namespace.fromProto(proto.namespace);
3538
3360
  }
3539
- if (typeof this.mcpId !== 'undefined') {
3540
- toReturn['mcpId'] = this.mcpId;
3361
+ if (proto.assistantType) {
3362
+ m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
3541
3363
  }
3542
- if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
3543
- toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
3364
+ return m;
3365
+ }
3366
+ constructor(kwargs) {
3367
+ if (!kwargs) {
3368
+ return;
3369
+ }
3370
+ Object.assign(this, kwargs);
3371
+ }
3372
+ toApiJson() {
3373
+ const toReturn = {};
3374
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
3375
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
3376
+ }
3377
+ if (typeof this.assistantType !== 'undefined') {
3378
+ toReturn['assistantType'] = this.assistantType;
3379
+ }
3380
+ return toReturn;
3381
+ }
3382
+ }
3383
+ class ListAvailableModelsRequestFilters {
3384
+ static fromProto(proto) {
3385
+ let m = new ListAvailableModelsRequestFilters();
3386
+ m = Object.assign(m, proto);
3387
+ if (proto.vendor) {
3388
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
3389
+ }
3390
+ if (proto.type) {
3391
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
3392
+ }
3393
+ return m;
3394
+ }
3395
+ constructor(kwargs) {
3396
+ if (!kwargs) {
3397
+ return;
3398
+ }
3399
+ Object.assign(this, kwargs);
3400
+ }
3401
+ toApiJson() {
3402
+ const toReturn = {};
3403
+ if (typeof this.vendor !== 'undefined') {
3404
+ toReturn['vendor'] = this.vendor;
3405
+ }
3406
+ if (typeof this.type !== 'undefined') {
3407
+ toReturn['type'] = this.type;
3544
3408
  }
3545
3409
  return toReturn;
3546
3410
  }
@@ -3611,6 +3475,9 @@ class GenerateChatAnswerResponse {
3611
3475
  if (proto.metadata) {
3612
3476
  m.metadata = proto.metadata.map(KeyValuePair.fromProto);
3613
3477
  }
3478
+ if (proto.validationResult) {
3479
+ m.validationResult = ValidationResult.fromProto(proto.validationResult);
3480
+ }
3614
3481
  return m;
3615
3482
  }
3616
3483
  constructor(kwargs) {
@@ -3630,6 +3497,9 @@ class GenerateChatAnswerResponse {
3630
3497
  if (typeof this.pendingJobId !== 'undefined') {
3631
3498
  toReturn['pendingJobId'] = this.pendingJobId;
3632
3499
  }
3500
+ if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
3501
+ toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
3502
+ }
3633
3503
  return toReturn;
3634
3504
  }
3635
3505
  }
@@ -3841,55 +3711,6 @@ class GetDeployedPromptModuleVersionResponse {
3841
3711
  return toReturn;
3842
3712
  }
3843
3713
  }
3844
- class GetDeployedPromptVersionRequest {
3845
- static fromProto(proto) {
3846
- let m = new GetDeployedPromptVersionRequest();
3847
- m = Object.assign(m, proto);
3848
- return m;
3849
- }
3850
- constructor(kwargs) {
3851
- if (!kwargs) {
3852
- return;
3853
- }
3854
- Object.assign(this, kwargs);
3855
- }
3856
- toApiJson() {
3857
- const toReturn = {};
3858
- if (typeof this.id !== 'undefined') {
3859
- toReturn['id'] = this.id;
3860
- }
3861
- return toReturn;
3862
- }
3863
- }
3864
- class GetDeployedPromptVersionResponse {
3865
- static fromProto(proto) {
3866
- let m = new GetDeployedPromptVersionResponse();
3867
- m = Object.assign(m, proto);
3868
- if (proto.prompt) {
3869
- m.prompt = Prompt.fromProto(proto.prompt);
3870
- }
3871
- if (proto.deployedPromptVersion) {
3872
- m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
3873
- }
3874
- return m;
3875
- }
3876
- constructor(kwargs) {
3877
- if (!kwargs) {
3878
- return;
3879
- }
3880
- Object.assign(this, kwargs);
3881
- }
3882
- toApiJson() {
3883
- const toReturn = {};
3884
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
3885
- toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
3886
- }
3887
- if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
3888
- toReturn['deployedPromptVersion'] = 'toApiJson' in this.deployedPromptVersion ? this.deployedPromptVersion.toApiJson() : this.deployedPromptVersion;
3889
- }
3890
- return toReturn;
3891
- }
3892
- }
3893
3714
  class GetFunctionRequest {
3894
3715
  static fromProto(proto) {
3895
3716
  let m = new GetFunctionRequest();
@@ -4092,55 +3913,6 @@ class GetMultiAssistantResponse {
4092
3913
  return toReturn;
4093
3914
  }
4094
3915
  }
4095
- class GetMultiDeployedPromptVersionRequest {
4096
- static fromProto(proto) {
4097
- let m = new GetMultiDeployedPromptVersionRequest();
4098
- m = Object.assign(m, proto);
4099
- return m;
4100
- }
4101
- constructor(kwargs) {
4102
- if (!kwargs) {
4103
- return;
4104
- }
4105
- Object.assign(this, kwargs);
4106
- }
4107
- toApiJson() {
4108
- const toReturn = {};
4109
- if (typeof this.ids !== 'undefined') {
4110
- toReturn['ids'] = this.ids;
4111
- }
4112
- return toReturn;
4113
- }
4114
- }
4115
- class GetMultiDeployedPromptVersionResponse {
4116
- static fromProto(proto) {
4117
- let m = new GetMultiDeployedPromptVersionResponse();
4118
- m = Object.assign(m, proto);
4119
- if (proto.prompts) {
4120
- m.prompts = proto.prompts.map(Prompt.fromProto);
4121
- }
4122
- if (proto.deployedPromptVersions) {
4123
- m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
4124
- }
4125
- return m;
4126
- }
4127
- constructor(kwargs) {
4128
- if (!kwargs) {
4129
- return;
4130
- }
4131
- Object.assign(this, kwargs);
4132
- }
4133
- toApiJson() {
4134
- const toReturn = {};
4135
- if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
4136
- toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
4137
- }
4138
- if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
4139
- toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
4140
- }
4141
- return toReturn;
4142
- }
4143
- }
4144
3916
  class GetMultiFunctionRequest {
4145
3917
  static fromProto(proto) {
4146
3918
  let m = new GetMultiFunctionRequest();
@@ -4383,95 +4155,6 @@ class GetPromptModuleVersionResponse {
4383
4155
  return toReturn;
4384
4156
  }
4385
4157
  }
4386
- class GetPromptRequest {
4387
- static fromProto(proto) {
4388
- let m = new GetPromptRequest();
4389
- m = Object.assign(m, proto);
4390
- return m;
4391
- }
4392
- constructor(kwargs) {
4393
- if (!kwargs) {
4394
- return;
4395
- }
4396
- Object.assign(this, kwargs);
4397
- }
4398
- toApiJson() {
4399
- const toReturn = {};
4400
- if (typeof this.id !== 'undefined') {
4401
- toReturn['id'] = this.id;
4402
- }
4403
- return toReturn;
4404
- }
4405
- }
4406
- class GetPromptResponse {
4407
- static fromProto(proto) {
4408
- let m = new GetPromptResponse();
4409
- m = Object.assign(m, proto);
4410
- if (proto.prompt) {
4411
- m.prompt = Prompt.fromProto(proto.prompt);
4412
- }
4413
- return m;
4414
- }
4415
- constructor(kwargs) {
4416
- if (!kwargs) {
4417
- return;
4418
- }
4419
- Object.assign(this, kwargs);
4420
- }
4421
- toApiJson() {
4422
- const toReturn = {};
4423
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
4424
- toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
4425
- }
4426
- return toReturn;
4427
- }
4428
- }
4429
- class GetPromptVersionRequest {
4430
- static fromProto(proto) {
4431
- let m = new GetPromptVersionRequest();
4432
- m = Object.assign(m, proto);
4433
- return m;
4434
- }
4435
- constructor(kwargs) {
4436
- if (!kwargs) {
4437
- return;
4438
- }
4439
- Object.assign(this, kwargs);
4440
- }
4441
- toApiJson() {
4442
- const toReturn = {};
4443
- if (typeof this.id !== 'undefined') {
4444
- toReturn['id'] = this.id;
4445
- }
4446
- if (typeof this.version !== 'undefined') {
4447
- toReturn['version'] = this.version;
4448
- }
4449
- return toReturn;
4450
- }
4451
- }
4452
- class GetPromptVersionResponse {
4453
- static fromProto(proto) {
4454
- let m = new GetPromptVersionResponse();
4455
- m = Object.assign(m, proto);
4456
- if (proto.promptVersion) {
4457
- m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
4458
- }
4459
- return m;
4460
- }
4461
- constructor(kwargs) {
4462
- if (!kwargs) {
4463
- return;
4464
- }
4465
- Object.assign(this, kwargs);
4466
- }
4467
- toApiJson() {
4468
- const toReturn = {};
4469
- if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
4470
- toReturn['promptVersion'] = 'toApiJson' in this.promptVersion ? this.promptVersion.toApiJson() : this.promptVersion;
4471
- }
4472
- return toReturn;
4473
- }
4474
- }
4475
4158
  class GoalsDisabledForAccountGroupRequest {
4476
4159
  static fromProto(proto) {
4477
4160
  let m = new GoalsDisabledForAccountGroupRequest();
@@ -4976,12 +4659,15 @@ class ListPromptModuleVersionsResponse {
4976
4659
  return toReturn;
4977
4660
  }
4978
4661
  }
4979
- class ListPromptRequest {
4662
+ class ListTemplateVariablesRequest {
4980
4663
  static fromProto(proto) {
4981
- let m = new ListPromptRequest();
4664
+ let m = new ListTemplateVariablesRequest();
4982
4665
  m = Object.assign(m, proto);
4983
- if (proto.pagingOptions) {
4984
- m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
4666
+ if (proto.assistantKey) {
4667
+ m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
4668
+ }
4669
+ if (proto.chatUserInfo) {
4670
+ m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
4985
4671
  }
4986
4672
  return m;
4987
4673
  }
@@ -4993,24 +4679,21 @@ class ListPromptRequest {
4993
4679
  }
4994
4680
  toApiJson() {
4995
4681
  const toReturn = {};
4996
- if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
4997
- toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
4682
+ if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
4683
+ toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
4684
+ }
4685
+ if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
4686
+ toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
4998
4687
  }
4999
4688
  return toReturn;
5000
4689
  }
5001
4690
  }
5002
- class ListPromptResponse {
4691
+ class ListTemplateVariablesResponse {
5003
4692
  static fromProto(proto) {
5004
- let m = new ListPromptResponse();
4693
+ let m = new ListTemplateVariablesResponse();
5005
4694
  m = Object.assign(m, proto);
5006
- if (proto.prompts) {
5007
- m.prompts = proto.prompts.map(Prompt.fromProto);
5008
- }
5009
- if (proto.deployedPromptVersions) {
5010
- m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
5011
- }
5012
- if (proto.metadata) {
5013
- m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
4695
+ if (proto.assistantScopedVariables) {
4696
+ m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
5014
4697
  }
5015
4698
  return m;
5016
4699
  }
@@ -5022,25 +4705,16 @@ class ListPromptResponse {
5022
4705
  }
5023
4706
  toApiJson() {
5024
4707
  const toReturn = {};
5025
- if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
5026
- toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
5027
- }
5028
- if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
5029
- toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
5030
- }
5031
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
5032
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
4708
+ if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
4709
+ toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
5033
4710
  }
5034
4711
  return toReturn;
5035
4712
  }
5036
4713
  }
5037
- class ListPromptVersionsRequest {
4714
+ class UpsertAssistantRequestOptions {
5038
4715
  static fromProto(proto) {
5039
- let m = new ListPromptVersionsRequest();
4716
+ let m = new UpsertAssistantRequestOptions();
5040
4717
  m = Object.assign(m, proto);
5041
- if (proto.pagingOptions) {
5042
- m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
5043
- }
5044
4718
  return m;
5045
4719
  }
5046
4720
  constructor(kwargs) {
@@ -5051,25 +4725,16 @@ class ListPromptVersionsRequest {
5051
4725
  }
5052
4726
  toApiJson() {
5053
4727
  const toReturn = {};
5054
- if (typeof this.id !== 'undefined') {
5055
- toReturn['id'] = this.id;
5056
- }
5057
- if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
5058
- toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
4728
+ if (typeof this.applyDefaults !== 'undefined') {
4729
+ toReturn['applyDefaults'] = this.applyDefaults;
5059
4730
  }
5060
4731
  return toReturn;
5061
4732
  }
5062
4733
  }
5063
- class ListPromptVersionsResponse {
4734
+ class GetMultiAssistantRequestOptions {
5064
4735
  static fromProto(proto) {
5065
- let m = new ListPromptVersionsResponse();
4736
+ let m = new GetMultiAssistantRequestOptions();
5066
4737
  m = Object.assign(m, proto);
5067
- if (proto.promptVersions) {
5068
- m.promptVersions = proto.promptVersions.map(PromptVersion.fromProto);
5069
- }
5070
- if (proto.metadata) {
5071
- m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
5072
- }
5073
4738
  return m;
5074
4739
  }
5075
4740
  constructor(kwargs) {
@@ -5080,25 +4745,36 @@ class ListPromptVersionsResponse {
5080
4745
  }
5081
4746
  toApiJson() {
5082
4747
  const toReturn = {};
5083
- if (typeof this.promptVersions !== 'undefined' && this.promptVersions !== null) {
5084
- toReturn['promptVersions'] = 'toApiJson' in this.promptVersions ? this.promptVersions.toApiJson() : this.promptVersions;
5085
- }
5086
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
5087
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
4748
+ if (typeof this.skipGoalsHydration !== 'undefined') {
4749
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5088
4750
  }
5089
4751
  return toReturn;
5090
4752
  }
5091
4753
  }
5092
- class ListTemplateVariablesRequest {
4754
+ class CreatePromptModuleVersionRequestOptions {
5093
4755
  static fromProto(proto) {
5094
- let m = new ListTemplateVariablesRequest();
4756
+ let m = new CreatePromptModuleVersionRequestOptions();
5095
4757
  m = Object.assign(m, proto);
5096
- if (proto.assistantKey) {
5097
- m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
4758
+ return m;
4759
+ }
4760
+ constructor(kwargs) {
4761
+ if (!kwargs) {
4762
+ return;
5098
4763
  }
5099
- if (proto.chatUserInfo) {
5100
- m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
4764
+ Object.assign(this, kwargs);
4765
+ }
4766
+ toApiJson() {
4767
+ const toReturn = {};
4768
+ if (typeof this.shouldDeploy !== 'undefined') {
4769
+ toReturn['shouldDeploy'] = this.shouldDeploy;
5101
4770
  }
4771
+ return toReturn;
4772
+ }
4773
+ }
4774
+ class CreateAssistantRequestOptions {
4775
+ static fromProto(proto) {
4776
+ let m = new CreateAssistantRequestOptions();
4777
+ m = Object.assign(m, proto);
5102
4778
  return m;
5103
4779
  }
5104
4780
  constructor(kwargs) {
@@ -5109,22 +4785,16 @@ class ListTemplateVariablesRequest {
5109
4785
  }
5110
4786
  toApiJson() {
5111
4787
  const toReturn = {};
5112
- if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
5113
- toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
5114
- }
5115
- if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
5116
- toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
4788
+ if (typeof this.applyDefaults !== 'undefined') {
4789
+ toReturn['applyDefaults'] = this.applyDefaults;
5117
4790
  }
5118
4791
  return toReturn;
5119
4792
  }
5120
4793
  }
5121
- class ListTemplateVariablesResponse {
4794
+ class GetAssistantRequestOptions {
5122
4795
  static fromProto(proto) {
5123
- let m = new ListTemplateVariablesResponse();
4796
+ let m = new GetAssistantRequestOptions();
5124
4797
  m = Object.assign(m, proto);
5125
- if (proto.assistantScopedVariables) {
5126
- m.assistantScopedVariables = proto.assistantScopedVariables.map(TemplateVariable.fromProto);
5127
- }
5128
4798
  return m;
5129
4799
  }
5130
4800
  constructor(kwargs) {
@@ -5135,8 +4805,8 @@ class ListTemplateVariablesResponse {
5135
4805
  }
5136
4806
  toApiJson() {
5137
4807
  const toReturn = {};
5138
- if (typeof this.assistantScopedVariables !== 'undefined' && this.assistantScopedVariables !== null) {
5139
- toReturn['assistantScopedVariables'] = 'toApiJson' in this.assistantScopedVariables ? this.assistantScopedVariables.toApiJson() : this.assistantScopedVariables;
4808
+ if (typeof this.skipGoalsHydration !== 'undefined') {
4809
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
5140
4810
  }
5141
4811
  return toReturn;
5142
4812
  }
@@ -5196,10 +4866,16 @@ class ExecuteFunctionRequestOptions {
5196
4866
  return toReturn;
5197
4867
  }
5198
4868
  }
5199
- class CreateAssistantRequestOptions {
4869
+ class SetAssistantConnectionsRequest {
5200
4870
  static fromProto(proto) {
5201
- let m = new CreateAssistantRequestOptions();
4871
+ let m = new SetAssistantConnectionsRequest();
5202
4872
  m = Object.assign(m, proto);
4873
+ if (proto.associationStates) {
4874
+ m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
4875
+ }
4876
+ if (proto.assistantKey) {
4877
+ m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
4878
+ }
5203
4879
  return m;
5204
4880
  }
5205
4881
  constructor(kwargs) {
@@ -5210,16 +4886,22 @@ class CreateAssistantRequestOptions {
5210
4886
  }
5211
4887
  toApiJson() {
5212
4888
  const toReturn = {};
5213
- if (typeof this.applyDefaults !== 'undefined') {
5214
- toReturn['applyDefaults'] = this.applyDefaults;
4889
+ if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
4890
+ toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
4891
+ }
4892
+ if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
4893
+ toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
5215
4894
  }
5216
4895
  return toReturn;
5217
4896
  }
5218
4897
  }
5219
- class GetAssistantRequestOptions {
4898
+ class ListGoalsRequestSortOptions {
5220
4899
  static fromProto(proto) {
5221
- let m = new GetAssistantRequestOptions();
4900
+ let m = new ListGoalsRequestSortOptions();
5222
4901
  m = Object.assign(m, proto);
4902
+ if (proto.order) {
4903
+ m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
4904
+ }
5223
4905
  return m;
5224
4906
  }
5225
4907
  constructor(kwargs) {
@@ -5230,16 +4912,25 @@ class GetAssistantRequestOptions {
5230
4912
  }
5231
4913
  toApiJson() {
5232
4914
  const toReturn = {};
5233
- if (typeof this.skipGoalsHydration !== 'undefined') {
5234
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
4915
+ if (typeof this.field !== 'undefined') {
4916
+ toReturn['field'] = this.field;
4917
+ }
4918
+ if (typeof this.order !== 'undefined') {
4919
+ toReturn['order'] = this.order;
5235
4920
  }
5236
4921
  return toReturn;
5237
4922
  }
5238
4923
  }
5239
- class UpsertAssistantRequestOptions {
4924
+ class UpdateAssistantRequest {
5240
4925
  static fromProto(proto) {
5241
- let m = new UpsertAssistantRequestOptions();
4926
+ let m = new UpdateAssistantRequest();
5242
4927
  m = Object.assign(m, proto);
4928
+ if (proto.assistant) {
4929
+ m.assistant = Assistant.fromProto(proto.assistant);
4930
+ }
4931
+ if (proto.fieldMask) {
4932
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
4933
+ }
5243
4934
  return m;
5244
4935
  }
5245
4936
  constructor(kwargs) {
@@ -5250,16 +4941,22 @@ class UpsertAssistantRequestOptions {
5250
4941
  }
5251
4942
  toApiJson() {
5252
4943
  const toReturn = {};
5253
- if (typeof this.applyDefaults !== 'undefined') {
5254
- toReturn['applyDefaults'] = this.applyDefaults;
4944
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
4945
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
4946
+ }
4947
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
4948
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
5255
4949
  }
5256
4950
  return toReturn;
5257
4951
  }
5258
4952
  }
5259
- class CreatePromptModuleVersionRequestOptions {
4953
+ class UpdateGoalRequest {
5260
4954
  static fromProto(proto) {
5261
- let m = new CreatePromptModuleVersionRequestOptions();
4955
+ let m = new UpdateGoalRequest();
5262
4956
  m = Object.assign(m, proto);
4957
+ if (proto.goal) {
4958
+ m.goal = Goal.fromProto(proto.goal);
4959
+ }
5263
4960
  return m;
5264
4961
  }
5265
4962
  constructor(kwargs) {
@@ -5270,16 +4967,19 @@ class CreatePromptModuleVersionRequestOptions {
5270
4967
  }
5271
4968
  toApiJson() {
5272
4969
  const toReturn = {};
5273
- if (typeof this.shouldDeploy !== 'undefined') {
5274
- toReturn['shouldDeploy'] = this.shouldDeploy;
4970
+ if (typeof this.goal !== 'undefined' && this.goal !== null) {
4971
+ toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
5275
4972
  }
5276
4973
  return toReturn;
5277
4974
  }
5278
4975
  }
5279
- class GetMultiAssistantRequestOptions {
4976
+ class UpdatePromptModuleRequest {
5280
4977
  static fromProto(proto) {
5281
- let m = new GetMultiAssistantRequestOptions();
4978
+ let m = new UpdatePromptModuleRequest();
5282
4979
  m = Object.assign(m, proto);
4980
+ if (proto.namespace) {
4981
+ m.namespace = Namespace.fromProto(proto.namespace);
4982
+ }
5283
4983
  return m;
5284
4984
  }
5285
4985
  constructor(kwargs) {
@@ -5290,21 +4990,30 @@ class GetMultiAssistantRequestOptions {
5290
4990
  }
5291
4991
  toApiJson() {
5292
4992
  const toReturn = {};
5293
- if (typeof this.skipGoalsHydration !== 'undefined') {
5294
- toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
4993
+ if (typeof this.id !== 'undefined') {
4994
+ toReturn['id'] = this.id;
4995
+ }
4996
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
4997
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
4998
+ }
4999
+ if (typeof this.name !== 'undefined') {
5000
+ toReturn['name'] = this.name;
5001
+ }
5002
+ if (typeof this.description !== 'undefined') {
5003
+ toReturn['description'] = this.description;
5295
5004
  }
5296
5005
  return toReturn;
5297
5006
  }
5298
5007
  }
5299
- class SetAssistantConnectionsRequest {
5008
+ class UpsertAssistantRequest {
5300
5009
  static fromProto(proto) {
5301
- let m = new SetAssistantConnectionsRequest();
5010
+ let m = new UpsertAssistantRequest();
5302
5011
  m = Object.assign(m, proto);
5303
- if (proto.associationStates) {
5304
- m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
5012
+ if (proto.assistant) {
5013
+ m.assistant = Assistant.fromProto(proto.assistant);
5305
5014
  }
5306
- if (proto.assistantKey) {
5307
- m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
5015
+ if (proto.options) {
5016
+ m.options = UpsertAssistantRequestOptions.fromProto(proto.options);
5308
5017
  }
5309
5018
  return m;
5310
5019
  }
@@ -5316,21 +5025,21 @@ class SetAssistantConnectionsRequest {
5316
5025
  }
5317
5026
  toApiJson() {
5318
5027
  const toReturn = {};
5319
- if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
5320
- toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
5028
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
5029
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
5321
5030
  }
5322
- if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
5323
- toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
5031
+ if (typeof this.options !== 'undefined' && this.options !== null) {
5032
+ toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
5324
5033
  }
5325
5034
  return toReturn;
5326
5035
  }
5327
5036
  }
5328
- class ListGoalsRequestSortOptions {
5037
+ class UpsertAssistantResponse {
5329
5038
  static fromProto(proto) {
5330
- let m = new ListGoalsRequestSortOptions();
5039
+ let m = new UpsertAssistantResponse();
5331
5040
  m = Object.assign(m, proto);
5332
- if (proto.order) {
5333
- m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
5041
+ if (proto.assistant) {
5042
+ m.assistant = Assistant.fromProto(proto.assistant);
5334
5043
  }
5335
5044
  return m;
5336
5045
  }
@@ -5342,24 +5051,18 @@ class ListGoalsRequestSortOptions {
5342
5051
  }
5343
5052
  toApiJson() {
5344
5053
  const toReturn = {};
5345
- if (typeof this.field !== 'undefined') {
5346
- toReturn['field'] = this.field;
5347
- }
5348
- if (typeof this.order !== 'undefined') {
5349
- toReturn['order'] = this.order;
5054
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
5055
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
5350
5056
  }
5351
5057
  return toReturn;
5352
5058
  }
5353
5059
  }
5354
- class UpdateAssistantRequest {
5060
+ class UpsertConnectionRequest {
5355
5061
  static fromProto(proto) {
5356
- let m = new UpdateAssistantRequest();
5062
+ let m = new UpsertConnectionRequest();
5357
5063
  m = Object.assign(m, proto);
5358
- if (proto.assistant) {
5359
- m.assistant = Assistant.fromProto(proto.assistant);
5360
- }
5361
- if (proto.fieldMask) {
5362
- m.fieldMask = FieldMask.fromProto(proto.fieldMask);
5064
+ if (proto.connection) {
5065
+ m.connection = Connection.fromProto(proto.connection);
5363
5066
  }
5364
5067
  return m;
5365
5068
  }
@@ -5371,18 +5074,38 @@ class UpdateAssistantRequest {
5371
5074
  }
5372
5075
  toApiJson() {
5373
5076
  const toReturn = {};
5374
- if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
5375
- toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
5077
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
5078
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
5376
5079
  }
5377
- if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
5378
- toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
5080
+ return toReturn;
5081
+ }
5082
+ }
5083
+ class UpsertFunctionRequest {
5084
+ static fromProto(proto) {
5085
+ let m = new UpsertFunctionRequest();
5086
+ m = Object.assign(m, proto);
5087
+ if (proto.function) {
5088
+ m.function = Function.fromProto(proto.function);
5089
+ }
5090
+ return m;
5091
+ }
5092
+ constructor(kwargs) {
5093
+ if (!kwargs) {
5094
+ return;
5095
+ }
5096
+ Object.assign(this, kwargs);
5097
+ }
5098
+ toApiJson() {
5099
+ const toReturn = {};
5100
+ if (typeof this.function !== 'undefined' && this.function !== null) {
5101
+ toReturn['function'] = 'toApiJson' in this.function ? this.function.toApiJson() : this.function;
5379
5102
  }
5380
5103
  return toReturn;
5381
5104
  }
5382
5105
  }
5383
- class UpdateGoalRequest {
5106
+ class UpsertGoalRequest {
5384
5107
  static fromProto(proto) {
5385
- let m = new UpdateGoalRequest();
5108
+ let m = new UpsertGoalRequest();
5386
5109
  m = Object.assign(m, proto);
5387
5110
  if (proto.goal) {
5388
5111
  m.goal = Goal.fromProto(proto.goal);
@@ -5403,13 +5126,10 @@ class UpdateGoalRequest {
5403
5126
  return toReturn;
5404
5127
  }
5405
5128
  }
5406
- class UpdatePromptModuleRequest {
5129
+ class ValidatePromptModuleRequest {
5407
5130
  static fromProto(proto) {
5408
- let m = new UpdatePromptModuleRequest();
5131
+ let m = new ValidatePromptModuleRequest();
5409
5132
  m = Object.assign(m, proto);
5410
- if (proto.namespace) {
5411
- m.namespace = Namespace.fromProto(proto.namespace);
5412
- }
5413
5133
  return m;
5414
5134
  }
5415
5135
  constructor(kwargs) {
@@ -5420,25 +5140,42 @@ class UpdatePromptModuleRequest {
5420
5140
  }
5421
5141
  toApiJson() {
5422
5142
  const toReturn = {};
5423
- if (typeof this.id !== 'undefined') {
5424
- toReturn['id'] = this.id;
5143
+ if (typeof this.content !== 'undefined') {
5144
+ toReturn['content'] = this.content;
5425
5145
  }
5426
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5427
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5146
+ return toReturn;
5147
+ }
5148
+ }
5149
+ class ValidatePromptModuleResponse {
5150
+ static fromProto(proto) {
5151
+ let m = new ValidatePromptModuleResponse();
5152
+ m = Object.assign(m, proto);
5153
+ return m;
5154
+ }
5155
+ constructor(kwargs) {
5156
+ if (!kwargs) {
5157
+ return;
5428
5158
  }
5429
- if (typeof this.name !== 'undefined') {
5430
- toReturn['name'] = this.name;
5159
+ Object.assign(this, kwargs);
5160
+ }
5161
+ toApiJson() {
5162
+ const toReturn = {};
5163
+ if (typeof this.isValid !== 'undefined') {
5164
+ toReturn['isValid'] = this.isValid;
5431
5165
  }
5432
- if (typeof this.description !== 'undefined') {
5433
- toReturn['description'] = this.description;
5166
+ if (typeof this.errorMessage !== 'undefined') {
5167
+ toReturn['errorMessage'] = this.errorMessage;
5434
5168
  }
5435
5169
  return toReturn;
5436
5170
  }
5437
5171
  }
5438
- class UpdatePromptRequest {
5172
+ class ValidatePromptModuleVersionsRequest {
5439
5173
  static fromProto(proto) {
5440
- let m = new UpdatePromptRequest();
5174
+ let m = new ValidatePromptModuleVersionsRequest();
5441
5175
  m = Object.assign(m, proto);
5176
+ if (proto.versions) {
5177
+ m.versions = proto.versions.map(PromptModuleVersion.fromProto);
5178
+ }
5442
5179
  return m;
5443
5180
  }
5444
5181
  constructor(kwargs) {
@@ -5449,27 +5186,18 @@ class UpdatePromptRequest {
5449
5186
  }
5450
5187
  toApiJson() {
5451
5188
  const toReturn = {};
5452
- if (typeof this.id !== 'undefined') {
5453
- toReturn['id'] = this.id;
5454
- }
5455
- if (typeof this.content !== 'undefined') {
5456
- toReturn['content'] = this.content;
5457
- }
5458
- if (typeof this.description !== 'undefined') {
5459
- toReturn['description'] = this.description;
5189
+ if (typeof this.versions !== 'undefined' && this.versions !== null) {
5190
+ toReturn['versions'] = 'toApiJson' in this.versions ? this.versions.toApiJson() : this.versions;
5460
5191
  }
5461
5192
  return toReturn;
5462
5193
  }
5463
5194
  }
5464
- class UpsertAssistantRequest {
5195
+ class ValidatePromptModuleVersionsResponse {
5465
5196
  static fromProto(proto) {
5466
- let m = new UpsertAssistantRequest();
5197
+ let m = new ValidatePromptModuleVersionsResponse();
5467
5198
  m = Object.assign(m, proto);
5468
- if (proto.assistant) {
5469
- m.assistant = Assistant.fromProto(proto.assistant);
5470
- }
5471
- if (proto.options) {
5472
- m.options = UpsertAssistantRequestOptions.fromProto(proto.options);
5199
+ if (proto.results) {
5200
+ m.results = proto.results.map(ValidatePromptModuleVersionsResponseValidationResult.fromProto);
5473
5201
  }
5474
5202
  return m;
5475
5203
  }
@@ -5481,21 +5209,21 @@ class UpsertAssistantRequest {
5481
5209
  }
5482
5210
  toApiJson() {
5483
5211
  const toReturn = {};
5484
- if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
5485
- toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
5212
+ if (typeof this.results !== 'undefined' && this.results !== null) {
5213
+ toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
5486
5214
  }
5487
- if (typeof this.options !== 'undefined' && this.options !== null) {
5488
- toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
5215
+ if (typeof this.allValid !== 'undefined') {
5216
+ toReturn['allValid'] = this.allValid;
5489
5217
  }
5490
5218
  return toReturn;
5491
5219
  }
5492
5220
  }
5493
- class UpsertAssistantResponse {
5221
+ class ValidatePromptModulesRequest {
5494
5222
  static fromProto(proto) {
5495
- let m = new UpsertAssistantResponse();
5223
+ let m = new ValidatePromptModulesRequest();
5496
5224
  m = Object.assign(m, proto);
5497
- if (proto.assistant) {
5498
- m.assistant = Assistant.fromProto(proto.assistant);
5225
+ if (proto.promptModules) {
5226
+ m.promptModules = proto.promptModules.map(PromptModule.fromProto);
5499
5227
  }
5500
5228
  return m;
5501
5229
  }
@@ -5507,18 +5235,18 @@ class UpsertAssistantResponse {
5507
5235
  }
5508
5236
  toApiJson() {
5509
5237
  const toReturn = {};
5510
- if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
5511
- toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
5238
+ if (typeof this.promptModules !== 'undefined' && this.promptModules !== null) {
5239
+ toReturn['promptModules'] = 'toApiJson' in this.promptModules ? this.promptModules.toApiJson() : this.promptModules;
5512
5240
  }
5513
5241
  return toReturn;
5514
5242
  }
5515
5243
  }
5516
- class UpsertConnectionRequest {
5244
+ class ValidatePromptModulesResponse {
5517
5245
  static fromProto(proto) {
5518
- let m = new UpsertConnectionRequest();
5246
+ let m = new ValidatePromptModulesResponse();
5519
5247
  m = Object.assign(m, proto);
5520
- if (proto.connection) {
5521
- m.connection = Connection.fromProto(proto.connection);
5248
+ if (proto.results) {
5249
+ m.results = proto.results.map(ValidatePromptModulesResponseValidationResult.fromProto);
5522
5250
  }
5523
5251
  return m;
5524
5252
  }
@@ -5530,18 +5258,21 @@ class UpsertConnectionRequest {
5530
5258
  }
5531
5259
  toApiJson() {
5532
5260
  const toReturn = {};
5533
- if (typeof this.connection !== 'undefined' && this.connection !== null) {
5534
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
5261
+ if (typeof this.results !== 'undefined' && this.results !== null) {
5262
+ toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
5263
+ }
5264
+ if (typeof this.allValid !== 'undefined') {
5265
+ toReturn['allValid'] = this.allValid;
5535
5266
  }
5536
5267
  return toReturn;
5537
5268
  }
5538
5269
  }
5539
- class UpsertFunctionRequest {
5270
+ class ValidatePromptModulesResponseValidationResult {
5540
5271
  static fromProto(proto) {
5541
- let m = new UpsertFunctionRequest();
5272
+ let m = new ValidatePromptModulesResponseValidationResult();
5542
5273
  m = Object.assign(m, proto);
5543
- if (proto.function) {
5544
- m.function = Function.fromProto(proto.function);
5274
+ if (proto.namespace) {
5275
+ m.namespace = Namespace.fromProto(proto.namespace);
5545
5276
  }
5546
5277
  return m;
5547
5278
  }
@@ -5553,18 +5284,27 @@ class UpsertFunctionRequest {
5553
5284
  }
5554
5285
  toApiJson() {
5555
5286
  const toReturn = {};
5556
- if (typeof this.function !== 'undefined' && this.function !== null) {
5557
- toReturn['function'] = 'toApiJson' in this.function ? this.function.toApiJson() : this.function;
5287
+ if (typeof this.id !== 'undefined') {
5288
+ toReturn['id'] = this.id;
5289
+ }
5290
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5291
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5292
+ }
5293
+ if (typeof this.isValid !== 'undefined') {
5294
+ toReturn['isValid'] = this.isValid;
5295
+ }
5296
+ if (typeof this.errorMessage !== 'undefined') {
5297
+ toReturn['errorMessage'] = this.errorMessage;
5558
5298
  }
5559
5299
  return toReturn;
5560
5300
  }
5561
5301
  }
5562
- class UpsertGoalRequest {
5302
+ class ValidatePromptModuleVersionsResponseValidationResult {
5563
5303
  static fromProto(proto) {
5564
- let m = new UpsertGoalRequest();
5304
+ let m = new ValidatePromptModuleVersionsResponseValidationResult();
5565
5305
  m = Object.assign(m, proto);
5566
- if (proto.goal) {
5567
- m.goal = Goal.fromProto(proto.goal);
5306
+ if (proto.namespace) {
5307
+ m.namespace = Namespace.fromProto(proto.namespace);
5568
5308
  }
5569
5309
  return m;
5570
5310
  }
@@ -5576,16 +5316,31 @@ class UpsertGoalRequest {
5576
5316
  }
5577
5317
  toApiJson() {
5578
5318
  const toReturn = {};
5579
- if (typeof this.goal !== 'undefined' && this.goal !== null) {
5580
- toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
5319
+ if (typeof this.id !== 'undefined') {
5320
+ toReturn['id'] = this.id;
5321
+ }
5322
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
5323
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
5324
+ }
5325
+ if (typeof this.isValid !== 'undefined') {
5326
+ toReturn['isValid'] = this.isValid;
5327
+ }
5328
+ if (typeof this.errorMessage !== 'undefined') {
5329
+ toReturn['errorMessage'] = this.errorMessage;
5581
5330
  }
5582
5331
  return toReturn;
5583
5332
  }
5584
5333
  }
5585
- class ValidatePromptModuleRequest {
5334
+ class ValidationResult {
5586
5335
  static fromProto(proto) {
5587
- let m = new ValidatePromptModuleRequest();
5336
+ let m = new ValidationResult();
5588
5337
  m = Object.assign(m, proto);
5338
+ if (proto.failureAction) {
5339
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5340
+ }
5341
+ if (proto.violations) {
5342
+ m.violations = proto.violations.map(ValidationViolation.fromProto);
5343
+ }
5589
5344
  return m;
5590
5345
  }
5591
5346
  constructor(kwargs) {
@@ -5596,16 +5351,22 @@ class ValidatePromptModuleRequest {
5596
5351
  }
5597
5352
  toApiJson() {
5598
5353
  const toReturn = {};
5599
- if (typeof this.content !== 'undefined') {
5600
- toReturn['content'] = this.content;
5354
+ if (typeof this.failureAction !== 'undefined') {
5355
+ toReturn['failureAction'] = this.failureAction;
5356
+ }
5357
+ if (typeof this.violations !== 'undefined' && this.violations !== null) {
5358
+ toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
5601
5359
  }
5602
5360
  return toReturn;
5603
5361
  }
5604
5362
  }
5605
- class ValidatePromptModuleResponse {
5363
+ class ValidationViolation {
5606
5364
  static fromProto(proto) {
5607
- let m = new ValidatePromptModuleResponse();
5365
+ let m = new ValidationViolation();
5608
5366
  m = Object.assign(m, proto);
5367
+ if (proto.failureAction) {
5368
+ m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
5369
+ }
5609
5370
  return m;
5610
5371
  }
5611
5372
  constructor(kwargs) {
@@ -5616,11 +5377,20 @@ class ValidatePromptModuleResponse {
5616
5377
  }
5617
5378
  toApiJson() {
5618
5379
  const toReturn = {};
5619
- if (typeof this.isValid !== 'undefined') {
5620
- toReturn['isValid'] = this.isValid;
5380
+ if (typeof this.failureAction !== 'undefined') {
5381
+ toReturn['failureAction'] = this.failureAction;
5621
5382
  }
5622
- if (typeof this.errorMessage !== 'undefined') {
5623
- toReturn['errorMessage'] = this.errorMessage;
5383
+ if (typeof this.confidence !== 'undefined') {
5384
+ toReturn['confidence'] = this.confidence;
5385
+ }
5386
+ if (typeof this.message !== 'undefined') {
5387
+ toReturn['message'] = this.message;
5388
+ }
5389
+ if (typeof this.validatorName !== 'undefined') {
5390
+ toReturn['validatorName'] = this.validatorName;
5391
+ }
5392
+ if (typeof this.isInputValidation !== 'undefined') {
5393
+ toReturn['isInputValidation'] = this.isInputValidation;
5624
5394
  }
5625
5395
  return toReturn;
5626
5396
  }
@@ -6058,6 +5828,16 @@ class PromptModuleApiService {
6058
5828
  return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Validate", request.toApiJson(), this.apiOptions())
6059
5829
  .pipe(map(resp => ValidatePromptModuleResponse.fromProto(resp)));
6060
5830
  }
5831
+ validatePromptModules(r) {
5832
+ const request = (r.toApiJson) ? r : new ValidatePromptModulesRequest(r);
5833
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/ValidatePromptModules", request.toApiJson(), this.apiOptions())
5834
+ .pipe(map(resp => ValidatePromptModulesResponse.fromProto(resp)));
5835
+ }
5836
+ validatePromptModuleVersions(r) {
5837
+ const request = (r.toApiJson) ? r : new ValidatePromptModuleVersionsRequest(r);
5838
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/ValidatePromptModuleVersions", request.toApiJson(), this.apiOptions())
5839
+ .pipe(map(resp => ValidatePromptModuleVersionsResponse.fromProto(resp)));
5840
+ }
6061
5841
  }
6062
5842
  PromptModuleApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6063
5843
  PromptModuleApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, providedIn: 'root' });
@@ -6066,80 +5846,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6066
5846
  args: [{ providedIn: 'root' }]
6067
5847
  }] });
6068
5848
 
6069
- // *********************************
6070
- // Code generated by sdkgen
6071
- // DO NOT EDIT!.
6072
- //
6073
- // API Service.
6074
- // *********************************
6075
- class PromptApiService {
6076
- constructor() {
6077
- this.hostService = inject(HostService);
6078
- this.http = inject(HttpClient);
6079
- this._host = this.hostService.hostWithScheme;
6080
- }
6081
- apiOptions() {
6082
- return {
6083
- headers: new HttpHeaders({
6084
- 'Content-Type': 'application/json'
6085
- }),
6086
- withCredentials: true
6087
- };
6088
- }
6089
- create(r) {
6090
- const request = (r.toApiJson) ? r : new CreatePromptRequest(r);
6091
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Create", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
6092
- }
6093
- get(r) {
6094
- const request = (r.toApiJson) ? r : new GetPromptRequest(r);
6095
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Get", request.toApiJson(), this.apiOptions())
6096
- .pipe(map(resp => GetPromptResponse.fromProto(resp)));
6097
- }
6098
- getVersion(r) {
6099
- const request = (r.toApiJson) ? r : new GetPromptVersionRequest(r);
6100
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetVersion", request.toApiJson(), this.apiOptions())
6101
- .pipe(map(resp => GetPromptVersionResponse.fromProto(resp)));
6102
- }
6103
- getDeployedVersion(r) {
6104
- const request = (r.toApiJson) ? r : new GetDeployedPromptVersionRequest(r);
6105
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetDeployedVersion", request.toApiJson(), this.apiOptions())
6106
- .pipe(map(resp => GetDeployedPromptVersionResponse.fromProto(resp)));
6107
- }
6108
- getMultiDeployedVersion(r) {
6109
- const request = (r.toApiJson) ? r : new GetMultiDeployedPromptVersionRequest(r);
6110
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetMultiDeployedVersion", request.toApiJson(), this.apiOptions())
6111
- .pipe(map(resp => GetMultiDeployedPromptVersionResponse.fromProto(resp)));
6112
- }
6113
- update(r) {
6114
- const request = (r.toApiJson) ? r : new UpdatePromptRequest(r);
6115
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
6116
- }
6117
- deploy(r) {
6118
- const request = (r.toApiJson) ? r : new DeployPromptRequest(r);
6119
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Deploy", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
6120
- }
6121
- list(r) {
6122
- const request = (r.toApiJson) ? r : new ListPromptRequest(r);
6123
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/List", request.toApiJson(), this.apiOptions())
6124
- .pipe(map(resp => ListPromptResponse.fromProto(resp)));
6125
- }
6126
- listVersions(r) {
6127
- const request = (r.toApiJson) ? r : new ListPromptVersionsRequest(r);
6128
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/ListVersions", request.toApiJson(), this.apiOptions())
6129
- .pipe(map(resp => ListPromptVersionsResponse.fromProto(resp)));
6130
- }
6131
- delete(r) {
6132
- const request = (r.toApiJson) ? r : new DeletePromptRequest(r);
6133
- return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Delete", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
6134
- }
6135
- }
6136
- PromptApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6137
- PromptApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, providedIn: 'root' });
6138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, decorators: [{
6139
- type: Injectable,
6140
- args: [{ providedIn: 'root' }]
6141
- }] });
6142
-
6143
5849
  // *********************************
6144
5850
  // Code generated by sdkgen
6145
5851
  // DO NOT EDIT!.
@@ -6151,5 +5857,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6151
5857
  * Generated bundle index. Do not edit.
6152
5858
  */
6153
5859
 
6154
- export { Access, Action, AgentArchitecture, 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, ExecuteFunctionRequestOptions, 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 };
5860
+ export { Access, Action, AgentArchitecture, 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, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, 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, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, 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, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, VendorModel };
6155
5861
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map