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