@vendasta/ai-assistants 0.6.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 (41) hide show
  1. package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
  2. package/esm2020/lib/_internal/enums/goal.enum.mjs +14 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  4. package/esm2020/lib/_internal/goal.api.service.mjs +58 -0
  5. package/esm2020/lib/_internal/index.mjs +3 -1
  6. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/function.interface.mjs +2 -0
  9. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +2 -0
  10. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  11. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -7
  12. package/esm2020/lib/_internal/objects/api.mjs +768 -73
  13. package/esm2020/lib/_internal/objects/assistant.mjs +31 -1
  14. package/esm2020/lib/_internal/objects/function.mjs +34 -0
  15. package/esm2020/lib/_internal/objects/goal.mjs +96 -0
  16. package/esm2020/lib/_internal/objects/index.mjs +6 -4
  17. package/esm2020/lib/_internal/objects/prompt.mjs +119 -1
  18. package/esm2020/lib/_internal/prompt-module.api.service.mjs +81 -0
  19. package/fesm2015/vendasta-ai-assistants.mjs +1477 -372
  20. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  21. package/fesm2020/vendasta-ai-assistants.mjs +1477 -372
  22. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  23. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  24. package/lib/_internal/enums/goal.enum.d.ts +6 -0
  25. package/lib/_internal/enums/index.d.ts +1 -0
  26. package/lib/_internal/goal.api.service.d.ts +18 -0
  27. package/lib/_internal/index.d.ts +2 -0
  28. package/lib/_internal/interfaces/api.interface.d.ts +107 -3
  29. package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
  30. package/lib/_internal/interfaces/function.interface.d.ts +5 -0
  31. package/lib/_internal/interfaces/goal.interface.d.ts +19 -0
  32. package/lib/_internal/interfaces/index.d.ts +5 -3
  33. package/lib/_internal/interfaces/prompt.interface.d.ts +23 -0
  34. package/lib/_internal/objects/api.d.ts +189 -7
  35. package/lib/_internal/objects/assistant.d.ts +8 -0
  36. package/lib/_internal/objects/function.d.ts +10 -0
  37. package/lib/_internal/objects/goal.d.ts +27 -0
  38. package/lib/_internal/objects/index.d.ts +5 -3
  39. package/lib/_internal/objects/prompt.d.ts +32 -0
  40. package/lib/_internal/prompt-module.api.service.d.ts +23 -0
  41. 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
  }
@@ -718,19 +1004,646 @@ class PagedResponseMetadata {
718
1004
  return toReturn;
719
1005
  }
720
1006
  }
