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