@vendasta/ai-assistants 0.5.0 → 0.7.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 (43) hide show
  1. package/esm2020/lib/_internal/assistant.api.service.mjs +6 -2
  2. package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
  3. package/esm2020/lib/_internal/enums/goal.enum.mjs +14 -0
  4. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  5. package/esm2020/lib/_internal/goal.api.service.mjs +58 -0
  6. package/esm2020/lib/_internal/index.mjs +3 -1
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/function.interface.mjs +2 -0
  10. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +2 -0
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -7
  13. package/esm2020/lib/_internal/objects/api.mjs +801 -51
  14. package/esm2020/lib/_internal/objects/assistant.mjs +31 -1
  15. package/esm2020/lib/_internal/objects/function.mjs +34 -0
  16. package/esm2020/lib/_internal/objects/goal.mjs +96 -0
  17. package/esm2020/lib/_internal/objects/index.mjs +6 -4
  18. package/esm2020/lib/_internal/objects/prompt.mjs +119 -1
  19. package/esm2020/lib/_internal/prompt-module.api.service.mjs +81 -0
  20. package/fesm2015/vendasta-ai-assistants.mjs +1529 -365
  21. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  22. package/fesm2020/vendasta-ai-assistants.mjs +1529 -365
  23. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  24. package/lib/_internal/assistant.api.service.d.ts +3 -2
  25. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  26. package/lib/_internal/enums/goal.enum.d.ts +6 -0
  27. package/lib/_internal/enums/index.d.ts +1 -0
  28. package/lib/_internal/goal.api.service.d.ts +18 -0
  29. package/lib/_internal/index.d.ts +2 -0
  30. package/lib/_internal/interfaces/api.interface.d.ts +116 -4
  31. package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
  32. package/lib/_internal/interfaces/function.interface.d.ts +5 -0
  33. package/lib/_internal/interfaces/goal.interface.d.ts +19 -0
  34. package/lib/_internal/interfaces/index.d.ts +5 -3
  35. package/lib/_internal/interfaces/prompt.interface.d.ts +23 -0
  36. package/lib/_internal/objects/api.d.ts +202 -6
  37. package/lib/_internal/objects/assistant.d.ts +8 -0
  38. package/lib/_internal/objects/function.d.ts +10 -0
  39. package/lib/_internal/objects/goal.d.ts +27 -0
  40. package/lib/_internal/objects/index.d.ts +5 -3
  41. package/lib/_internal/objects/prompt.d.ts +32 -0
  42. package/lib/_internal/prompt-module.api.service.d.ts +23 -0
  43. package/package.json +1 -1
@@ -27,6 +27,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
27
27
  args: [{ providedIn: 'root' }]
28
28
  }] });
29
29
 
30
+ // *********************************
31
+ // Code generated by sdkgen
32
+ // DO NOT EDIT!.
33
+ //
34
+ // Enums.
35
+ // *********************************
36
+ var GoalType;
37
+ (function (GoalType) {
38
+ GoalType[GoalType["GOAL_TYPE_INVALID"] = 0] = "GOAL_TYPE_INVALID";
39
+ GoalType[GoalType["GOAL_TYPE_KNOWLEDGE"] = 1] = "GOAL_TYPE_KNOWLEDGE";
40
+ GoalType[GoalType["GOAL_TYPE_PERSONALITY"] = 2] = "GOAL_TYPE_PERSONALITY";
41
+ GoalType[GoalType["GOAL_TYPE_CUSTOM"] = 3] = "GOAL_TYPE_CUSTOM";
42
+ })(GoalType || (GoalType = {}));
43
+
30
44
  // *********************************
31
45
  // Code generated by sdkgen
32
46
  // DO NOT EDIT!.
@@ -39,6 +53,7 @@ var AssistantType;
39
53
  AssistantType[AssistantType["ASSISTANT_TYPE_SYSTEM"] = 1] = "ASSISTANT_TYPE_SYSTEM";
40
54
  AssistantType[AssistantType["ASSISTANT_TYPE_INBOX"] = 2] = "ASSISTANT_TYPE_INBOX";
41
55
  AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
56
+ AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
42
57
  })(AssistantType || (AssistantType = {}));
43
58
 
44
59
  // *********************************
@@ -75,7 +90,7 @@ var ChatMessageRole;
75
90
  // Enums Index.
76
91
  // *********************************
77
92
 