721
-
722
- function enumStringToValue(enumRef, value) {
723
- if (typeof value === 'number') {
724
- return value;
725
- }
726
- return enumRef[value];
727
- }
728
- class SetAssistantConnectionsRequestConnectionState {
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 {
729
1639
  static fromProto(proto) {
730
- let m = new SetAssistantConnectionsRequestConnectionState();
1640
+ let m = new GetDeployedPromptVersionResponse();
731
1641
  m = Object.assign(m, proto);
732
- if (proto.connectionKey) {
733
- m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
1642
+ if (proto.prompt) {
1643
+ m.prompt = Prompt.fromProto(proto.prompt);
1644
+ }
1645
+ if (proto.deployedPromptVersion) {
1646
+ m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
734
1647
  }
735
1648
  return m;
736
1649
  }
@@ -742,19 +1655,22 @@ class SetAssistantConnectionsRequestConnectionState {
742
1655
  }
743
1656
  toApiJson() {
744
1657
  const toReturn = {};
745
- if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
746
- toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
1658
+ if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1659
+ toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
747
1660
  }
748
- if (typeof this.isAssociated !== 'undefined') {
749
- toReturn['isAssociated'] = this.isAssociated;
1661
+ if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
1662
+ toReturn['deployedPromptVersion'] = 'toApiJson' in this.deployedPromptVersion ? this.deployedPromptVersion.toApiJson() : this.deployedPromptVersion;
750
1663
  }
751
1664
  return toReturn;
752
1665
  }
753
1666
  }
754
- class CreatePromptRequest {
1667
+ class GetGoalRequest {
755
1668
  static fromProto(proto) {
756
- let m = new CreatePromptRequest();
1669
+ let m = new GetGoalRequest();
757
1670
  m = Object.assign(m, proto);
1671
+ if (proto.namespace) {
1672
+ m.namespace = Namespace.fromProto(proto.namespace);
1673
+ }
758
1674
  return m;
759
1675
  }
760
1676
  constructor(kwargs) {
@@ -768,18 +1684,18 @@ class CreatePromptRequest {
768
1684
  if (typeof this.id !== 'undefined') {
769
1685
  toReturn['id'] = this.id;
770
1686
  }
771
- if (typeof this.content !== 'undefined') {
772
- 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;
773
1689
  }
774
1690
  return toReturn;
775
1691
  }
776
1692
  }
777
- class DeleteAssistantRequest {
1693
+ class GetGoalResponse {
778
1694
  static fromProto(proto) {
779
- let m = new DeleteAssistantRequest();
1695
+ let m = new GetGoalResponse();
780
1696
  m = Object.assign(m, proto);
781
- if (proto.namespace) {
782
- m.namespace = Namespace.fromProto(proto.namespace);
1697
+ if (proto.goal) {
1698
+ m.goal = Goal.fromProto(proto.goal);
783
1699
  }
784
1700
  return m;
785
1701
  }
@@ -791,22 +1707,22 @@ class DeleteAssistantRequest {
791
1707
  }
792
1708
  toApiJson() {
793
1709
  const toReturn = {};
794
- if (typeof this.id !== 'undefined') {
795
- toReturn['id'] = this.id;
796
- }
797
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
798
- 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;
799
1712
  }
800
1713
  return toReturn;
801
1714
  }
802
1715
  }
803
- class DeleteConnectionRequest {
1716
+ class GetHydratedDeployedPromptModuleVersionRequest {
804
1717
  static fromProto(proto) {
805
- let m = new DeleteConnectionRequest();
1718
+ let m = new GetHydratedDeployedPromptModuleVersionRequest();
806
1719
  m = Object.assign(m, proto);
807
1720
  if (proto.namespace) {
808
1721
  m.namespace = Namespace.fromProto(proto.namespace);
809
1722
  }
1723
+ if (proto.variables) {
1724
+ m.variables = proto.variables.map(KeyValuePair.fromProto);
1725
+ }
810
1726
  return m;
811
1727
  }
812
1728
  constructor(kwargs) {
@@ -820,18 +1736,18 @@ class DeleteConnectionRequest {
820
1736
  if (typeof this.id !== 'undefined') {
821
1737
  toReturn['id'] = this.id;
822
1738
  }
823
- if (typeof this.connectionType !== 'undefined') {
824
- toReturn['connectionType'] = this.connectionType;
825
- }
826
1739
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
827
1740
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
828
1741
  }
1742
+ if (typeof this.variables !== 'undefined' && this.variables !== null) {
1743
+ toReturn['variables'] = 'toApiJson' in this.variables ? this.variables.toApiJson() : this.variables;
1744
+ }
829
1745
  return toReturn;
830
1746
  }
831
1747
  }
832
- class DeletePromptRequest {
1748
+ class GetHydratedDeployedPromptModuleVersionResponse {
833
1749
  static fromProto(proto) {
834
- let m = new DeletePromptRequest();
1750
+ let m = new GetHydratedDeployedPromptModuleVersionResponse();
835
1751
  m = Object.assign(m, proto);
836
1752
  return m;
837
1753
  }
@@ -843,15 +1759,15 @@ class DeletePromptRequest {
843
1759
  }
844
1760
  toApiJson() {
845
1761
  const toReturn = {};
846
- if (typeof this.id !== 'undefined') {
847
- toReturn['id'] = this.id;
1762
+ if (typeof this.content !== 'undefined') {
1763
+ toReturn['content'] = this.content;
848
1764
  }
849
1765
  return toReturn;
850
1766
  }
851
1767
  }
852
- class DeployPromptRequest {
1768
+ class GetMultiDeployedPromptVersionRequest {
853
1769
  static fromProto(proto) {
854
- let m = new DeployPromptRequest();
1770
+ let m = new GetMultiDeployedPromptVersionRequest();
855
1771
  m = Object.assign(m, proto);
856
1772
  return m;
857
1773
  }
@@ -863,24 +1779,21 @@ class DeployPromptRequest {
863
1779
  }
864
1780
  toApiJson() {
865
1781
  const toReturn = {};
866
- if (typeof this.id !== 'undefined') {
867
- toReturn['id'] = this.id;
868
- }
869
- if (typeof this.version !== 'undefined') {
870
- toReturn['version'] = this.version;
1782
+ if (typeof this.ids !== 'undefined') {
1783
+ toReturn['ids'] = this.ids;
871
1784
  }
872
1785
  return toReturn;
873
1786
  }
874
1787
  }
875
- class ListAssistantRequestFilters {
1788
+ class GetMultiDeployedPromptVersionResponse {
876
1789
  static fromProto(proto) {
877
- let m = new ListAssistantRequestFilters();
1790
+ let m = new GetMultiDeployedPromptVersionResponse();
878
1791
  m = Object.assign(m, proto);
879
- if (proto.namespace) {
880
- m.namespace = Namespace.fromProto(proto.namespace);
1792
+ if (proto.prompts) {
1793
+ m.prompts = proto.prompts.map(Prompt.fromProto);
881
1794
  }
882
- if (proto.type) {
883
- m.type = enumStringToValue(AssistantType, proto.type);
1795
+ if (proto.deployedPromptVersions) {
1796
+ m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
884
1797
  }
885
1798
  return m;
886
1799
  }
@@ -892,21 +1805,21 @@ class ListAssistantRequestFilters {
892
1805
  }
893
1806
  toApiJson() {
894
1807
  const toReturn = {};
895
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
896
- 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;
897
1810
  }
898
- if (typeof this.type !== 'undefined') {
899
- 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;
900
1813
  }
901
1814
  return toReturn;
902
1815
  }
903
1816
  }
904
- class ListConnectionsRequestFilters {
1817
+ class GetMultiGoalRequest {
905
1818
  static fromProto(proto) {
906
- let m = new ListConnectionsRequestFilters();
1819
+ let m = new GetMultiGoalRequest();
907
1820
  m = Object.assign(m, proto);
908
- if (proto.namespace) {
909
- m.namespace = Namespace.fromProto(proto.namespace);
1821
+ if (proto.keys) {
1822
+ m.keys = proto.keys.map(GoalKey.fromProto);
910
1823
  }
911
1824
  return m;
912
1825
  }
@@ -918,18 +1831,18 @@ class ListConnectionsRequestFilters {
918
1831
  }
919
1832
  toApiJson() {
920
1833
  const toReturn = {};
921
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
922
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1834
+ if (typeof this.keys !== 'undefined' && this.keys !== null) {
1835
+ toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;
923
1836
  }
924
1837
  return toReturn;
925
1838
  }
926
1839
  }
927
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
1840
+ class GetMultiGoalResponse {
928
1841
  static fromProto(proto) {
929
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
1842
+ let m = new GetMultiGoalResponse();
930
1843
  m = Object.assign(m, proto);
931
- if (proto.type) {
932
- m.type = enumStringToValue(AssistantType, proto.type);
1844
+ if (proto.goals) {
1845
+ m.goals = proto.goals.map(Goal.fromProto);
933
1846
  }
934
1847
  return m;
935
1848
  }
@@ -941,30 +1854,21 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
941
1854
  }
942
1855
  toApiJson() {
943
1856
  const toReturn = {};
944
- if (typeof this.type !== 'undefined') {
945
- toReturn['type'] = this.type;
1857
+ if (typeof this.goals !== 'undefined' && this.goals !== null) {
1858
+ toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
946
1859
  }
947
1860
  return toReturn;
948
1861
  }
949
1862
  }
950
- class GenerateChatAnswerRequest {
1863
+ class GetMultiHydratedDeployedPromptModuleVersionRequest {
951
1864
  static fromProto(proto) {
952
- let m = new GenerateChatAnswerRequest();
1865
+ let m = new GetMultiHydratedDeployedPromptModuleVersionRequest();
953
1866
  m = Object.assign(m, proto);
954
- if (proto.connectionKey) {
955
- m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
956
- }
957
- if (proto.chatHistory) {
958
- m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
959
- }
960
- if (proto.chatUserInfo) {
961
- m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
962
- }
963
- if (proto.chatChannel) {
964
- m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
1867
+ if (proto.keys) {
1868
+ m.keys = proto.keys.map(PromptModuleKey.fromProto);
965
1869
  }
966
- if (proto.options) {
967
- m.options = GenerateChatAnswerRequestOptions.fromProto(proto.options);
1870
+ if (proto.variables) {
1871
+ m.variables = proto.variables.map(KeyValuePair.fromProto);
968
1872
  }
969
1873
  return m;
970
1874
  }
@@ -976,31 +1880,19 @@ class GenerateChatAnswerRequest {
976
1880
  }
977
1881
  toApiJson() {
978
1882
  const toReturn = {};
979
- if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
980
- toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
981
- }
982
- if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
983
- toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
984
- }
985
- if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
986
- toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
987
- }
988
- if (typeof this.chatChannel !== 'undefined') {
989
- toReturn['chatChannel'] = this.chatChannel;
1883
+ if (typeof this.keys !== 'undefined' && this.keys !== null) {
1884
+ toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;
990
1885
  }
991
- if (typeof this.options !== 'undefined' && this.options !== null) {
992
- 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;
993
1888
  }
994
1889
  return toReturn;
995
1890
  }
996
1891
  }
997
- class GenerateChatAnswerResponse {
1892
+ class GetMultiHydratedDeployedPromptModuleVersionResponse {
998
1893
  static fromProto(proto) {
999
- let m = new GenerateChatAnswerResponse();
1894
+ let m = new GetMultiHydratedDeployedPromptModuleVersionResponse();
1000
1895
  m = Object.assign(m, proto);
1001
- if (proto.metadata) {
1002
- m.metadata = proto.metadata.map(KeyValuePair.fromProto);
1003
- }
1004
1896
  return m;
1005
1897
  }
1006
1898
  constructor(kwargs) {
@@ -1011,21 +1903,15 @@ class GenerateChatAnswerResponse {
1011
1903
  }
1012
1904
  toApiJson() {
1013
1905
  const toReturn = {};
1014
- if (typeof this.answer !== 'undefined') {
1015
- toReturn['answer'] = this.answer;
1016
- }
1017
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1018
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1019
- }
1020
- if (typeof this.pendingJobId !== 'undefined') {
1021
- toReturn['pendingJobId'] = this.pendingJobId;
1906
+ if (typeof this.contents !== 'undefined') {
1907
+ toReturn['contents'] = this.contents;
1022
1908
  }
1023
1909
  return toReturn;
1024
1910
  }
1025
1911
  }
1026
- class GetAssistantRequest {
1912
+ class GetPromptModuleRequest {
1027
1913
  static fromProto(proto) {
1028
- let m = new GetAssistantRequest();
1914
+ let m = new GetPromptModuleRequest();
1029
1915
  m = Object.assign(m, proto);
1030
1916
  if (proto.namespace) {
1031
1917
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -1049,12 +1935,12 @@ class GetAssistantRequest {
1049
1935
  return toReturn;
1050
1936
  }
1051
1937
  }
1052
- class GetAssistantResponse {
1938
+ class GetPromptModuleResponse {
1053
1939
  static fromProto(proto) {
1054
- let m = new GetAssistantResponse();
1940
+ let m = new GetPromptModuleResponse();
1055
1941
  m = Object.assign(m, proto);
1056
- if (proto.assistant) {
1057
- m.assistant = Assistant.fromProto(proto.assistant);
1942
+ if (proto.promptModule) {
1943
+ m.promptModule = PromptModule.fromProto(proto.promptModule);
1058
1944
  }
1059
1945
  return m;
1060
1946
  }
@@ -1066,16 +1952,19 @@ class GetAssistantResponse {
1066
1952
  }
1067
1953
  toApiJson() {
1068
1954
  const toReturn = {};
1069
- if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
1070
- 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;
1071
1957
  }
1072
1958
  return toReturn;
1073
1959
  }
1074
1960
  }
1075
- class GetChatAnswerFunctionExecutionJobRequest {
1961
+ class GetPromptModuleVersionRequest {
1076
1962
  static fromProto(proto) {
1077
- let m = new GetChatAnswerFunctionExecutionJobRequest();
1963
+ let m = new GetPromptModuleVersionRequest();
1078
1964
  m = Object.assign(m, proto);
1965
+ if (proto.namespace) {
1966
+ m.namespace = Namespace.fromProto(proto.namespace);
1967
+ }
1079
1968
  return m;
1080
1969
  }
1081
1970
  constructor(kwargs) {
@@ -1089,15 +1978,21 @@ class GetChatAnswerFunctionExecutionJobRequest {
1089
1978
  if (typeof this.id !== 'undefined') {
1090
1979
  toReturn['id'] = this.id;
1091
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
+ }
1092
1987
  return toReturn;
1093
1988
  }
1094
1989
  }
1095
- class GetChatAnswerFunctionExecutionJobResponse {
1990
+ class GetPromptModuleVersionResponse {
1096
1991
  static fromProto(proto) {
1097
- let m = new GetChatAnswerFunctionExecutionJobResponse();
1992
+ let m = new GetPromptModuleVersionResponse();
1098
1993
  m = Object.assign(m, proto);
1099
- if (proto.job) {
1100
- m.job = ChatAnswerFunctionExecutionJob.fromProto(proto.job);
1994
+ if (proto.promptModuleVersion) {
1995
+ m.promptModuleVersion = PromptModuleVersion.fromProto(proto.promptModuleVersion);
1101
1996
  }
1102
1997
  return m;
1103
1998
  }
@@ -1109,19 +2004,16 @@ class GetChatAnswerFunctionExecutionJobResponse {
1109
2004
  }
1110
2005
  toApiJson() {
1111
2006
  const toReturn = {};
1112
- if (typeof this.job !== 'undefined' && this.job !== null) {
1113
- 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;
1114
2009
  }
1115
2010
  return toReturn;
1116
2011
  }
1117
2012
  }
1118
- class GetConnectionRequest {
2013
+ class GetPromptRequest {
1119
2014
  static fromProto(proto) {
1120
- let m = new GetConnectionRequest();
2015
+ let m = new GetPromptRequest();
1121
2016
  m = Object.assign(m, proto);
1122
- if (proto.namespace) {
1123
- m.namespace = Namespace.fromProto(proto.namespace);
1124
- }
1125
2017
  return m;
1126
2018
  }
1127
2019
  constructor(kwargs) {
@@ -1135,24 +2027,15 @@ class GetConnectionRequest {
1135
2027
  if (typeof this.id !== 'undefined') {
1136
2028
  toReturn['id'] = this.id;
1137
2029
  }
1138
- if (typeof this.connectionType !== 'undefined') {
1139
- toReturn['connectionType'] = this.connectionType;
1140
- }
1141
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1142
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1143
- }
1144
- if (typeof this.includeAssistantKeys !== 'undefined') {
1145
- toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1146
- }
1147
2030
  return toReturn;
1148
2031
  }
1149
2032
  }
1150
- class GetConnectionResponse {
2033
+ class GetPromptResponse {
1151
2034
  static fromProto(proto) {
1152
- let m = new GetConnectionResponse();
2035
+ let m = new GetPromptResponse();
1153
2036
  m = Object.assign(m, proto);
1154
- if (proto.connection) {
1155
- m.connection = Connection.fromProto(proto.connection);
2037
+ if (proto.prompt) {
2038
+ m.prompt = Prompt.fromProto(proto.prompt);
1156
2039
  }
1157
2040
  return m;
1158
2041
  }
@@ -1164,15 +2047,15 @@ class GetConnectionResponse {
1164
2047
  }
1165
2048
  toApiJson() {
1166
2049
  const toReturn = {};
1167
- if (typeof this.connection !== 'undefined' && this.connection !== null) {
1168
- 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;
1169
2052
  }
1170
2053
  return toReturn;
1171
2054
  }
1172
2055
  }
1173
- class GetDeployedPromptVersionRequest {
2056
+ class GetPromptVersionRequest {
1174
2057
  static fromProto(proto) {
1175
- let m = new GetDeployedPromptVersionRequest();
2058
+ let m = new GetPromptVersionRequest();
1176
2059
  m = Object.assign(m, proto);
1177
2060
  return m;
1178
2061
  }
@@ -1187,18 +2070,18 @@ class GetDeployedPromptVersionRequest {
1187
2070
  if (typeof this.id !== 'undefined') {
1188
2071
  toReturn['id'] = this.id;
1189
2072
  }
2073
+ if (typeof this.version !== 'undefined') {
2074
+ toReturn['version'] = this.version;
2075
+ }
1190
2076
  return toReturn;
1191
2077
  }
1192
2078
  }
1193
- class GetDeployedPromptVersionResponse {
2079
+ class GetPromptVersionResponse {
1194
2080
  static fromProto(proto) {
1195
- let m = new GetDeployedPromptVersionResponse();
2081
+ let m = new GetPromptVersionResponse();
1196
2082
  m = Object.assign(m, proto);
1197
- if (proto.prompt) {
1198
- m.prompt = Prompt.fromProto(proto.prompt);
1199
- }
1200
- if (proto.deployedPromptVersion) {
1201
- m.deployedPromptVersion = PromptVersion.fromProto(proto.deployedPromptVersion);
2083
+ if (proto.promptVersion) {
2084
+ m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
1202
2085
  }
1203
2086
  return m;
1204
2087
  }
@@ -1210,19 +2093,22 @@ class GetDeployedPromptVersionResponse {
1210
2093
  }
1211
2094
  toApiJson() {
1212
2095
  const toReturn = {};
1213
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1214
- toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
1215
- }
1216
- if (typeof this.deployedPromptVersion !== 'undefined' && this.deployedPromptVersion !== null) {
1217
- 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;
1218
2098
  }
1219
2099
  return toReturn;
1220
2100
  }
1221
2101
  }
1222
- class GetMultiDeployedPromptVersionRequest {
2102
+ class ListAllAssistantsAssociatedToConnectionRequest {
1223
2103
  static fromProto(proto) {
1224
- let m = new GetMultiDeployedPromptVersionRequest();
2104
+ let m = new ListAllAssistantsAssociatedToConnectionRequest();
1225
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
+ }
1226
2112
  return m;
1227
2113
  }
1228
2114
  constructor(kwargs) {
@@ -1233,21 +2119,21 @@ class GetMultiDeployedPromptVersionRequest {
1233
2119
  }
1234
2120
  toApiJson() {
1235
2121
  const toReturn = {};
1236
- if (typeof this.ids !== 'undefined') {
1237
- 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;
1238
2127
  }
1239
2128
  return toReturn;
1240
2129
  }
1241
2130
  }
1242
- class GetMultiDeployedPromptVersionResponse {
2131
+ class ListAllAssistantsAssociatedToConnectionResponse {
1243
2132
  static fromProto(proto) {
1244
- let m = new GetMultiDeployedPromptVersionResponse();
2133
+ let m = new ListAllAssistantsAssociatedToConnectionResponse();
1245
2134
  m = Object.assign(m, proto);
1246
- if (proto.prompts) {
1247
- m.prompts = proto.prompts.map(Prompt.fromProto);
1248
- }
1249
- if (proto.deployedPromptVersions) {
1250
- m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
2135
+ if (proto.assistants) {
2136
+ m.assistants = proto.assistants.map(Assistant.fromProto);
1251
2137
  }
1252
2138
  return m;
1253
2139
  }
@@ -1258,20 +2144,23 @@ class GetMultiDeployedPromptVersionResponse {
1258
2144
  Object.assign(this, kwargs);
1259
2145
  }
1260
2146
  toApiJson() {
1261
- const toReturn = {};
1262
- if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
1263
- toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
1264
- }
1265
- if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
1266
- toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
2147
+ const toReturn = {};
2148
+ if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
2149
+ toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
1267
2150
  }
1268
2151
  return toReturn;
1269
2152
  }
1270
2153
  }
1271
- class GetPromptRequest {
2154
+ class ListAssistantRequest {
1272
2155
  static fromProto(proto) {
1273
- let m = new GetPromptRequest();
2156
+ let m = new ListAssistantRequest();
1274
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
+ }
1275
2164
  return m;
1276
2165
  }
1277
2166
  constructor(kwargs) {
@@ -1282,18 +2171,24 @@ class GetPromptRequest {
1282
2171
  }
1283
2172
  toApiJson() {
1284
2173
  const toReturn = {};
1285
- if (typeof this.id !== 'undefined') {
1286
- 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;
1287
2179
  }
1288
2180
  return toReturn;
1289
2181
  }
1290
2182
  }
1291
- class GetPromptResponse {
2183
+ class ListAssistantResponse {
1292
2184
  static fromProto(proto) {
1293
- let m = new GetPromptResponse();
2185
+ let m = new ListAssistantResponse();
1294
2186
  m = Object.assign(m, proto);
1295
- if (proto.prompt) {
1296
- 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);
1297
2192
  }
1298
2193
  return m;
1299
2194
  }
@@ -1305,16 +2200,25 @@ class GetPromptResponse {
1305
2200
  }
1306
2201
  toApiJson() {
1307
2202
  const toReturn = {};
1308
- if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
1309
- 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;
1310
2208
  }
1311
2209
  return toReturn;
1312
2210
  }
1313
2211
  }
1314
- class GetPromptVersionRequest {
2212
+ class ListConnectionsRequest {
1315
2213
  static fromProto(proto) {
1316
- let m = new GetPromptVersionRequest();
2214
+ let m = new ListConnectionsRequest();
1317
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
+ }
1318
2222
  return m;
1319
2223
  }
1320
2224
  constructor(kwargs) {
@@ -1325,21 +2229,27 @@ class GetPromptVersionRequest {
1325
2229
  }
1326
2230
  toApiJson() {
1327
2231
  const toReturn = {};
1328
- if (typeof this.id !== 'undefined') {
1329
- 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;
1330
2234
  }
1331
- if (typeof this.version !== 'undefined') {
1332
- 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;
1333
2240
  }
1334
2241
  return toReturn;
1335
2242
  }
1336
2243
  }
1337
- class GetPromptVersionResponse {
2244
+ class ListConnectionsResponse {
1338
2245
  static fromProto(proto) {
1339
- let m = new GetPromptVersionResponse();
2246
+ let m = new ListConnectionsResponse();
1340
2247
  m = Object.assign(m, proto);
1341
- if (proto.promptVersion) {
1342
- 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);
1343
2253
  }
1344
2254
  return m;
1345
2255
  }
@@ -1351,21 +2261,24 @@ class GetPromptVersionResponse {
1351
2261
  }
1352
2262
  toApiJson() {
1353
2263
  const toReturn = {};
1354
- if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
1355
- 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;
1356
2269
  }
1357
2270
  return toReturn;
1358
2271
  }
1359
2272
  }
1360
- class ListAllAssistantsAssociatedToConnectionRequest {
2273
+ class ListGoalsRequest {
1361
2274
  static fromProto(proto) {
1362
- let m = new ListAllAssistantsAssociatedToConnectionRequest();
2275
+ let m = new ListGoalsRequest();
1363
2276
  m = Object.assign(m, proto);
1364
- if (proto.connectionKey) {
1365
- m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
1366
- }
1367
2277
  if (proto.filters) {
1368
- 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);
1369
2282
  }
1370
2283
  return m;
1371
2284
  }
@@ -1377,21 +2290,24 @@ class ListAllAssistantsAssociatedToConnectionRequest {
1377
2290
  }
1378
2291
  toApiJson() {
1379
2292
  const toReturn = {};
1380
- if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
1381
- toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
1382
- }
1383
2293
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
1384
2294
  toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
1385
2295
  }
2296
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
2297
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
2298
+ }
1386
2299
  return toReturn;
1387
2300
  }
1388
2301
  }
1389
- class ListAllAssistantsAssociatedToConnectionResponse {
2302
+ class ListGoalsResponse {
1390
2303
  static fromProto(proto) {
1391
- let m = new ListAllAssistantsAssociatedToConnectionResponse();
2304
+ let m = new ListGoalsResponse();
1392
2305
  m = Object.assign(m, proto);
1393
- if (proto.assistants) {
1394
- 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);
1395
2311
  }
1396
2312
  return m;
1397
2313
  }
@@ -1403,18 +2319,21 @@ class ListAllAssistantsAssociatedToConnectionResponse {
1403
2319
  }
1404
2320
  toApiJson() {
1405
2321
  const toReturn = {};
1406
- if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
1407
- 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;
1408
2327
  }
1409
2328
  return toReturn;
1410
2329
  }
1411
2330
  }
1412
- class ListAssistantRequest {
2331
+ class ListPromptModuleRequest {
1413
2332
  static fromProto(proto) {
1414
- let m = new ListAssistantRequest();
2333
+ let m = new ListPromptModuleRequest();
1415
2334
  m = Object.assign(m, proto);
1416
2335
  if (proto.filters) {
1417
- m.filters = ListAssistantRequestFilters.fromProto(proto.filters);
2336
+ m.filters = ListPromptModuleRequestFilters.fromProto(proto.filters);
1418
2337
  }
1419
2338
  if (proto.pagingOptions) {
1420
2339
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
@@ -1438,12 +2357,15 @@ class ListAssistantRequest {
1438
2357
  return toReturn;
1439
2358
  }
1440
2359
  }
1441
- class ListAssistantResponse {
2360
+ class ListPromptModuleResponse {
1442
2361
  static fromProto(proto) {
1443
- let m = new ListAssistantResponse();
2362
+ let m = new ListPromptModuleResponse();
1444
2363
  m = Object.assign(m, proto);
1445
- if (proto.assistants) {
1446
- 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);
1447
2369
  }
1448
2370
  if (proto.metadata) {
1449
2371
  m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
@@ -1458,8 +2380,11 @@ class ListAssistantResponse {
1458
2380
  }
1459
2381
  toApiJson() {
1460
2382
  const toReturn = {};
1461
- if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
1462
- 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;
1463
2388
  }
1464
2389
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1465
2390
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
@@ -1467,12 +2392,12 @@ class ListAssistantResponse {
1467
2392
  return toReturn;
1468
2393
  }
1469
2394
  }
1470
- class ListConnectionsRequest {
2395
+ class ListPromptModuleVersionsRequest {
1471
2396
  static fromProto(proto) {
1472
- let m = new ListConnectionsRequest();
2397
+ let m = new ListPromptModuleVersionsRequest();
1473
2398
  m = Object.assign(m, proto);
1474
- if (proto.filters) {
1475
- m.filters = ListConnectionsRequestFilters.fromProto(proto.filters);
2399
+ if (proto.namespace) {
2400
+ m.namespace = Namespace.fromProto(proto.namespace);
1476
2401
  }
1477
2402
  if (proto.pagingOptions) {
1478
2403
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
@@ -1487,24 +2412,24 @@ class ListConnectionsRequest {
1487
2412
  }
1488
2413
  toApiJson() {
1489
2414
  const toReturn = {};
1490
- if (typeof this.filters !== 'undefined' && this.filters !== null) {
1491
- 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;
1492
2420
  }
1493
2421
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
1494
2422
  toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1495
2423
  }
1496
- if (typeof this.includeAssistantKeys !== 'undefined') {
1497
- toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
1498
- }
1499
2424
  return toReturn;
1500
2425
  }
1501
2426
  }
1502
- class ListConnectionsResponse {
2427
+ class ListPromptModuleVersionsResponse {
1503
2428
  static fromProto(proto) {
1504
- let m = new ListConnectionsResponse();
2429
+ let m = new ListPromptModuleVersionsResponse();
1505
2430
  m = Object.assign(m, proto);
1506
- if (proto.connections) {
1507
- m.connections = proto.connections.map(Connection.fromProto);
2431
+ if (proto.promptModuleVersions) {
2432
+ m.promptModuleVersions = proto.promptModuleVersions.map(PromptModuleVersion.fromProto);
1508
2433
  }
1509
2434
  if (proto.metadata) {
1510
2435
  m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
@@ -1519,8 +2444,8 @@ class ListConnectionsResponse {
1519
2444
  }
1520
2445
  toApiJson() {
1521
2446
  const toReturn = {};
1522
- if (typeof this.connections !== 'undefined' && this.connections !== null) {
1523
- 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;
1524
2449
  }
1525
2450
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1526
2451
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
@@ -1693,6 +2618,35 @@ class SetAssistantConnectionsRequest {
1693
2618
  return toReturn;
1694
2619
  }
1695
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
+ }
1696
2650
  class UpdatePromptRequest {
1697
2651
  static fromProto(proto) {
1698
2652
  let m = new UpdatePromptRequest();
@@ -1713,6 +2667,9 @@ class UpdatePromptRequest {
1713
2667
  if (typeof this.content !== 'undefined') {
1714
2668
  toReturn['content'] = this.content;
1715
2669
  }
2670
+ if (typeof this.description !== 'undefined') {
2671
+ toReturn['description'] = this.description;
2672
+ }
1716
2673
  return toReturn;
1717
2674
  }
1718
2675
  }
@@ -1785,6 +2742,29 @@ class UpsertConnectionRequest {
1785
2742
  return toReturn;
1786
2743
  }
1787
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
+ }
1788
2768
 
1789
2769
  // *********************************
1790
2770
  // Code generated by sdkgen
@@ -1905,6 +2885,131 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1905
2885
  args: [{ providedIn: 'root' }]
1906
2886
  }] });
1907
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
+
1908
3013
  // *********************************
1909
3014
  // Code generated by sdkgen
1910
3015
  // DO NOT EDIT!.
@@ -1990,5 +3095,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1990
3095
  * Generated bundle index. Do not edit.
1991
3096
  */
1992
3097
 
1993
- 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, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, 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 };
1994
3099
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map