78
- function enumStringToValue$8(enumRef, value) {
93
+ function enumStringToValue$a(enumRef, value) {
79
94
  if (typeof value === 'number') {
80
95
  return value;
81
96
  }
@@ -177,24 +192,95 @@ class NamespaceSystemNamespace {
177
192
  }
178
193
  }
179
194
 
180
- function enumStringToValue$7(enumRef, value) {
195
+ function enumStringToValue$9(enumRef, value) {
181
196
  if (typeof value === 'number') {
182
197
  return value;
183
198
  }
184
199
  return enumRef[value];
185
200
  }
186
- class Assistant {
201
+ class FunctionKey {
187
202
  static fromProto(proto) {
188
- let m = new Assistant();
203
+ let m = new FunctionKey();
189
204
  m = Object.assign(m, proto);
190
205
  if (proto.namespace) {
191
206
  m.namespace = Namespace.fromProto(proto.namespace);
192
207
  }
193
- if (proto.type) {
194
- m.type = enumStringToValue$7(AssistantType, proto.type);
208
+ return m;
209
+ }
210
+ constructor(kwargs) {
211
+ if (!kwargs) {
212
+ return;
195
213
  }
196
- if (proto.config) {
197
- m.config = Config.fromProto(proto.config);
214
+ Object.assign(this, kwargs);
215
+ }
216
+ toApiJson() {
217
+ const toReturn = {};
218
+ if (typeof this.id !== 'undefined') {
219
+ toReturn['id'] = this.id;
220
+ }
221
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
222
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
223
+ }
224
+ return toReturn;
225
+ }
226
+ }
227
+
228
+ function enumStringToValue$8(enumRef, value) {
229
+ if (typeof value === 'number') {
230
+ return value;
231
+ }
232
+ return enumRef[value];
233
+ }
234
+ class Prompt {
235
+ static fromProto(proto) {
236
+ let m = new Prompt();
237
+ m = Object.assign(m, proto);
238
+ if (proto.updated) {
239
+ m.updated = new Date(proto.updated);
240
+ }
241
+ if (proto.deployed) {
242
+ m.deployed = new Date(proto.deployed);
243
+ }
244
+ return m;
245
+ }
246
+ constructor(kwargs) {
247
+ if (!kwargs) {
248
+ return;
249
+ }
250
+ Object.assign(this, kwargs);
251
+ }
252
+ toApiJson() {
253
+ const toReturn = {};
254
+ if (typeof this.id !== 'undefined') {
255
+ toReturn['id'] = this.id;
256
+ }
257
+ if (typeof this.deployedVersion !== 'undefined') {
258
+ toReturn['deployedVersion'] = this.deployedVersion;
259
+ }
260
+ if (typeof this.deployedBy !== 'undefined') {
261
+ toReturn['deployedBy'] = this.deployedBy;
262
+ }
263
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
264
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
265
+ }
266
+ if (typeof this.description !== 'undefined') {
267
+ toReturn['description'] = this.description;
268
+ }
269
+ if (typeof this.deployed !== 'undefined' && this.deployed !== null) {
270
+ toReturn['deployed'] = 'toApiJson' in this.deployed ? this.deployed.toApiJson() : this.deployed;
271
+ }
272
+ return toReturn;
273
+ }
274
+ }
275
+ class PromptModule {
276
+ static fromProto(proto) {
277
+ let m = new PromptModule();
278
+ m = Object.assign(m, proto);
279
+ if (proto.namespace) {
280
+ m.namespace = Namespace.fromProto(proto.namespace);
281
+ }
282
+ if (proto.updated) {
283
+ m.updated = new Date(proto.updated);
198
284
  }
199
285
  return m;
200
286
  }
@@ -215,21 +301,21 @@ class Assistant {
215
301
  if (typeof this.name !== 'undefined') {
216
302
  toReturn['name'] = this.name;
217
303
  }
218
- if (typeof this.type !== 'undefined') {
219
- toReturn['type'] = this.type;
304
+ if (typeof this.deployedVersion !== 'undefined') {
305
+ toReturn['deployedVersion'] = this.deployedVersion;
220
306
  }
221
- if (typeof this.avatarUrl !== 'undefined') {
222
- toReturn['avatarUrl'] = this.avatarUrl;
307
+ if (typeof this.deployedBy !== 'undefined') {
308
+ toReturn['deployedBy'] = this.deployedBy;
223
309
  }
224
- if (typeof this.config !== 'undefined' && this.config !== null) {
225
- toReturn['config'] = 'toApiJson' in this.config ? this.config.toApiJson() : this.config;
310
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
311
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
226
312
  }
227
313
  return toReturn;
228
314
  }
229
315
  }
230
- class AssistantKey {
316
+ class PromptModuleKey {
231
317
  static fromProto(proto) {
232
- let m = new AssistantKey();
318
+ let m = new PromptModuleKey();
233
319
  m = Object.assign(m, proto);
234
320
  if (proto.namespace) {
235
321
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -253,12 +339,15 @@ class AssistantKey {
253
339
  return toReturn;
254
340
  }
255
341
  }
256
- class Config {
342
+ class PromptModuleVersion {
257
343
  static fromProto(proto) {
258
- let m = new Config();
344
+ let m = new PromptModuleVersion();
259
345
  m = Object.assign(m, proto);
260
- if (proto.inboxConfig) {
261
- m.inboxConfig = ConfigInboxConfig.fromProto(proto.inboxConfig);
346
+ if (proto.namespace) {
347
+ m.namespace = Namespace.fromProto(proto.namespace);
348
+ }
349
+ if (proto.created) {
350
+ m.created = new Date(proto.created);
262
351
  }
263
352
  return m;
264
353
  }
@@ -270,16 +359,34 @@ class Config {
270
359
  }
271
360
  toApiJson() {
272
361
  const toReturn = {};
273
- if (typeof this.inboxConfig !== 'undefined' && this.inboxConfig !== null) {
274
- toReturn['inboxConfig'] = 'toApiJson' in this.inboxConfig ? this.inboxConfig.toApiJson() : this.inboxConfig;
362
+ if (typeof this.id !== 'undefined') {
363
+ toReturn['id'] = this.id;
364
+ }
365
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
366
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
367
+ }
368
+ if (typeof this.version !== 'undefined') {
369
+ toReturn['version'] = this.version;
370
+ }
371
+ if (typeof this.content !== 'undefined') {
372
+ toReturn['content'] = this.content;
373
+ }
374
+ if (typeof this.createdBy !== 'undefined') {
375
+ toReturn['createdBy'] = this.createdBy;
376
+ }
377
+ if (typeof this.created !== 'undefined' && this.created !== null) {
378
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
275
379
  }
276
380
  return toReturn;
277
381
  }
278
382
  }
279
- class ConfigInboxConfig {
383
+ class PromptVersion {
280
384
  static fromProto(proto) {
281
- let m = new ConfigInboxConfig();
385
+ let m = new PromptVersion();
282
386
  m = Object.assign(m, proto);
387
+ if (proto.created) {
388
+ m.created = new Date(proto.created);
389
+ }
283
390
  return m;
284
391
  }
285
392
  constructor(kwargs) {
@@ -290,31 +397,49 @@ class ConfigInboxConfig {
290
397
  }
291
398
  toApiJson() {
292
399
  const toReturn = {};
293
- if (typeof this.leadCaptureEnabled !== 'undefined') {
294
- toReturn['leadCaptureEnabled'] = this.leadCaptureEnabled;
400
+ if (typeof this.id !== 'undefined') {
401
+ toReturn['id'] = this.id;
295
402
  }
296
- if (typeof this.additionalInstructions !== 'undefined') {
297
- toReturn['additionalInstructions'] = this.additionalInstructions;
403
+ if (typeof this.version !== 'undefined') {
404
+ toReturn['version'] = this.version;
405
+ }
406
+ if (typeof this.content !== 'undefined') {
407
+ toReturn['content'] = this.content;
408
+ }
409
+ if (typeof this.createdBy !== 'undefined') {
410
+ toReturn['createdBy'] = this.createdBy;
411
+ }
412
+ if (typeof this.created !== 'undefined' && this.created !== null) {
413
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
298
414
  }
299
415
  return toReturn;
300
416
  }
301
417
  }
302
418
 
303
- function enumStringToValue$6(enumRef, value) {
419
+ function enumStringToValue$7(enumRef, value) {
304
420
  if (typeof value === 'number') {
305
421
  return value;
306
422
  }
307
423
  return enumRef[value];
308
424
  }
309
- class Connection {
425
+ class Goal {
310
426
  static fromProto(proto) {
311
- let m = new Connection();
427
+ let m = new Goal();
312
428
  m = Object.assign(m, proto);
313
429
  if (proto.namespace) {
314
430
  m.namespace = Namespace.fromProto(proto.namespace);
315
431
  }
316
- if (proto.assistantKeys) {
317
- m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
432
+ if (proto.type) {
433
+ m.type = enumStringToValue$7(GoalType, proto.type);
434
+ }
435
+ if (proto.promptModules) {
436
+ m.promptModules = proto.promptModules.map(PromptModuleKey.fromProto);
437
+ }
438
+ if (proto.functions) {
439
+ m.functions = proto.functions.map(FunctionKey.fromProto);
440
+ }
441
+ if (proto.updated) {
442
+ m.updated = new Date(proto.updated);
318
443
  }
319
444
  return m;
320
445
  }
@@ -335,30 +460,30 @@ class Connection {
335
460
  if (typeof this.name !== 'undefined') {
336
461
  toReturn['name'] = this.name;
337
462
  }
338
- if (typeof this.configurationUrl !== 'undefined') {
339
- toReturn['configurationUrl'] = this.configurationUrl;
463
+ if (typeof this.description !== 'undefined') {
464
+ toReturn['description'] = this.description;
340
465
  }
341
- if (typeof this.assistantKeys !== 'undefined' && this.assistantKeys !== null) {
342
- toReturn['assistantKeys'] = 'toApiJson' in this.assistantKeys ? this.assistantKeys.toApiJson() : this.assistantKeys;
466
+ if (typeof this.type !== 'undefined') {
467
+ toReturn['type'] = this.type;
343
468
  }
344
- if (typeof this.connectionType !== 'undefined') {
345
- toReturn['connectionType'] = this.connectionType;
469
+ if (typeof this.promptModules !== 'undefined' && this.promptModules !== null) {
470
+ toReturn['promptModules'] = 'toApiJson' in this.promptModules ? this.promptModules.toApiJson() : this.promptModules;
346
471
  }
347
- if (typeof this.connectionTypeName !== 'undefined') {
348
- toReturn['connectionTypeName'] = this.connectionTypeName;
472
+ if (typeof this.functions !== 'undefined' && this.functions !== null) {
473
+ toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
349
474
  }
350
- if (typeof this.iconUrl !== 'undefined') {
351
- toReturn['iconUrl'] = this.iconUrl;
475
+ if (typeof this.updatedBy !== 'undefined') {
476
+ toReturn['updatedBy'] = this.updatedBy;
352
477
  }
353
- if (typeof this.isConnectionLocked !== 'undefined') {
354
- toReturn['isConnectionLocked'] = this.isConnectionLocked;
478
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
479
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
355
480
  }
356
481
  return toReturn;
357
482
  }
358
483
  }
359
- class ConnectionKey {
484
+ class GoalKey {
360
485
  static fromProto(proto) {
361
- let m = new ConnectionKey();
486
+ let m = new GoalKey();
362
487
  m = Object.assign(m, proto);
363
488
  if (proto.namespace) {
364
489
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -379,23 +504,32 @@ class ConnectionKey {
379
504
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
380
505
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
381
506
  }
382
- if (typeof this.connectionType !== 'undefined') {
383
- toReturn['connectionType'] = this.connectionType;
384
- }
385
507
  return toReturn;
386
508
  }
387
509
  }
388
510
 
389
- function enumStringToValue$5(enumRef, value) {
511
+ function enumStringToValue$6(enumRef, value) {
390
512
  if (typeof value === 'number') {
391
513
  return value;
392
514
  }
393
515
  return enumRef[value];
394
516
  }
395
- class KeyValuePair {
517
+ class Assistant {
396
518
  static fromProto(proto) {
397
- let m = new KeyValuePair();
519
+ let m = new Assistant();
398
520
  m = Object.assign(m, proto);
521
+ if (proto.namespace) {
522
+ m.namespace = Namespace.fromProto(proto.namespace);
523
+ }
524
+ if (proto.type) {
525
+ m.type = enumStringToValue$6(AssistantType, proto.type);
526
+ }
527
+ if (proto.config) {
528
+ m.config = Config.fromProto(proto.config);
529
+ }
530
+ if (proto.configurableGoals) {
531
+ m.configurableGoals = proto.configurableGoals.map(ConfigurableGoal.fromProto);
532
+ }
399
533
  return m;
400
534
  }
401
535
  constructor(kwargs) {
@@ -406,31 +540,36 @@ class KeyValuePair {
406
540
  }
407
541
  toApiJson() {
408
542
  const toReturn = {};
409
- if (typeof this.key !== 'undefined') {
410
- toReturn['key'] = this.key;
543
+ if (typeof this.id !== 'undefined') {
544
+ toReturn['id'] = this.id;
411
545
  }
412
- if (typeof this.value !== 'undefined') {
413
- toReturn['value'] = this.value;
546
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
547
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
548
+ }
549
+ if (typeof this.name !== 'undefined') {
550
+ toReturn['name'] = this.name;
551
+ }
552
+ if (typeof this.type !== 'undefined') {
553
+ toReturn['type'] = this.type;
554
+ }
555
+ if (typeof this.avatarUrl !== 'undefined') {
556
+ toReturn['avatarUrl'] = this.avatarUrl;
557
+ }
558
+ if (typeof this.config !== 'undefined' && this.config !== null) {
559
+ toReturn['config'] = 'toApiJson' in this.config ? this.config.toApiJson() : this.config;
560
+ }
561
+ if (typeof this.configurableGoals !== 'undefined' && this.configurableGoals !== null) {
562
+ toReturn['configurableGoals'] = 'toApiJson' in this.configurableGoals ? this.configurableGoals.toApiJson() : this.configurableGoals;
414
563
  }
415
564
  return toReturn;
416
565
  }
417
566
  }
418
-
419
- function enumStringToValue$4(enumRef, value) {
420
- if (typeof value === 'number') {
421
- return value;
422
- }
423
- return enumRef[value];
424
- }
425
- class ChatAnswerFunctionExecutionJob {
567
+ class AssistantKey {
426
568
  static fromProto(proto) {
427
- let m = new ChatAnswerFunctionExecutionJob();
569
+ let m = new AssistantKey();
428
570
  m = Object.assign(m, proto);
429
- if (proto.status) {
430
- m.status = enumStringToValue$4(ChatAnswerFunctionExecutionJobStatus, proto.status);
431
- }
432
- if (proto.result) {
433
- m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
571
+ if (proto.namespace) {
572
+ m.namespace = Namespace.fromProto(proto.namespace);
434
573
  }
435
574
  return m;
436
575
  }
@@ -445,24 +584,18 @@ class ChatAnswerFunctionExecutionJob {
445
584
  if (typeof this.id !== 'undefined') {
446
585
  toReturn['id'] = this.id;
447
586
  }
448
- if (typeof this.status !== 'undefined') {
449
- toReturn['status'] = this.status;
450
- }
451
- if (typeof this.result !== 'undefined' && this.result !== null) {
452
- toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
453
- }
454
- if (typeof this.nextJobId !== 'undefined') {
455
- toReturn['nextJobId'] = this.nextJobId;
587
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
588
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
456
589
  }
457
590
  return toReturn;
458
591
  }
459
592
  }
460
- class ChatAnswerFunctionExecutionJobResult {
593
+ class Config {
461
594
  static fromProto(proto) {
462
- let m = new ChatAnswerFunctionExecutionJobResult();
595
+ let m = new Config();
463
596
  m = Object.assign(m, proto);
464
- if (proto.metadata) {
465
- m.metadata = proto.metadata.map(KeyValuePair.fromProto);
597
+ if (proto.inboxConfig) {
598
+ m.inboxConfig = ConfigInboxConfig.fromProto(proto.inboxConfig);
466
599
  }
467
600
  return m;
468
601
  }
@@ -474,21 +607,18 @@ class ChatAnswerFunctionExecutionJobResult {
474
607
  }
475
608
  toApiJson() {
476
609
  const toReturn = {};
477
- if (typeof this.content !== 'undefined') {
478
- toReturn['content'] = this.content;
479
- }
480
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
481
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
610
+ if (typeof this.inboxConfig !== 'undefined' && this.inboxConfig !== null) {
611
+ toReturn['inboxConfig'] = 'toApiJson' in this.inboxConfig ? this.inboxConfig.toApiJson() : this.inboxConfig;
482
612
  }
483
613
  return toReturn;
484
614
  }
485
615
  }
486
- class ChatMessage {
616
+ class ConfigurableGoal {
487
617
  static fromProto(proto) {
488
- let m = new ChatMessage();
618
+ let m = new ConfigurableGoal();
489
619
  m = Object.assign(m, proto);
490
- if (proto.role) {
491
- m.role = enumStringToValue$4(ChatMessageRole, proto.role);
620
+ if (proto.goalKey) {
621
+ m.goalKey = GoalKey.fromProto(proto.goalKey);
492
622
  }
493
623
  return m;
494
624
  }
@@ -500,19 +630,52 @@ class ChatMessage {
500
630
  }
501
631
  toApiJson() {
502
632
  const toReturn = {};
503
- if (typeof this.role !== 'undefined') {
504
- toReturn['role'] = this.role;
633
+ if (typeof this.goalKey !== 'undefined' && this.goalKey !== null) {
634
+ toReturn['goalKey'] = 'toApiJson' in this.goalKey ? this.goalKey.toApiJson() : this.goalKey;
505
635
  }
506
- if (typeof this.content !== 'undefined') {
507
- toReturn['content'] = this.content;
636
+ return toReturn;
637
+ }
638
+ }
639
+ class ConfigInboxConfig {
640
+ static fromProto(proto) {
641
+ let m = new ConfigInboxConfig();
642
+ m = Object.assign(m, proto);
643
+ return m;
644
+ }
645
+ constructor(kwargs) {
646
+ if (!kwargs) {
647
+ return;
648
+ }
649
+ Object.assign(this, kwargs);
650
+ }
651
+ toApiJson() {
652
+ const toReturn = {};
653
+ if (typeof this.leadCaptureEnabled !== 'undefined') {
654
+ toReturn['leadCaptureEnabled'] = this.leadCaptureEnabled;
655
+ }
656
+ if (typeof this.additionalInstructions !== 'undefined') {
657
+ toReturn['additionalInstructions'] = this.additionalInstructions;
508
658
  }
509
659
  return toReturn;
510
660
  }
511
661
  }
512
- class ChatUserInfo {
662
+
663
+ function enumStringToValue$5(enumRef, value) {
664
+ if (typeof value === 'number') {
665
+ return value;
666
+ }
667
+ return enumRef[value];
668
+ }
669
+ class Connection {
513
670
  static fromProto(proto) {
514
- let m = new ChatUserInfo();
671
+ let m = new Connection();
515
672
  m = Object.assign(m, proto);
673
+ if (proto.namespace) {
674
+ m.namespace = Namespace.fromProto(proto.namespace);
675
+ }
676
+ if (proto.assistantKeys) {
677
+ m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
678
+ }
516
679
  return m;
517
680
  }
518
681
  constructor(kwargs) {
@@ -523,32 +686,91 @@ class ChatUserInfo {
523
686
  }
524
687
  toApiJson() {
525
688
  const toReturn = {};
689
+ if (typeof this.id !== 'undefined') {
690
+ toReturn['id'] = this.id;
691
+ }
692
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
693
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
694
+ }
526
695
  if (typeof this.name !== 'undefined') {
527
696
  toReturn['name'] = this.name;
528
697
  }
529
- if (typeof this.email !== 'undefined') {
530
- toReturn['email'] = this.email;
698
+ if (typeof this.configurationUrl !== 'undefined') {
699
+ toReturn['configurationUrl'] = this.configurationUrl;
531
700
  }
532
- if (typeof this.phone !== 'undefined') {
533
- toReturn['phone'] = this.phone;
701
+ if (typeof this.assistantKeys !== 'undefined' && this.assistantKeys !== null) {
702
+ toReturn['assistantKeys'] = 'toApiJson' in this.assistantKeys ? this.assistantKeys.toApiJson() : this.assistantKeys;
534
703
  }
535
- if (typeof this.address1 !== 'undefined') {
536
- toReturn['address1'] = this.address1;
704
+ if (typeof this.connectionType !== 'undefined') {
705
+ toReturn['connectionType'] = this.connectionType;
537
706
  }
538
- if (typeof this.address2 !== 'undefined') {
539
- toReturn['address2'] = this.address2;
707
+ if (typeof this.connectionTypeName !== 'undefined') {
708
+ toReturn['connectionTypeName'] = this.connectionTypeName;
540
709
  }
541
- if (typeof this.city !== 'undefined') {
542
- toReturn['city'] = this.city;
710
+ if (typeof this.iconUrl !== 'undefined') {
711
+ toReturn['iconUrl'] = this.iconUrl;
543
712
  }
544
- if (typeof this.state !== 'undefined') {
545
- toReturn['state'] = this.state;
713
+ if (typeof this.isConnectionLocked !== 'undefined') {
714
+ toReturn['isConnectionLocked'] = this.isConnectionLocked;
546
715
  }
547
- if (typeof this.country !== 'undefined') {
548
- toReturn['country'] = this.country;
716
+ return toReturn;
717
+ }
718
+ }
719
+ class ConnectionKey {
720
+ static fromProto(proto) {
721
+ let m = new ConnectionKey();
722
+ m = Object.assign(m, proto);
723
+ if (proto.namespace) {
724
+ m.namespace = Namespace.fromProto(proto.namespace);
549
725
  }
550
- if (typeof this.zipCode !== 'undefined') {
551
- toReturn['zipCode'] = this.zipCode;
726
+ return m;
727
+ }
728
+ constructor(kwargs) {
729
+ if (!kwargs) {
730
+ return;
731
+ }
732
+ Object.assign(this, kwargs);
733
+ }
734
+ toApiJson() {
735
+ const toReturn = {};
736
+ if (typeof this.id !== 'undefined') {
737
+ toReturn['id'] = this.id;
738
+ }
739
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
740
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
741
+ }
742
+ if (typeof this.connectionType !== 'undefined') {
743
+ toReturn['connectionType'] = this.connectionType;
744
+ }
745
+ return toReturn;
746
+ }
747
+ }
748
+
749
+ function enumStringToValue$4(enumRef, value) {
750
+ if (typeof value === 'number') {
751
+ return value;
752
+ }
753
+ return enumRef[value];
754
+ }
755
+ class KeyValuePair {
756
+ static fromProto(proto) {
757
+ let m = new KeyValuePair();
758
+ m = Object.assign(m, proto);
759
+ return m;
760
+ }
761
+ constructor(kwargs) {
762
+ if (!kwargs) {
763
+ return;
764
+ }
765
+ Object.assign(this, kwargs);
766
+ }
767
+ toApiJson() {
768
+ const toReturn = {};
769
+ if (typeof this.key !== 'undefined') {
770
+ toReturn['key'] = this.key;
771
+ }
772
+ if (typeof this.value !== 'undefined') {
773
+ toReturn['value'] = this.value;
552
774
  }
553
775
  return toReturn;
554
776
  }
@@ -560,12 +782,15 @@ function enumStringToValue$3(enumRef, value) {
560
782
  }
561
783
  return enumRef[value];
562
784
  }
563
- class Prompt {
785
+ class ChatAnswerFunctionExecutionJob {
564
786
  static fromProto(proto) {
565
- let m = new Prompt();
787
+ let m = new ChatAnswerFunctionExecutionJob();
566
788
  m = Object.assign(m, proto);
567
- if (proto.updated) {
568
- m.updated = new Date(proto.updated);
789
+ if (proto.status) {
790
+ m.status = enumStringToValue$3(ChatAnswerFunctionExecutionJobStatus, proto.status);
791
+ }
792
+ if (proto.result) {
793
+ m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
569
794
  }
570
795
  return m;
571
796
  }
@@ -580,24 +805,24 @@ class Prompt {
580
805
  if (typeof this.id !== 'undefined') {
581
806
  toReturn['id'] = this.id;
582
807
  }
583
- if (typeof this.deployedVersion !== 'undefined') {
584
- toReturn['deployedVersion'] = this.deployedVersion;
808
+ if (typeof this.status !== 'undefined') {
809
+ toReturn['status'] = this.status;
585
810
  }
586
- if (typeof this.deployedBy !== 'undefined') {
587
- toReturn['deployedBy'] = this.deployedBy;
811
+ if (typeof this.result !== 'undefined' && this.result !== null) {
812
+ toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
588
813
  }
589
- if (typeof this.updated !== 'undefined' && this.updated !== null) {
590
- toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
814
+ if (typeof this.nextJobId !== 'undefined') {
815
+ toReturn['nextJobId'] = this.nextJobId;
591
816
  }
592
817
  return toReturn;
593
818
  }
594
819
  }
595
- class PromptVersion {
820
+ class ChatAnswerFunctionExecutionJobResult {
596
821
  static fromProto(proto) {
597
- let m = new PromptVersion();
822
+ let m = new ChatAnswerFunctionExecutionJobResult();
598
823
  m = Object.assign(m, proto);
599
- if (proto.created) {
600
- m.created = new Date(proto.created);
824
+ if (proto.metadata) {
825
+ m.metadata = proto.metadata.map(KeyValuePair.fromProto);
601
826
  }
602
827
  return m;
603
828
  }
@@ -609,20 +834,81 @@ class PromptVersion {
609
834
  }
610
835
  toApiJson() {
611
836
  const toReturn = {};
612
- if (typeof this.id !== 'undefined') {
613
- toReturn['id'] = this.id;
837
+ if (typeof this.content !== 'undefined') {
838
+ toReturn['content'] = this.content;
614
839
  }
615
- if (typeof this.version !== 'undefined') {
616
- toReturn['version'] = this.version;
840
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
841
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
842
+ }
843
+ return toReturn;
844
+ }
845
+ }
846
+ class ChatMessage {
847
+ static fromProto(proto) {
848
+ let m = new ChatMessage();
849
+ m = Object.assign(m, proto);
850
+ if (proto.role) {
851
+ m.role = enumStringToValue$3(ChatMessageRole, proto.role);
852
+ }
853
+ return m;
854
+ }
855
+ constructor(kwargs) {
856
+ if (!kwargs) {
857
+ return;
858
+ }
859
+ Object.assign(this, kwargs);
860
+ }
861
+ toApiJson() {
862
+ const toReturn = {};
863
+ if (typeof this.role !== 'undefined') {
864
+ toReturn['role'] = this.role;
617
865
  }
618
866
  if (typeof this.content !== 'undefined') {
619
867
  toReturn['content'] = this.content;
620
868
  }
621
- if (typeof this.createdBy !== 'undefined') {
622
- toReturn['createdBy'] = this.createdBy;
869
+ return toReturn;
870
+ }
871
+ }
872
+ class ChatUserInfo {
873
+ static fromProto(proto) {
874
+ let m = new ChatUserInfo();
875
+ m = Object.assign(m, proto);
876
+ return m;
877
+ }
878
+ constructor(kwargs) {
879
+ if (!kwargs) {
880
+ return;
623
881
  }
624
- if (typeof this.created !== 'undefined' && this.created !== null) {
625
- toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
882
+ Object.assign(this, kwargs);
883
+ }
884
+ toApiJson() {
885
+ const toReturn = {};
886
+ if (typeof this.name !== 'undefined') {
887
+ toReturn['name'] = this.name;
888
+ }
889
+ if (typeof this.email !== 'undefined') {
890
+ toReturn['email'] = this.email;
891
+ }
892
+ if (typeof this.phone !== 'undefined') {
893
+ toReturn['phone'] = this.phone;
894
+ }
895
+ if (typeof this.address1 !== 'undefined') {
896
+ toReturn['address1'] = this.address1;
897
+ }
898
+ if (typeof this.address2 !== 'undefined') {
899
+ toReturn['address2'] = this.address2;
900
+ }
901
+ if (typeof this.city !== 'undefined') {
902
+ toReturn['city'] = this.city;
903
+ }
904
+ if (typeof this.state !== 'undefined') {
905
+ toReturn['state'] = this.state;
906
+ }
907
+ if (typeof this.country !== 'undefined') {
908
+ toReturn['country'] = this.country;
909
+ }
910
+ if (typeof this.zipCode !== 'undefined') {
911
+ toReturn['zipCode'] = this.zipCode;
626
912
  }
627
913
  return toReturn;
628
914
  }
@@ -713,23 +999,679 @@ class PagedResponseMetadata {
713
999
  if (typeof this.hasMore !== 'undefined') {
714
1000
  toReturn['hasMore'] = this.hasMore;
715
1001
  }
716
- if (typeof this.totalResults !== 'undefined') {
717
- toReturn['totalResults'] = this.totalResults;
1002
+ if (typeof this.totalResults !== 'undefined') {
1003
+ toReturn['totalResults'] = this.totalResults;
1004
+ }
1005
+ return toReturn;
1006
+ }
1007
+ }
1008
+
1009
+ function enumStringToValue(enumRef, value) {
1010
+ if (typeof value === 'number') {
1011
+ return value;
1012
+ }
1013
+ return enumRef[value];
1014
+ }
1015
+ class SetAssistantConnectionsRequestConnectionState {
1016
+ static fromProto(proto) {
1017
+ let m = new SetAssistantConnectionsRequestConnectionState();
1018
+ m = Object.assign(m, proto);
1019
+ if (proto.connectionKey) {
1020
+ m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
1021
+ }
1022
+ return m;
1023
+ }
1024
+ constructor(kwargs) {
1025
+ if (!kwargs) {
1026
+ return;
1027
+ }
1028
+ Object.assign(this, kwargs);
1029
+ }
1030
+ toApiJson() {
1031
+ const toReturn = {};
1032
+ if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
1033
+ toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
1034
+ }
1035
+ if (typeof this.isAssociated !== 'undefined') {
1036
+ toReturn['isAssociated'] = this.isAssociated;
1037
+ }
1038
+ return toReturn;
1039
+ }
1040
+ }
1041
+ class CreatePromptModuleRequest {
1042
+ static fromProto(proto) {
1043
+ let m = new CreatePromptModuleRequest();
1044
+ m = Object.assign(m, proto);
1045
+ if (proto.namespace) {
1046
+ m.namespace = Namespace.fromProto(proto.namespace);
1047
+ }
1048
+ return m;
1049
+ }
1050
+ constructor(kwargs) {
1051
+ if (!kwargs) {
1052
+ return;
1053
+ }
1054
+ Object.assign(this, kwargs);
1055
+ }
1056
+ toApiJson() {
1057
+ const toReturn = {};
1058
+ if (typeof this.id !== 'undefined') {
1059
+ toReturn['id'] = this.id;
1060
+ }
1061
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1062
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1063
+ }
1064
+ if (typeof this.content !== 'undefined') {
1065
+ toReturn['content'] = this.content;
1066
+ }
1067
+ return toReturn;
1068
+ }
1069
+ }
1070
+ class CreatePromptRequest {
1071
+ static fromProto(proto) {
1072
+ let m = new CreatePromptRequest();
1073
+ m = Object.assign(m, proto);
1074
+ return m;
1075
+ }
1076
+ constructor(kwargs) {
1077
+ if (!kwargs) {
1078
+ return;
1079
+ }
1080
+ Object.assign(this, kwargs);
1081
+ }
1082
+ toApiJson() {
1083
+ const toReturn = {};
1084
+ if (typeof this.id !== 'undefined') {
1085
+ toReturn['id'] = this.id;
1086
+ }
1087
+ if (typeof this.content !== 'undefined') {
1088
+ toReturn['content'] = this.content;
1089
+ }
1090
+ if (typeof this.description !== 'undefined') {
1091
+ toReturn['description'] = this.description;
1092
+ }
1093
+ return toReturn;
1094
+ }
1095
+ }
1096
+ class DeleteAssistantRequest {
1097
+ static fromProto(proto) {
1098
+ let m = new DeleteAssistantRequest();
1099
+ m = Object.assign(m, proto);
1100
+ if (proto.namespace) {
1101
+ m.namespace = Namespace.fromProto(proto.namespace);
1102
+ }
1103
+ return m;
1104
+ }
1105
+ constructor(kwargs) {
1106
+ if (!kwargs) {
1107
+ return;
1108
+ }
1109
+ Object.assign(this, kwargs);
1110
+ }
1111
+ toApiJson() {
1112
+ const toReturn = {};
1113
+ if (typeof this.id !== 'undefined') {
1114
+ toReturn['id'] = this.id;
1115
+ }
1116
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1117
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1118
+ }
1119
+ return toReturn;
1120
+ }
1121
+ }
1122
+ class DeleteConnectionRequest {
1123
+ static fromProto(proto) {
1124
+ let m = new DeleteConnectionRequest();
1125
+ m = Object.assign(m, proto);
1126
+ if (proto.namespace) {
1127
+ m.namespace = Namespace.fromProto(proto.namespace);
1128
+ }
1129
+ return m;
1130
+ }
1131
+ constructor(kwargs) {
1132
+ if (!kwargs) {
1133
+ return;
1134
+ }
1135
+ Object.assign(this, kwargs);
1136
+ }
1137
+ toApiJson() {
1138
+ const toReturn = {};
1139
+ if (typeof this.id !== 'undefined') {
1140
+ toReturn['id'] = this.id;
1141
+ }
1142
+ if (typeof this.connectionType !== 'undefined') {
1143
+ toReturn['connectionType'] = this.connectionType;
1144
+ }
1145
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1146
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1147
+ }
1148
+ return toReturn;
1149
+ }
1150
+ }
1151
+ class DeleteGoalRequest {
1152
+ static fromProto(proto) {
1153
+ let m = new DeleteGoalRequest();
1154
+ m = Object.assign(m, proto);
1155
+ if (proto.namespace) {
1156
+ m.namespace = Namespace.fromProto(proto.namespace);
1157
+ }
1158
+ return m;
1159
+ }
1160
+ constructor(kwargs) {
1161
+ if (!kwargs) {
1162
+ return;
1163
+ }
1164
+ Object.assign(this, kwargs);
1165
+ }
1166
+ toApiJson() {
1167
+ const toReturn = {};
1168
+ if (typeof this.id !== 'undefined') {
1169
+ toReturn['id'] = this.id;
1170
+ }
1171
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1172
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1173
+ }
1174
+ return toReturn;
1175
+ }
1176
+ }
1177
+ class DeletePromptModuleRequest {
1178
+ static fromProto(proto) {
1179
+ let m = new DeletePromptModuleRequest();
1180
+ m = Object.assign(m, proto);
1181
+ if (proto.namespace) {
1182
+ m.namespace = Namespace.fromProto(proto.namespace);
1183
+ }
1184
+ return m;
1185
+ }
1186
+ constructor(kwargs) {
1187
+ if (!kwargs) {
1188
+ return;
1189
+ }
1190
+ Object.assign(this, kwargs);
1191
+ }
1192
+ toApiJson() {
1193
+ const toReturn = {};
1194
+ if (typeof this.id !== 'undefined') {
1195
+ toReturn['id'] = this.id;
1196
+ }
1197
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1198
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1199
+ }
1200
+ return toReturn;
1201
+ }
1202
+ }
1203
+ class DeletePromptRequest {
1204
+ static fromProto(proto) {
1205
+ let m = new DeletePromptRequest();
1206
+ m = Object.assign(m, proto);
1207
+ return m;
1208
+ }
1209
+ constructor(kwargs) {
1210
+ if (!kwargs) {
1211
+ return;
1212
+ }
1213
+ Object.assign(this, kwargs);
1214
+ }
1215
+ toApiJson() {
1216
+ const toReturn = {};
1217
+ if (typeof this.id !== 'undefined') {
1218
+ toReturn['id'] = this.id;
1219
+ }
1220
+ return toReturn;
1221
+ }
1222
+ }
1223
+ class DeployPromptModuleRequest {
1224
+ static fromProto(proto) {
1225
+ let m = new DeployPromptModuleRequest();
1226
+ m = Object.assign(m, proto);
1227
+ if (proto.namespace) {
1228
+ m.namespace = Namespace.fromProto(proto.namespace);
1229
+ }
1230
+ return m;
1231
+ }
1232
+ constructor(kwargs) {
1233
+ if (!kwargs) {
1234
+ return;
1235
+ }
1236
+ Object.assign(this, kwargs);
1237
+ }
1238
+ toApiJson() {
1239
+ const toReturn = {};
1240
+ if (typeof this.id !== 'undefined') {
1241
+ toReturn['id'] = this.id;
1242
+ }
1243
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1244
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1245
+ }
1246
+ if (typeof this.version !== 'undefined') {
1247
+ toReturn['version'] = this.version;
1248
+ }
1249
+ return toReturn;
1250
+ }
1251
+ }
1252
+ class DeployPromptRequest {
1253
+ static fromProto(proto) {
1254
+ let m = new DeployPromptRequest();
1255
+ m = Object.assign(m, proto);
1256
+ return m;
1257
+ }
1258
+ constructor(kwargs) {
1259
+ if (!kwargs) {
1260
+ return;
1261
+ }
1262
+ Object.assign(this, kwargs);
1263
+ }
1264
+ toApiJson() {
1265
+ const toReturn = {};
1266
+ if (typeof this.id !== 'undefined') {
1267
+ toReturn['id'] = this.id;
1268
+ }
1269
+ if (typeof this.version !== 'undefined') {
1270
+ toReturn['version'] = this.version;
1271
+ }
1272
+ return toReturn;
1273
+ }
1274
+ }
1275
+ class ListPromptModuleRequestFilters {
1276
+ static fromProto(proto) {
1277
+ let m = new ListPromptModuleRequestFilters();
1278
+ m = Object.assign(m, proto);
1279
+ if (proto.namespace) {
1280
+ m.namespace = Namespace.fromProto(proto.namespace);
1281
+ }
1282
+ return m;
1283
+ }
1284
+ constructor(kwargs) {
1285
+ if (!kwargs) {
1286
+ return;
1287
+ }
1288
+ Object.assign(this, kwargs);
1289
+ }
1290
+ toApiJson() {
1291
+ const toReturn = {};
1292
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1293
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1294
+ }
1295
+ return toReturn;
1296
+ }
1297
+ }
1298
+ class ListGoalsRequestFilters {
1299
+ static fromProto(proto) {
1300
+ let m = new ListGoalsRequestFilters();
1301
+ m = Object.assign(m, proto);
1302
+ if (proto.namespace) {
1303
+ m.namespace = Namespace.fromProto(proto.namespace);
1304
+ }
1305
+ return m;
1306
+ }
1307
+ constructor(kwargs) {
1308
+ if (!kwargs) {
1309
+ return;
1310
+ }
1311
+ Object.assign(this, kwargs);
1312
+ }
1313
+ toApiJson() {
1314
+ const toReturn = {};
1315
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1316
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1317
+ }
1318
+ return toReturn;
1319
+ }
1320
+ }
1321
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
1322
+ static fromProto(proto) {
1323
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
1324
+ m = Object.assign(m, proto);
1325
+ if (proto.type) {
1326
+ m.type = enumStringToValue(AssistantType, proto.type);
1327
+ }
1328
+ return m;
1329
+ }
1330
+ constructor(kwargs) {
1331
+ if (!kwargs) {
1332
+ return;
1333
+ }
1334
+ Object.assign(this, kwargs);
1335
+ }
1336
+ toApiJson() {
1337
+ const toReturn = {};
1338
+ if (typeof this.type !== 'undefined') {
1339
+ toReturn['type'] = this.type;
1340
+ }
1341
+ return toReturn;
1342
+ }
1343
+ }
1344
+ class ListConnectionsRequestFilters {
1345
+ static fromProto(proto) {
1346
+ let m = new ListConnectionsRequestFilters();
1347
+ m = Object.assign(m, proto);
1348
+ if (proto.namespace) {
1349
+ m.namespace = Namespace.fromProto(proto.namespace);
1350
+ }
1351
+ return m;
1352
+ }
1353
+ constructor(kwargs) {
1354
+ if (!kwargs) {
1355
+ return;
1356
+ }
1357
+ Object.assign(this, kwargs);
1358
+ }
1359
+ toApiJson() {
1360
+ const toReturn = {};
1361
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1362
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1363
+ }
1364
+ return toReturn;
1365
+ }
1366
+ }
1367
+ class ListAssistantRequestFilters {
1368
+ static fromProto(proto) {
1369
+ let m = new ListAssistantRequestFilters();
1370
+ m = Object.assign(m, proto);
1371
+ if (proto.namespace) {
1372
+ m.namespace = Namespace.fromProto(proto.namespace);
1373
+ }
1374
+ if (proto.type) {
1375
+ m.type = enumStringToValue(AssistantType, proto.type);
1376
+ }
1377
+ return m;
1378
+ }
1379
+ constructor(kwargs) {
1380
+ if (!kwargs) {
1381
+ return;
1382
+ }
1383
+ Object.assign(this, kwargs);
1384
+ }
1385
+ toApiJson() {
1386
+ const toReturn = {};
1387
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1388
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1389
+ }
1390
+ if (typeof this.type !== 'undefined') {
1391
+ toReturn['type'] = this.type;
1392
+ }
1393
+ return toReturn;
1394
+ }
1395
+ }
1396
+ class GenerateChatAnswerRequest {
1397
+ static fromProto(proto) {
1398
+ let m = new GenerateChatAnswerRequest();
1399
+ m = Object.assign(m, proto);
1400
+ if (proto.connectionKey) {
1401
+ m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
1402
+ }
1403
+ if (proto.chatHistory) {
1404
+ m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
1405
+ }
1406
+ if (proto.chatUserInfo) {
1407
+ m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
1408
+ }
1409
+ if (proto.chatChannel) {
1410
+ m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
1411
+ }
1412
+ if (proto.options) {
1413
+ m.options = GenerateChatAnswerRequestOptions.fromProto(proto.options);
1414
+ }
1415
+ return m;
1416
+ }
1417
+ constructor(kwargs) {
1418
+ if (!kwargs) {
1419
+ return;
1420
+ }
1421
+ Object.assign(this, kwargs);
1422
+ }
1423
+ toApiJson() {
1424
+ const toReturn = {};
1425
+ if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
1426
+ toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
1427
+ }
1428
+ if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
1429
+ toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
1430
+ }
1431
+ if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
1432
+ toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
1433
+ }
1434
+ if (typeof this.chatChannel !== 'undefined') {
1435
+ toReturn['chatChannel'] = this.chatChannel;
1436
+ }
1437
+ if (typeof this.options !== 'undefined' && this.options !== null) {
1438
+ toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
1439
+ }
1440
+ return toReturn;
1441
+ }
1442
+ }
1443
+ class GenerateChatAnswerResponse {
1444
+ static fromProto(proto) {
1445
+ let m = new GenerateChatAnswerResponse();
1446
+ m = Object.assign(m, proto);
1447
+ if (proto.metadata) {
1448
+ m.metadata = proto.metadata.map(KeyValuePair.fromProto);
1449
+ }
1450
+ return m;
1451
+ }
1452
+ constructor(kwargs) {
1453
+ if (!kwargs) {
1454
+ return;
1455
+ }
1456
+ Object.assign(this, kwargs);
1457
+ }
1458
+ toApiJson() {
1459
+ const toReturn = {};
1460
+ if (typeof this.answer !== 'undefined') {
1461
+ toReturn['answer'] = this.answer;
1462
+ }
1463
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1464
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1465
+ }
1466
+ if (typeof this.pendingJobId !== 'undefined') {
1467
+ toReturn['pendingJobId'] = this.pendingJobId;
1468
+ }
1469
+ return toReturn;
1470
+ }
1471
+ }
1472
+ class GetAssistantRequest {
1473
+ static fromProto(proto) {
1474
+ let m = new GetAssistantRequest();
1475
+ m = Object.assign(m, proto);
1476
+ if (proto.namespace) {
1477
+ m.namespace = Namespace.fromProto(proto.namespace);
1478
+ }
1479
+ return m;
1480
+ }
1481
+ constructor(kwargs) {
1482
+ if (!kwargs) {
1483
+ return;
1484
+ }
1485
+ Object.assign(this, kwargs);
1486
+ }
1487
+ toApiJson() {
1488
+ const toReturn = {};
1489
+ if (typeof this.id !== 'undefined') {
1490
+ toReturn['id'] = this.id;
1491
+ }
1492
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1493
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1494
+ }
1495
+ return toReturn;
1496
+ }
1497
+ }
1498
+ class GetAssistantResponse {
1499
+ static fromProto(proto) {
1500
+ let m = new GetAssistantResponse();
1501
+ m = Object.assign(m, proto);
1502
+ if (proto.assistant) {
1503
+ m.assistant = Assistant.fromProto(proto.assistant);
1504
+ }
1505
+ return m;
1506
+ }
1507
+ constructor(kwargs) {
1508
+ if (!kwargs) {
1509
+ return;
1510
+ }
1511
+ Object.assign(this, kwargs);
1512
+ }
1513
+ toApiJson() {
1514
+ const toReturn = {};
1515
+ if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
1516
+ toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
1517
+ }
1518
+ return toReturn;
1519
+ }
1520
+ }
1521
+ class GetChatAnswerFunctionExecutionJobRequest {
1522
+ static fromProto(proto) {
1523
+ let m = new GetChatAnswerFunctionExecutionJobRequest();
1524
+ m = Object.assign(m, proto);
1525
+ return m;
1526
+ }
1527
+ constructor(kwargs) {
1528
+ if (!kwargs) {
1529
+ return;
1530
+ }
1531
+ Object.assign(this, kwargs);
1532
+ }
1533
+ toApiJson() {
1534
+ const toReturn = {};
1535
+ if (typeof this.id !== 'undefined') {
1536
+ toReturn['id'] = this.id;
1537
+ }
1538
+ return toReturn;
1539
+ }
1540
+ }
1541
+ class GetChatAnswerFunctionExecutionJobResponse {
1542
+ static fromProto(proto) {
1543
+ let m = new GetChatAnswerFunctionExecutionJobResponse();
1544
+ m = Object.assign(m, proto);
1545
+ if (proto.job) {
1546
+ m.job = ChatAnswerFunctionExecutionJob.fromProto(proto.job);
1547
+ }
1548
+ return m;
1549
+ }
1550
+ constructor(kwargs) {
1551
+ if (!kwargs) {
1552
+ return;
1553
+ }
1554
+ Object.assign(this, kwargs);
1555
+ }
1556
+ toApiJson() {
1557
+ const toReturn = {};
1558
+ if (typeof this.job !== 'undefined' && this.job !== null) {
1559
+ toReturn['job'] = 'toApiJson' in this.job ? this.job.toApiJson() : this.job;
1560
+ }
1561
+ return toReturn;
1562
+ }
1563
+ }
1564
+ class GetConnectionRequest {
1565
+ static fromProto(proto) {
1566
+ let m = new GetConnectionRequest();
1567
+ m = Object.assign(m, proto);
1568
+ if (proto.namespace) {
1569
+ m.namespace = Namespace.fromProto(proto.namespace);
1570
+ }
1571
+ return m;
1572
+ }
1573
+ constructor(kwargs) {
1574
+ if (!kwargs) {
1575
+ return;
1576
+ }
1577
+ Object.assign(this, kwargs);
1578
+ }
1579
+ toApiJson() {
1580
+ const toReturn = {};
1581
+ if (typeof this.id !== 'undefined') {
1582
+ toReturn['id'] = this.id;
1583
+ }
1584
+ if (typeof this.connectionType !== 'undefined') {
1585
+ toReturn['connectionType'] = this.connectionType;
1586
+ }
1587
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1588
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1589
+ }
1590
+ if (typeof this.includeAssistantKeys !== 'undefined') {
1591
+ toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1592
+ }
1593
+ return toReturn;
1594
+ }
1595
+ }
1596
+ class GetConnectionResponse {
1597
+ static fromProto(proto) {
1598
+ let m = new GetConnectionResponse();
1599
+ m = Object.assign(m, proto);
1600
+ if (proto.connection) {
1601
+ m.connection = Connection.fromProto(proto.connection);
1602
+ }
1603
+ return m;
1604
+ }
1605
+ constructor(kwargs) {
1606
+ if (!kwargs) {
1607
+ return;
1608
+ }
1609
+ Object.assign(this, kwargs);
1610
+ }
1611
+ toApiJson() {
1612
+ const toReturn = {};
1613
+ if (typeof this.connection !== 'undefined' && this.connection !== null) {
1614
+ toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
1615
+ }
1616
+ return toReturn;
1617
+ }
1618
+ }
1619
+ class GetDeployedPromptVersionRequest {
1620
+ static fromProto(proto) {
1621
+ let m = new GetDeployedPromptVersionRequest();
1622
+ m = Object.assign(m, proto);
1623
+ return m;
1624
+ }
1625
+ constructor(kwargs) {
1626
+ if (!kwargs) {
1627
+ return;
1628
+ }
1629
+ Object.assign(this, kwargs);
1630
+ }
1631
+ toApiJson() {
1632
+ const toReturn = {};
1633
+ if (typeof this.id !== 'undefined') {
1634
+ toReturn['id'] = this.id;
1635
+ }
1636
+ return toReturn;
1637
+ }
1638
+ }
1639
+ class GetDeployedPromptVersionResponse {
1640
+ static fromProto(proto) {
1641
+ let m = new GetDeployedPromptVersionResponse();
1642
+ m = Object.assign(m, proto);
1643
+ if (proto.prompt) {
1644
+ m.prompt = Prompt.fromProto(proto.prompt);
1645
+ }
1646
+ if (proto.deployedPromptVersion) {
1647
+ m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
1648
+ }
1649
+ return m;
1650
+ }
1651
+ constructor(kwargs) {
1652
+ if (!kwargs) {
1653
+ return;
1654
+ }
1655
+ Object.assign(this, kwargs);
1656
+ }
1657
+ toApiJson() {
1658
+ const toReturn = {};
1659
+ if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1660
+ toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
1661
+ }
1662
+ if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
1663
+ toReturn['deployedPromptVersion'] = 'toApiJson' in this.deployedPromptVersion ? this.deployedPromptVersion.toApiJson() : this.deployedPromptVersion;
718
1664
  }
719
1665
  return toReturn;
720
1666
  }
721
1667
  }
722
-
723
- function enumStringToValue(enumRef, value) {
724
- if (typeof value === 'number') {
725
- return value;
726
- }
727
- return enumRef[value];
728
- }
729
- class CreatePromptRequest {
1668
+ class GetGoalRequest {
730
1669
  static fromProto(proto) {
731
- let m = new CreatePromptRequest();
1670
+ let m = new GetGoalRequest();
732
1671
  m = Object.assign(m, proto);
1672
+ if (proto.namespace) {
1673
+ m.namespace = Namespace.fromProto(proto.namespace);
1674
+ }
733
1675
  return m;
734
1676
  }
735
1677
  constructor(kwargs) {
@@ -743,18 +1685,18 @@ class CreatePromptRequest {
743
1685
  if (typeof this.id !== 'undefined') {
744
1686
  toReturn['id'] = this.id;
745
1687
  }
746
- if (typeof this.content !== 'undefined') {
747
- toReturn['content'] = this.content;
1688
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1689
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
748
1690
  }
749
1691
  return toReturn;
750
1692
  }
751
1693
  }
752
- class DeleteAssistantRequest {
1694
+ class GetGoalResponse {
753
1695
  static fromProto(proto) {
754
- let m = new DeleteAssistantRequest();
1696
+ let m = new GetGoalResponse();
755
1697
  m = Object.assign(m, proto);
756
- if (proto.namespace) {
757
- m.namespace = Namespace.fromProto(proto.namespace);
1698
+ if (proto.goal) {
1699
+ m.goal = Goal.fromProto(proto.goal);
758
1700
  }
759
1701
  return m;
760
1702
  }
@@ -766,22 +1708,22 @@ class DeleteAssistantRequest {
766
1708
  }
767
1709
  toApiJson() {
768
1710
  const toReturn = {};
769
- if (typeof this.id !== 'undefined') {
770
- toReturn['id'] = this.id;
771
- }
772
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
773
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1711
+ if (typeof this.goal !== 'undefined' && this.goal !== null) {
1712
+ toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
774
1713
  }
775
1714
  return toReturn;
776
1715
  }
777
1716
  }
778
- class DeleteConnectionRequest {
1717
+ class GetHydratedDeployedPromptModuleVersionRequest {
779
1718
  static fromProto(proto) {
780
- let m = new DeleteConnectionRequest();
1719
+ let m = new GetHydratedDeployedPromptModuleVersionRequest();
781
1720
  m = Object.assign(m, proto);
782
1721
  if (proto.namespace) {
783
1722
  m.namespace = Namespace.fromProto(proto.namespace);
784
1723
  }
1724
+ if (proto.variables) {
1725
+ m.variables = proto.variables.map(KeyValuePair.fromProto);
1726
+ }
785
1727
  return m;
786
1728
  }
787
1729
  constructor(kwargs) {
@@ -795,18 +1737,18 @@ class DeleteConnectionRequest {
795
1737
  if (typeof this.id !== 'undefined') {
796
1738
  toReturn['id'] = this.id;
797
1739
  }
798
- if (typeof this.connectionType !== 'undefined') {
799
- toReturn['connectionType'] = this.connectionType;
800
- }
801
1740
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
802
1741
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
803
1742
  }
1743
+ if (typeof this.variables !== 'undefined' && this.variables !== null) {
1744
+ toReturn['variables'] = 'toApiJson' in this.variables ? this.variables.toApiJson() : this.variables;
1745
+ }
804
1746
  return toReturn;
805
1747
  }
806
1748
  }
807
- class DeletePromptRequest {
1749
+ class GetHydratedDeployedPromptModuleVersionResponse {
808
1750
  static fromProto(proto) {
809
- let m = new DeletePromptRequest();
1751
+ let m = new GetHydratedDeployedPromptModuleVersionResponse();
810
1752
  m = Object.assign(m, proto);
811
1753
  return m;
812
1754
  }
@@ -818,15 +1760,15 @@ class DeletePromptRequest {
818
1760
  }
819
1761
  toApiJson() {
820
1762
  const toReturn = {};
821
- if (typeof this.id !== 'undefined') {
822
- toReturn['id'] = this.id;
1763
+ if (typeof this.content !== 'undefined') {
1764
+ toReturn['content'] = this.content;
823
1765
  }
824
1766
  return toReturn;
825
1767
  }
826
1768
  }
827
- class DeployPromptRequest {
1769
+ class GetMultiDeployedPromptVersionRequest {
828
1770
  static fromProto(proto) {
829
- let m = new DeployPromptRequest();
1771
+ let m = new GetMultiDeployedPromptVersionRequest();
830
1772
  m = Object.assign(m, proto);
831
1773
  return m;
832
1774
  }
@@ -838,24 +1780,21 @@ class DeployPromptRequest {
838
1780
  }
839
1781
  toApiJson() {
840
1782
  const toReturn = {};
841
- if (typeof this.id !== 'undefined') {
842
- toReturn['id'] = this.id;
843
- }
844
- if (typeof this.version !== 'undefined') {
845
- toReturn['version'] = this.version;
1783
+ if (typeof this.ids !== 'undefined') {
1784
+ toReturn['ids'] = this.ids;
846
1785
  }
847
1786
  return toReturn;
848
1787
  }
849
1788
  }
850
- class ListAssistantRequestFilters {
1789
+ class GetMultiDeployedPromptVersionResponse {
851
1790
  static fromProto(proto) {
852
- let m = new ListAssistantRequestFilters();
1791
+ let m = new GetMultiDeployedPromptVersionResponse();
853
1792
  m = Object.assign(m, proto);
854
- if (proto.namespace) {
855
- m.namespace = Namespace.fromProto(proto.namespace);
1793
+ if (proto.prompts) {
1794
+ m.prompts = proto.prompts.map(Prompt.fromProto);
856
1795
  }
857
- if (proto.type) {
858
- m.type = enumStringToValue(AssistantType, proto.type);
1796
+ if (proto.deployedPromptVersions) {
1797
+ m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
859
1798
  }
860
1799
  return m;
861
1800
  }
@@ -867,21 +1806,21 @@ class ListAssistantRequestFilters {
867
1806
  }
868
1807
  toApiJson() {
869
1808
  const toReturn = {};
870
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
871
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1809
+ if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
1810
+ toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
872
1811
  }
873
- if (typeof this.type !== 'undefined') {
874
- toReturn['type'] = this.type;
1812
+ if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
1813
+ toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
875
1814
  }
876
1815
  return toReturn;
877
1816
  }
878
1817
  }
879
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
1818
+ class GetMultiGoalRequest {
880
1819
  static fromProto(proto) {
881
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
1820
+ let m = new GetMultiGoalRequest();
882
1821
  m = Object.assign(m, proto);
883
- if (proto.type) {
884
- m.type = enumStringToValue(AssistantType, proto.type);
1822
+ if (proto.keys) {
1823
+ m.keys = proto.keys.map(GoalKey.fromProto);
885
1824
  }
886
1825
  return m;
887
1826
  }
@@ -893,18 +1832,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
893
1832
  }
894
1833
  toApiJson() {
895
1834
  const toReturn = {};
896
- if (typeof this.type !== 'undefined') {
897
- toReturn['type'] = this.type;
1835
+ if (typeof this.keys !== 'undefined' && this.keys !== null) {
1836
+ toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;
898
1837
  }
899
1838
  return toReturn;
900
1839
  }
901
1840
  }
902
- class ListConnectionsRequestFilters {
1841
+ class GetMultiGoalResponse {
903
1842
  static fromProto(proto) {
904
- let m = new ListConnectionsRequestFilters();
1843
+ let m = new GetMultiGoalResponse();
905
1844
  m = Object.assign(m, proto);
906
- if (proto.namespace) {
907
- m.namespace = Namespace.fromProto(proto.namespace);
1845
+ if (proto.goals) {
1846
+ m.goals = proto.goals.map(Goal.fromProto);
908
1847
  }
909
1848
  return m;
910
1849
  }
@@ -916,30 +1855,21 @@ class ListConnectionsRequestFilters {
916
1855
  }
917
1856
  toApiJson() {
918
1857
  const toReturn = {};
919
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
920
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1858
+ if (typeof this.goals !== 'undefined' && this.goals !== null) {
1859
+ toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
921
1860
  }
922
1861
  return toReturn;
923
1862
  }
924
1863
  }
925
- class GenerateChatAnswerRequest {
1864
+ class GetMultiHydratedDeployedPromptModuleVersionRequest {
926
1865
  static fromProto(proto) {
927
- let m = new GenerateChatAnswerRequest();
1866
+ let m = new GetMultiHydratedDeployedPromptModuleVersionRequest();
928
1867
  m = Object.assign(m, proto);
929
- if (proto.connectionKey) {
930
- m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
931
- }
932
- if (proto.chatHistory) {
933
- m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
934
- }
935
- if (proto.chatUserInfo) {
936
- m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
937
- }
938
- if (proto.chatChannel) {
939
- m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
1868
+ if (proto.keys) {
1869
+ m.keys = proto.keys.map(PromptModuleKey.fromProto);
940
1870
  }
941
- if (proto.options) {
942
- m.options = GenerateChatAnswerRequestOptions.fromProto(proto.options);
1871
+ if (proto.variables) {
1872
+ m.variables = proto.variables.map(KeyValuePair.fromProto);
943
1873
  }
944
1874
  return m;
945
1875
  }
@@ -951,31 +1881,19 @@ class GenerateChatAnswerRequest {
951
1881
  }
952
1882
  toApiJson() {
953
1883
  const toReturn = {};
954
- if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
955
- toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
956
- }
957
- if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
958
- toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
959
- }
960
- if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
961
- toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
1884
+ if (typeof this.keys !== 'undefined' && this.keys !== null) {
1885
+ toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;
962
1886
  }
963
- if (typeof this.chatChannel !== 'undefined') {
964
- toReturn['chatChannel'] = this.chatChannel;
965
- }
966
- if (typeof this.options !== 'undefined' && this.options !== null) {
967
- toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
1887
+ if (typeof this.variables !== 'undefined' && this.variables !== null) {
1888
+ toReturn['variables'] = 'toApiJson' in this.variables ? this.variables.toApiJson() : this.variables;
968
1889
  }
969
1890
  return toReturn;
970
1891
  }
971
1892
  }
972
- class GenerateChatAnswerResponse {
1893
+ class GetMultiHydratedDeployedPromptModuleVersionResponse {
973
1894
  static fromProto(proto) {
974
- let m = new GenerateChatAnswerResponse();
1895
+ let m = new GetMultiHydratedDeployedPromptModuleVersionResponse();
975
1896
  m = Object.assign(m, proto);
976
- if (proto.metadata) {
977
- m.metadata = proto.metadata.map(KeyValuePair.fromProto);
978
- }
979
1897
  return m;
980
1898
  }
981
1899
  constructor(kwargs) {
@@ -986,21 +1904,15 @@ class GenerateChatAnswerResponse {
986
1904
  }
987
1905
  toApiJson() {
988
1906
  const toReturn = {};
989
- if (typeof this.answer !== 'undefined') {
990
- toReturn['answer'] = this.answer;
991
- }
992
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
993
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
994
- }
995
- if (typeof this.pendingJobId !== 'undefined') {
996
- toReturn['pendingJobId'] = this.pendingJobId;
1907
+ if (typeof this.contents !== 'undefined') {
1908
+ toReturn['contents'] = this.contents;
997
1909
  }
998
1910
  return toReturn;
999
1911
  }
1000
1912
  }
1001
- class GetAssistantRequest {
1913
+ class GetPromptModuleRequest {
1002
1914
  static fromProto(proto) {
1003
- let m = new GetAssistantRequest();
1915
+ let m = new GetPromptModuleRequest();
1004
1916
  m = Object.assign(m, proto);
1005
1917
  if (proto.namespace) {
1006
1918
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -1024,12 +1936,12 @@ class GetAssistantRequest {
1024
1936
  return toReturn;
1025
1937
  }
1026
1938
  }
1027
- class GetAssistantResponse {
1939
+ class GetPromptModuleResponse {
1028
1940
  static fromProto(proto) {
1029
- let m = new GetAssistantResponse();
1941
+ let m = new GetPromptModuleResponse();
1030
1942
  m = Object.assign(m, proto);
1031
- if (proto.assistant) {
1032
- m.assistant = Assistant.fromProto(proto.assistant);
1943
+ if (proto.promptModule) {
1944
+ m.promptModule = PromptModule.fromProto(proto.promptModule);
1033
1945
  }
1034
1946
  return m;
1035
1947
  }
@@ -1041,16 +1953,19 @@ class GetAssistantResponse {
1041
1953
  }
1042
1954
  toApiJson() {
1043
1955
  const toReturn = {};
1044
- if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
1045
- toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
1956
+ if (typeof this.promptModule !== 'undefined' && this.promptModule !== null) {
1957
+ toReturn['promptModule'] = 'toApiJson' in this.promptModule ? this.promptModule.toApiJson() : this.promptModule;
1046
1958
  }
1047
1959
  return toReturn;
1048
1960
  }
1049
1961
  }
1050
- class GetChatAnswerFunctionExecutionJobRequest {
1962
+ class GetPromptModuleVersionRequest {
1051
1963
  static fromProto(proto) {
1052
- let m = new GetChatAnswerFunctionExecutionJobRequest();
1964
+ let m = new GetPromptModuleVersionRequest();
1053
1965
  m = Object.assign(m, proto);
1966
+ if (proto.namespace) {
1967
+ m.namespace = Namespace.fromProto(proto.namespace);
1968
+ }
1054
1969
  return m;
1055
1970
  }
1056
1971
  constructor(kwargs) {
@@ -1064,15 +1979,21 @@ class GetChatAnswerFunctionExecutionJobRequest {
1064
1979
  if (typeof this.id !== 'undefined') {
1065
1980
  toReturn['id'] = this.id;
1066
1981
  }
1982
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1983
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1984
+ }
1985
+ if (typeof this.version !== 'undefined') {
1986
+ toReturn['version'] = this.version;
1987
+ }
1067
1988
  return toReturn;
1068
1989
  }
1069
1990
  }
1070
- class GetChatAnswerFunctionExecutionJobResponse {
1991
+ class GetPromptModuleVersionResponse {
1071
1992
  static fromProto(proto) {
1072
- let m = new GetChatAnswerFunctionExecutionJobResponse();
1993
+ let m = new GetPromptModuleVersionResponse();
1073
1994
  m = Object.assign(m, proto);
1074
- if (proto.job) {
1075
- m.job = ChatAnswerFunctionExecutionJob.fromProto(proto.job);
1995
+ if (proto.promptModuleVersion) {
1996
+ m.promptModuleVersion = PromptModuleVersion.fromProto(proto.promptModuleVersion);
1076
1997
  }
1077
1998
  return m;
1078
1999
  }
@@ -1084,19 +2005,16 @@ class GetChatAnswerFunctionExecutionJobResponse {
1084
2005
  }
1085
2006
  toApiJson() {
1086
2007
  const toReturn = {};
1087
- if (typeof this.job !== 'undefined' && this.job !== null) {
1088
- toReturn['job'] = 'toApiJson' in this.job ? this.job.toApiJson() : this.job;
2008
+ if (typeof this.promptModuleVersion !== 'undefined' && this.promptModuleVersion !== null) {
2009
+ toReturn['promptModuleVersion'] = 'toApiJson' in this.promptModuleVersion ? this.promptModuleVersion.toApiJson() : this.promptModuleVersion;
1089
2010
  }
1090
2011
  return toReturn;
1091
2012
  }
1092
2013
  }
1093
- class GetConnectionRequest {
2014
+ class GetPromptRequest {
1094
2015
  static fromProto(proto) {
1095
- let m = new GetConnectionRequest();
2016
+ let m = new GetPromptRequest();
1096
2017
  m = Object.assign(m, proto);
1097
- if (proto.namespace) {
1098
- m.namespace = Namespace.fromProto(proto.namespace);
1099
- }
1100
2018
  return m;
1101
2019
  }
1102
2020
  constructor(kwargs) {
@@ -1110,24 +2028,15 @@ class GetConnectionRequest {
1110
2028
  if (typeof this.id !== 'undefined') {
1111
2029
  toReturn['id'] = this.id;
1112
2030
  }
1113
- if (typeof this.connectionType !== 'undefined') {
1114
- toReturn['connectionType'] = this.connectionType;
1115
- }
1116
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1117
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1118
- }
1119
- if (typeof this.includeAssistantKeys !== 'undefined') {
1120
- toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1121
- }
1122
2031
  return toReturn;
1123
2032
  }
1124
2033
  }
1125
- class GetConnectionResponse {
2034
+ class GetPromptResponse {
1126
2035
  static fromProto(proto) {
1127
- let m = new GetConnectionResponse();
2036
+ let m = new GetPromptResponse();
1128
2037
  m = Object.assign(m, proto);
1129
- if (proto.connection) {
1130
- m.connection = Connection.fromProto(proto.connection);
2038
+ if (proto.prompt) {
2039
+ m.prompt = Prompt.fromProto(proto.prompt);
1131
2040
  }
1132
2041
  return m;
1133
2042
  }
@@ -1139,15 +2048,15 @@ class GetConnectionResponse {
1139
2048
  }
1140
2049
  toApiJson() {
1141
2050
  const toReturn = {};
1142
- if (typeof this.connection !== 'undefined' && this.connection !== null) {
1143
- toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
2051
+ if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
2052
+ toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
1144
2053
  }
1145
2054
  return toReturn;
1146
2055
  }
1147
2056
  }
1148
- class GetDeployedPromptVersionRequest {
2057
+ class GetPromptVersionRequest {
1149
2058
  static fromProto(proto) {
1150
- let m = new GetDeployedPromptVersionRequest();
2059
+ let m = new GetPromptVersionRequest();
1151
2060
  m = Object.assign(m, proto);
1152
2061
  return m;
1153
2062
  }
@@ -1162,18 +2071,18 @@ class GetDeployedPromptVersionRequest {
1162
2071
  if (typeof this.id !== 'undefined') {
1163
2072
  toReturn['id'] = this.id;
1164
2073
  }
2074
+ if (typeof this.version !== 'undefined') {
2075
+ toReturn['version'] = this.version;
2076
+ }
1165
2077
  return toReturn;
1166
2078
  }
1167
2079
  }
1168
- class GetDeployedPromptVersionResponse {
2080
+ class GetPromptVersionResponse {
1169
2081
  static fromProto(proto) {
1170
- let m = new GetDeployedPromptVersionResponse();
2082
+ let m = new GetPromptVersionResponse();
1171
2083
  m = Object.assign(m, proto);
1172
- if (proto.prompt) {
1173
- m.prompt = Prompt.fromProto(proto.prompt);
1174
- }
1175
- if (proto.deployedPromptVersion) {
1176
- m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
2084
+ if (proto.promptVersion) {
2085
+ m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
1177
2086
  }
1178
2087
  return m;
1179
2088
  }
@@ -1185,19 +2094,22 @@ class GetDeployedPromptVersionResponse {
1185
2094
  }
1186
2095
  toApiJson() {
1187
2096
  const toReturn = {};
1188
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1189
- toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
1190
- }
1191
- if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
1192
- toReturn['deployedPromptVersion'] = 'toApiJson' in this.deployedPromptVersion ? this.deployedPromptVersion.toApiJson() : this.deployedPromptVersion;
2097
+ if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
2098
+ toReturn['promptVersion'] = 'toApiJson' in this.promptVersion ? this.promptVersion.toApiJson() : this.promptVersion;
1193
2099
  }
1194
2100
  return toReturn;
1195
2101
  }
1196
2102
  }
1197
- class GetMultiDeployedPromptVersionRequest {
2103
+ class ListAllAssistantsAssociatedToConnectionRequest {
1198
2104
  static fromProto(proto) {
1199
- let m = new GetMultiDeployedPromptVersionRequest();
2105
+ let m = new ListAllAssistantsAssociatedToConnectionRequest();
1200
2106
  m = Object.assign(m, proto);
2107
+ if (proto.connectionKey) {
2108
+ m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
2109
+ }
2110
+ if (proto.filters) {
2111
+ m.filters = ListAllAssistantsAssociatedToConnectionRequestFilters.fromProto(proto.filters);
2112
+ }
1201
2113
  return m;
1202
2114
  }
1203
2115
  constructor(kwargs) {
@@ -1208,21 +2120,21 @@ class GetMultiDeployedPromptVersionRequest {
1208
2120
  }
1209
2121
  toApiJson() {
1210
2122
  const toReturn = {};
1211
- if (typeof this.ids !== 'undefined') {
1212
- toReturn['ids'] = this.ids;
2123
+ if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
2124
+ toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
2125
+ }
2126
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
2127
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
1213
2128
  }
1214
2129
  return toReturn;
1215
2130
  }
1216
2131
  }
1217
- class GetMultiDeployedPromptVersionResponse {
2132
+ class ListAllAssistantsAssociatedToConnectionResponse {
1218
2133
  static fromProto(proto) {
1219
- let m = new GetMultiDeployedPromptVersionResponse();
2134
+ let m = new ListAllAssistantsAssociatedToConnectionResponse();
1220
2135
  m = Object.assign(m, proto);
1221
- if (proto.prompts) {
1222
- m.prompts = proto.prompts.map(Prompt.fromProto);
1223
- }
1224
- if (proto.deployedPromptVersions) {
1225
- m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
2136
+ if (proto.assistants) {
2137
+ m.assistants = proto.assistants.map(Assistant.fromProto);
1226
2138
  }
1227
2139
  return m;
1228
2140
  }
@@ -1234,19 +2146,22 @@ class GetMultiDeployedPromptVersionResponse {
1234
2146
  }
1235
2147
  toApiJson() {
1236
2148
  const toReturn = {};
1237
- if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
1238
- toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
1239
- }
1240
- if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
1241
- toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
2149
+ if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
2150
+ toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
1242
2151
  }
1243
2152
  return toReturn;
1244
2153
  }
1245
2154
  }
1246
- class GetPromptRequest {
2155
+ class ListAssistantRequest {
1247
2156
  static fromProto(proto) {
1248
- let m = new GetPromptRequest();
2157
+ let m = new ListAssistantRequest();
1249
2158
  m = Object.assign(m, proto);
2159
+ if (proto.filters) {
2160
+ m.filters = ListAssistantRequestFilters.fromProto(proto.filters);
2161
+ }
2162
+ if (proto.pagingOptions) {
2163
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
2164
+ }
1250
2165
  return m;
1251
2166
  }
1252
2167
  constructor(kwargs) {
@@ -1257,18 +2172,24 @@ class GetPromptRequest {
1257
2172
  }
1258
2173
  toApiJson() {
1259
2174
  const toReturn = {};
1260
- if (typeof this.id !== 'undefined') {
1261
- toReturn['id'] = this.id;
2175
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
2176
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
2177
+ }
2178
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
2179
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1262
2180
  }
1263
2181
  return toReturn;
1264
2182
  }
1265
2183
  }
1266
- class GetPromptResponse {
2184
+ class ListAssistantResponse {
1267
2185
  static fromProto(proto) {
1268
- let m = new GetPromptResponse();
2186
+ let m = new ListAssistantResponse();
1269
2187
  m = Object.assign(m, proto);
1270
- if (proto.prompt) {
1271
- m.prompt = Prompt.fromProto(proto.prompt);
2188
+ if (proto.assistants) {
2189
+ m.assistants = proto.assistants.map(Assistant.fromProto);
2190
+ }
2191
+ if (proto.metadata) {
2192
+ m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
1272
2193
  }
1273
2194
  return m;
1274
2195
  }
@@ -1280,16 +2201,25 @@ class GetPromptResponse {
1280
2201
  }
1281
2202
  toApiJson() {
1282
2203
  const toReturn = {};
1283
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1284
- toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
2204
+ if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
2205
+ toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
2206
+ }
2207
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
2208
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1285
2209
  }
1286
2210
  return toReturn;
1287
2211
  }
1288
2212
  }
1289
- class GetPromptVersionRequest {
2213
+ class ListConnectionsRequest {
1290
2214
  static fromProto(proto) {
1291
- let m = new GetPromptVersionRequest();
2215
+ let m = new ListConnectionsRequest();
1292
2216
  m = Object.assign(m, proto);
2217
+ if (proto.filters) {
2218
+ m.filters = ListConnectionsRequestFilters.fromProto(proto.filters);
2219
+ }
2220
+ if (proto.pagingOptions) {
2221
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
2222
+ }
1293
2223
  return m;
1294
2224
  }
1295
2225
  constructor(kwargs) {
@@ -1300,21 +2230,27 @@ class GetPromptVersionRequest {
1300
2230
  }
1301
2231
  toApiJson() {
1302
2232
  const toReturn = {};
1303
- if (typeof this.id !== 'undefined') {
1304
- toReturn['id'] = this.id;
2233
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
2234
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
1305
2235
  }
1306
- if (typeof this.version !== 'undefined') {
1307
- toReturn['version'] = this.version;
2236
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
2237
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
2238
+ }
2239
+ if (typeof this.includeAssistantKeys !== 'undefined') {
2240
+ toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1308
2241
  }
1309
2242
  return toReturn;
1310
2243
  }
1311
2244
  }
1312
- class GetPromptVersionResponse {
2245
+ class ListConnectionsResponse {
1313
2246
  static fromProto(proto) {
1314
- let m = new GetPromptVersionResponse();
2247
+ let m = new ListConnectionsResponse();
1315
2248
  m = Object.assign(m, proto);
1316
- if (proto.promptVersion) {
1317
- m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
2249
+ if (proto.connections) {
2250
+ m.connections = proto.connections.map(Connection.fromProto);
2251
+ }
2252
+ if (proto.metadata) {
2253
+ m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
1318
2254
  }
1319
2255
  return m;
1320
2256
  }
@@ -1326,21 +2262,24 @@ class GetPromptVersionResponse {
1326
2262
  }
1327
2263
  toApiJson() {
1328
2264
  const toReturn = {};
1329
- if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
1330
- toReturn['promptVersion'] = 'toApiJson' in this.promptVersion ? this.promptVersion.toApiJson() : this.promptVersion;
2265
+ if (typeof this.connections !== 'undefined' && this.connections !== null) {
2266
+ toReturn['connections'] = 'toApiJson' in this.connections ? this.connections.toApiJson() : this.connections;
2267
+ }
2268
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
2269
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1331
2270
  }
1332
2271
  return toReturn;
1333
2272
  }
1334
2273
  }
1335
- class ListAllAssistantsAssociatedToConnectionRequest {
2274
+ class ListGoalsRequest {
1336
2275
  static fromProto(proto) {
1337
- let m = new ListAllAssistantsAssociatedToConnectionRequest();
2276
+ let m = new ListGoalsRequest();
1338
2277
  m = Object.assign(m, proto);
1339
- if (proto.connectionKey) {
1340
- m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
1341
- }
1342
2278
  if (proto.filters) {
1343
- m.filters = ListAllAssistantsAssociatedToConnectionRequestFilters.fromProto(proto.filters);
2279
+ m.filters = ListGoalsRequestFilters.fromProto(proto.filters);
2280
+ }
2281
+ if (proto.pagingOptions) {
2282
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
1344
2283
  }
1345
2284
  return m;
1346
2285
  }
@@ -1352,21 +2291,24 @@ class ListAllAssistantsAssociatedToConnectionRequest {
1352
2291
  }
1353
2292
  toApiJson() {
1354
2293
  const toReturn = {};
1355
- if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
1356
- toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
1357
- }
1358
2294
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
1359
2295
  toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
1360
2296
  }
2297
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
2298
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
2299
+ }
1361
2300
  return toReturn;
1362
2301
  }
1363
2302
  }
1364
- class ListAllAssistantsAssociatedToConnectionResponse {
2303
+ class ListGoalsResponse {
1365
2304
  static fromProto(proto) {
1366
- let m = new ListAllAssistantsAssociatedToConnectionResponse();
2305
+ let m = new ListGoalsResponse();
1367
2306
  m = Object.assign(m, proto);
1368
- if (proto.assistants) {
1369
- m.assistants = proto.assistants.map(Assistant.fromProto);
2307
+ if (proto.goals) {
2308
+ m.goals = proto.goals.map(Goal.fromProto);
2309
+ }
2310
+ if (proto.metadata) {
2311
+ m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
1370
2312
  }
1371
2313
  return m;
1372
2314
  }
@@ -1378,18 +2320,21 @@ class ListAllAssistantsAssociatedToConnectionResponse {
1378
2320
  }
1379
2321
  toApiJson() {
1380
2322
  const toReturn = {};
1381
- if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
1382
- toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
2323
+ if (typeof this.goals !== 'undefined' && this.goals !== null) {
2324
+ toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
2325
+ }
2326
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
2327
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1383
2328
  }
1384
2329
  return toReturn;
1385
2330
  }
1386
2331
  }
1387
- class ListAssistantRequest {
2332
+ class ListPromptModuleRequest {
1388
2333
  static fromProto(proto) {
1389
- let m = new ListAssistantRequest();
2334
+ let m = new ListPromptModuleRequest();
1390
2335
  m = Object.assign(m, proto);
1391
2336
  if (proto.filters) {
1392
- m.filters = ListAssistantRequestFilters.fromProto(proto.filters);
2337
+ m.filters = ListPromptModuleRequestFilters.fromProto(proto.filters);
1393
2338
  }
1394
2339
  if (proto.pagingOptions) {
1395
2340
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
@@ -1413,12 +2358,15 @@ class ListAssistantRequest {
1413
2358
  return toReturn;
1414
2359
  }
1415
2360
  }
1416
- class ListAssistantResponse {
2361
+ class ListPromptModuleResponse {
1417
2362
  static fromProto(proto) {
1418
- let m = new ListAssistantResponse();
2363
+ let m = new ListPromptModuleResponse();
1419
2364
  m = Object.assign(m, proto);
1420
- if (proto.assistants) {
1421
- m.assistants = proto.assistants.map(Assistant.fromProto);
2365
+ if (proto.promptModules) {
2366
+ m.promptModules = proto.promptModules.map(PromptModule.fromProto);
2367
+ }
2368
+ if (proto.deployedPromptModuleVersions) {
2369
+ m.deployedPromptModuleVersions = proto.deployedPromptModuleVersions.map(PromptModuleVersion.fromProto);
1422
2370
  }
1423
2371
  if (proto.metadata) {
1424
2372
  m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
@@ -1433,8 +2381,11 @@ class ListAssistantResponse {
1433
2381
  }
1434
2382
  toApiJson() {
1435
2383
  const toReturn = {};
1436
- if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
1437
- toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
2384
+ if (typeof this.promptModules !== 'undefined' && this.promptModules !== null) {
2385
+ toReturn['promptModules'] = 'toApiJson' in this.promptModules ? this.promptModules.toApiJson() : this.promptModules;
2386
+ }
2387
+ if (typeof this.deployedPromptModuleVersions !== 'undefined' && this.deployedPromptModuleVersions !== null) {
2388
+ toReturn['deployedPromptModuleVersions'] = 'toApiJson' in this.deployedPromptModuleVersions ? this.deployedPromptModuleVersions.toApiJson() : this.deployedPromptModuleVersions;
1438
2389
  }
1439
2390
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1440
2391
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
@@ -1442,12 +2393,12 @@ class ListAssistantResponse {
1442
2393
  return toReturn;
1443
2394
  }
1444
2395
  }
1445
- class ListConnectionsRequest {
2396
+ class ListPromptModuleVersionsRequest {
1446
2397
  static fromProto(proto) {
1447
- let m = new ListConnectionsRequest();
2398
+ let m = new ListPromptModuleVersionsRequest();
1448
2399
  m = Object.assign(m, proto);
1449
- if (proto.filters) {
1450
- m.filters = ListConnectionsRequestFilters.fromProto(proto.filters);
2400
+ if (proto.namespace) {
2401
+ m.namespace = Namespace.fromProto(proto.namespace);
1451
2402
  }
1452
2403
  if (proto.pagingOptions) {
1453
2404
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
@@ -1462,24 +2413,24 @@ class ListConnectionsRequest {
1462
2413
  }
1463
2414
  toApiJson() {
1464
2415
  const toReturn = {};
1465
- if (typeof this.filters !== 'undefined' && this.filters !== null) {
1466
- toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
2416
+ if (typeof this.id !== 'undefined') {
2417
+ toReturn['id'] = this.id;
2418
+ }
2419
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2420
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1467
2421
  }
1468
2422
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
1469
2423
  toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1470
2424
  }
1471
- if (typeof this.includeAssistantKeys !== 'undefined') {
1472
- toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1473
- }
1474
2425
  return toReturn;
1475
2426
  }
1476
2427
  }
1477
- class ListConnectionsResponse {
2428
+ class ListPromptModuleVersionsResponse {
1478
2429
  static fromProto(proto) {
1479
- let m = new ListConnectionsResponse();
2430
+ let m = new ListPromptModuleVersionsResponse();
1480
2431
  m = Object.assign(m, proto);
1481
- if (proto.connections) {
1482
- m.connections = proto.connections.map(Connection.fromProto);
2432
+ if (proto.promptModuleVersions) {
2433
+ m.promptModuleVersions = proto.promptModuleVersions.map(PromptModuleVersion.fromProto);
1483
2434
  }
1484
2435
  if (proto.metadata) {
1485
2436
  m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
@@ -1494,8 +2445,8 @@ class ListConnectionsResponse {
1494
2445
  }
1495
2446
  toApiJson() {
1496
2447
  const toReturn = {};
1497
- if (typeof this.connections !== 'undefined' && this.connections !== null) {
1498
- toReturn['connections'] = 'toApiJson' in this.connections ? this.connections.toApiJson() : this.connections;
2448
+ if (typeof this.promptModuleVersions !== 'undefined' && this.promptModuleVersions !== null) {
2449
+ toReturn['promptModuleVersions'] = 'toApiJson' in this.promptModuleVersions ? this.promptModuleVersions.toApiJson() : this.promptModuleVersions;
1499
2450
  }
1500
2451
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1501
2452
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
@@ -1639,6 +2590,64 @@ class GenerateChatAnswerRequestOptions {
1639
2590
  return toReturn;
1640
2591
  }
1641
2592
  }
2593
+ class SetAssistantConnectionsRequest {
2594
+ static fromProto(proto) {
2595
+ let m = new SetAssistantConnectionsRequest();
2596
+ m = Object.assign(m, proto);
2597
+ if (proto.associationStates) {
2598
+ m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
2599
+ }
2600
+ if (proto.assistantKey) {
2601
+ m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
2602
+ }
2603
+ return m;
2604
+ }
2605
+ constructor(kwargs) {
2606
+ if (!kwargs) {
2607
+ return;
2608
+ }
2609
+ Object.assign(this, kwargs);
2610
+ }
2611
+ toApiJson() {
2612
+ const toReturn = {};
2613
+ if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
2614
+ toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
2615
+ }
2616
+ if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
2617
+ toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
2618
+ }
2619
+ return toReturn;
2620
+ }
2621
+ }
2622
+ class UpdatePromptModuleRequest {
2623
+ static fromProto(proto) {
2624
+ let m = new UpdatePromptModuleRequest();
2625
+ m = Object.assign(m, proto);
2626
+ if (proto.namespace) {
2627
+ m.namespace = Namespace.fromProto(proto.namespace);
2628
+ }
2629
+ return m;
2630
+ }
2631
+ constructor(kwargs) {
2632
+ if (!kwargs) {
2633
+ return;
2634
+ }
2635
+ Object.assign(this, kwargs);
2636
+ }
2637
+ toApiJson() {
2638
+ const toReturn = {};
2639
+ if (typeof this.id !== 'undefined') {
2640
+ toReturn['id'] = this.id;
2641
+ }
2642
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2643
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2644
+ }
2645
+ if (typeof this.content !== 'undefined') {
2646
+ toReturn['content'] = this.content;
2647
+ }
2648
+ return toReturn;
2649
+ }
2650
+ }
1642
2651
  class UpdatePromptRequest {
1643
2652
  static fromProto(proto) {
1644
2653
  let m = new UpdatePromptRequest();
@@ -1659,6 +2668,9 @@ class UpdatePromptRequest {
1659
2668
  if (typeof this.content !== 'undefined') {
1660
2669
  toReturn['content'] = this.content;
1661
2670
  }
2671
+ if (typeof this.description !== 'undefined') {
2672
+ toReturn['description'] = this.description;
2673
+ }
1662
2674
  return toReturn;
1663
2675
  }
1664
2676
  }
@@ -1731,6 +2743,29 @@ class UpsertConnectionRequest {
1731
2743
  return toReturn;
1732
2744
  }
1733
2745
  }
2746
+ class UpsertGoalRequest {
2747
+ static fromProto(proto) {
2748
+ let m = new UpsertGoalRequest();
2749
+ m = Object.assign(m, proto);
2750
+ if (proto.goal) {
2751
+ m.goal = Goal.fromProto(proto.goal);
2752
+ }
2753
+ return m;
2754
+ }
2755
+ constructor(kwargs) {
2756
+ if (!kwargs) {
2757
+ return;
2758
+ }
2759
+ Object.assign(this, kwargs);
2760
+ }
2761
+ toApiJson() {
2762
+ const toReturn = {};
2763
+ if (typeof this.goal !== 'undefined' && this.goal !== null) {
2764
+ toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
2765
+ }
2766
+ return toReturn;
2767
+ }
2768
+ }
1734
2769
 
1735
2770
  // *********************************
1736
2771
  // Code generated by sdkgen
@@ -1793,6 +2828,10 @@ class AssistantApiService {
1793
2828
  return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetChatAnswerFunctionExecutionJob", request.toApiJson(), this.apiOptions())
1794
2829
  .pipe(map(resp => GetChatAnswerFunctionExecutionJobResponse.fromProto(resp)));
1795
2830
  }
2831
+ setAssistantConnections(r) {
2832
+ const request = (r.toApiJson) ? r : new SetAssistantConnectionsRequest(r);
2833
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/SetAssistantConnections", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2834
+ }
1796
2835
  }
1797
2836
  AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1798
2837
  AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
@@ -1847,6 +2886,131 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1847
2886
  args: [{ providedIn: 'root' }]
1848
2887
  }] });
1849
2888
 
2889
+ // *********************************
2890
+ // Code generated by sdkgen
2891
+ // DO NOT EDIT!.
2892
+ //
2893
+ // API Service.
2894
+ // *********************************
2895
+ class GoalApiService {
2896
+ constructor() {
2897
+ this.hostService = inject(HostService);
2898
+ this.http = inject(HttpClient);
2899
+ this._host = this.hostService.hostWithScheme;
2900
+ }
2901
+ apiOptions() {
2902
+ return {
2903
+ headers: new HttpHeaders({
2904
+ 'Content-Type': 'application/json'
2905
+ }),
2906
+ withCredentials: true
2907
+ };
2908
+ }
2909
+ upsert(r) {
2910
+ const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
2911
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2912
+ }
2913
+ get(r) {
2914
+ const request = (r.toApiJson) ? r : new GetGoalRequest(r);
2915
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
2916
+ .pipe(map(resp => GetGoalResponse.fromProto(resp)));
2917
+ }
2918
+ getMulti(r) {
2919
+ const request = (r.toApiJson) ? r : new GetMultiGoalRequest(r);
2920
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/GetMulti", request.toApiJson(), this.apiOptions())
2921
+ .pipe(map(resp => GetMultiGoalResponse.fromProto(resp)));
2922
+ }
2923
+ delete(r) {
2924
+ const request = (r.toApiJson) ? r : new DeleteGoalRequest(r);
2925
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2926
+ }
2927
+ list(r) {
2928
+ const request = (r.toApiJson) ? r : new ListGoalsRequest(r);
2929
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/List", request.toApiJson(), this.apiOptions())
2930
+ .pipe(map(resp => ListGoalsResponse.fromProto(resp)));
2931
+ }
2932
+ }
2933
+ GoalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2934
+ GoalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, providedIn: 'root' });
2935
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, decorators: [{
2936
+ type: Injectable,
2937
+ args: [{ providedIn: 'root' }]
2938
+ }] });
2939
+
2940
+ // *********************************
2941
+ // Code generated by sdkgen
2942
+ // DO NOT EDIT!.
2943
+ //
2944
+ // API Service.
2945
+ // *********************************
2946
+ class PromptModuleApiService {
2947
+ constructor() {
2948
+ this.hostService = inject(HostService);
2949
+ this.http = inject(HttpClient);
2950
+ this._host = this.hostService.hostWithScheme;
2951
+ }
2952
+ apiOptions() {
2953
+ return {
2954
+ headers: new HttpHeaders({
2955
+ 'Content-Type': 'application/json'
2956
+ }),
2957
+ withCredentials: true
2958
+ };
2959
+ }
2960
+ create(r) {
2961
+ const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
2962
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2963
+ }
2964
+ get(r) {
2965
+ const request = (r.toApiJson) ? r : new GetPromptModuleRequest(r);
2966
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Get", request.toApiJson(), this.apiOptions())
2967
+ .pipe(map(resp => GetPromptModuleResponse.fromProto(resp)));
2968
+ }
2969
+ getVersion(r) {
2970
+ const request = (r.toApiJson) ? r : new GetPromptModuleVersionRequest(r);
2971
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/GetVersion", request.toApiJson(), this.apiOptions())
2972
+ .pipe(map(resp => GetPromptModuleVersionResponse.fromProto(resp)));
2973
+ }
2974
+ getHydratedDeployedVersion(r) {
2975
+ const request = (r.toApiJson) ? r : new GetHydratedDeployedPromptModuleVersionRequest(r);
2976
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/GetHydratedDeployedVersion", request.toApiJson(), this.apiOptions())
2977
+ .pipe(map(resp => GetHydratedDeployedPromptModuleVersionResponse.fromProto(resp)));
2978
+ }
2979
+ getMultiHydratedDeployedVersion(r) {
2980
+ const request = (r.toApiJson) ? r : new GetMultiHydratedDeployedPromptModuleVersionRequest(r);
2981
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/GetMultiHydratedDeployedVersion", request.toApiJson(), this.apiOptions())
2982
+ .pipe(map(resp => GetMultiHydratedDeployedPromptModuleVersionResponse.fromProto(resp)));
2983
+ }
2984
+ update(r) {
2985
+ const request = (r.toApiJson) ? r : new UpdatePromptModuleRequest(r);
2986
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2987
+ }
2988
+ deploy(r) {
2989
+ const request = (r.toApiJson) ? r : new DeployPromptModuleRequest(r);
2990
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Deploy", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
2991
+ }
2992
+ list(r) {
2993
+ const request = (r.toApiJson) ? r : new ListPromptModuleRequest(r);
2994
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/List", request.toApiJson(), this.apiOptions())
2995
+ .pipe(map(resp => ListPromptModuleResponse.fromProto(resp)));
2996
+ }
2997
+ listVersions(r) {
2998
+ const request = (r.toApiJson) ? r : new ListPromptModuleVersionsRequest(r);
2999
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/ListVersions", request.toApiJson(), this.apiOptions())
3000
+ .pipe(map(resp => ListPromptModuleVersionsResponse.fromProto(resp)));
3001
+ }
3002
+ delete(r) {
3003
+ const request = (r.toApiJson) ? r : new DeletePromptModuleRequest(r);
3004
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3005
+ }
3006
+ }
3007
+ PromptModuleApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3008
+ PromptModuleApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, providedIn: 'root' });
3009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, decorators: [{
3010
+ type: Injectable,
3011
+ args: [{ providedIn: 'root' }]
3012
+ }] });
3013
+
1850
3014
  // *********************************
1851
3015
  // Code generated by sdkgen
1852
3016
  // DO NOT EDIT!.
@@ -1932,5 +3096,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1932
3096
  * Generated bundle index. Do not edit.
1933
3097
  */
1934
3098
 
1935
- export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, Connection, ConnectionApiService, ConnectionKey, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptVersion, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest };
3099
+ export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, FunctionKey, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalKey, GoalType, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertGoalRequest };
1936
3100
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map