@vendasta/ai-assistants 0.1.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/_generated/host.service.mjs +25 -0
- package/esm2020/lib/_generated/index.mjs +2 -0
- package/esm2020/lib/_internal/assistant.api.service.mjs +64 -0
- package/esm2020/lib/_internal/connection.api.service.mjs +53 -0
- package/esm2020/lib/_internal/enums/answer.enum.mjs +27 -0
- package/esm2020/lib/_internal/enums/assistant.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/index.mjs +9 -0
- package/esm2020/lib/_internal/index.mjs +13 -0
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/common.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/connection.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/paging.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/answer.mjs +140 -0
- package/esm2020/lib/_internal/objects/api.mjs +841 -0
- package/esm2020/lib/_internal/objects/assistant.mjs +99 -0
- package/esm2020/lib/_internal/objects/common.mjs +30 -0
- package/esm2020/lib/_internal/objects/connection.mjs +78 -0
- package/esm2020/lib/_internal/objects/index.mjs +16 -0
- package/esm2020/lib/_internal/objects/namespace.mjs +102 -0
- package/esm2020/lib/_internal/objects/paging.mjs +62 -0
- package/esm2020/lib/_internal/objects/prompt.mjs +74 -0
- package/esm2020/lib/_internal/prompt.api.service.mjs +71 -0
- package/esm2020/lib/index.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-ai-assistants.mjs +5 -0
- package/fesm2015/vendasta-ai-assistants.mjs +1707 -0
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -0
- package/fesm2020/vendasta-ai-assistants.mjs +1706 -0
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/_generated/host.service.d.ts +7 -0
- package/lib/_generated/index.d.ts +1 -0
- package/lib/_internal/assistant.api.service.d.ts +19 -0
- package/lib/_internal/connection.api.service.d.ts +17 -0
- package/lib/_internal/enums/answer.enum.d.ts +17 -0
- package/lib/_internal/enums/assistant.enum.d.ts +6 -0
- package/lib/_internal/enums/index.d.ts +2 -0
- package/lib/_internal/index.d.ts +6 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/answer.interface.d.ts +27 -0
- package/lib/_internal/interfaces/api.interface.d.ts +131 -0
- package/lib/_internal/interfaces/assistant.interface.d.ts +17 -0
- package/lib/_internal/interfaces/common.interface.d.ts +4 -0
- package/lib/_internal/interfaces/connection.interface.d.ts +15 -0
- package/lib/_internal/interfaces/index.d.ts +9 -0
- package/lib/_internal/interfaces/namespace.interface.d.ts +14 -0
- package/lib/_internal/interfaces/paging.interface.d.ts +9 -0
- package/lib/_internal/interfaces/prompt.interface.d.ts +13 -0
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/answer.d.ts +41 -0
- package/lib/_internal/objects/api.d.ts +229 -0
- package/lib/_internal/objects/assistant.d.ts +28 -0
- package/lib/_internal/objects/common.d.ts +9 -0
- package/lib/_internal/objects/connection.d.ts +23 -0
- package/lib/_internal/objects/index.d.ts +9 -0
- package/lib/_internal/objects/namespace.d.ts +28 -0
- package/lib/_internal/objects/paging.d.ts +17 -0
- package/lib/_internal/objects/prompt.d.ts +21 -0
- package/lib/_internal/prompt.api.service.d.ts +21 -0
- package/lib/index.d.ts +2 -0
- package/package.json +35 -0
- package/public_api.d.ts +1 -0
|
@@ -0,0 +1,1707 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
4
|
+
import { map } from 'rxjs/operators';
|
|
5
|
+
|
|
6
|
+
var _a;
|
|
7
|
+
const environment = (_a = (window ? window['environment'] : 'prod')) !== null && _a !== void 0 ? _a : 'prod';
|
|
8
|
+
const hostMap = {
|
|
9
|
+
'local': 'ai-assistants-api.vendasta-local.com',
|
|
10
|
+
'test': '',
|
|
11
|
+
'demo': 'ai-assistants-demo.apigateway.co',
|
|
12
|
+
'prod': 'ai-assistants-prod.apigateway.co',
|
|
13
|
+
'production': 'ai-assistants-prod.apigateway.co',
|
|
14
|
+
};
|
|
15
|
+
class HostService {
|
|
16
|
+
get host() {
|
|
17
|
+
return hostMap[environment.toLowerCase()];
|
|
18
|
+
}
|
|
19
|
+
get hostWithScheme() {
|
|
20
|
+
return 'https://' + this.host;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
26
|
+
type: Injectable,
|
|
27
|
+
args: [{ providedIn: 'root' }]
|
|
28
|
+
}] });
|
|
29
|
+
|
|
30
|
+
// *********************************
|
|
31
|
+
// Code generated by sdkgen
|
|
32
|
+
// DO NOT EDIT!.
|
|
33
|
+
//
|
|
34
|
+
// Enums.
|
|
35
|
+
// *********************************
|
|
36
|
+
var AssistantType;
|
|
37
|
+
(function (AssistantType) {
|
|
38
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_UNSPECIFIED"] = 0] = "ASSISTANT_TYPE_UNSPECIFIED";
|
|
39
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_SYSTEM"] = 1] = "ASSISTANT_TYPE_SYSTEM";
|
|
40
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_INBOX"] = 2] = "ASSISTANT_TYPE_INBOX";
|
|
41
|
+
AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
|
|
42
|
+
})(AssistantType || (AssistantType = {}));
|
|
43
|
+
|
|
44
|
+
// *********************************
|
|
45
|
+
// Code generated by sdkgen
|
|
46
|
+
// DO NOT EDIT!.
|
|
47
|
+
//
|
|
48
|
+
// Enums.
|
|
49
|
+
// *********************************
|
|
50
|
+
var ChatAnswerFunctionExecutionJobStatus;
|
|
51
|
+
(function (ChatAnswerFunctionExecutionJobStatus) {
|
|
52
|
+
ChatAnswerFunctionExecutionJobStatus[ChatAnswerFunctionExecutionJobStatus["FUNCTION_EXECUTION_JOB_STATUS_INVALID"] = 0] = "FUNCTION_EXECUTION_JOB_STATUS_INVALID";
|
|
53
|
+
ChatAnswerFunctionExecutionJobStatus[ChatAnswerFunctionExecutionJobStatus["FUNCTION_EXECUTION_JOB_STATUS_QUEUED"] = 1] = "FUNCTION_EXECUTION_JOB_STATUS_QUEUED";
|
|
54
|
+
ChatAnswerFunctionExecutionJobStatus[ChatAnswerFunctionExecutionJobStatus["FUNCTION_EXECUTION_JOB_STATUS_RUNNING"] = 2] = "FUNCTION_EXECUTION_JOB_STATUS_RUNNING";
|
|
55
|
+
ChatAnswerFunctionExecutionJobStatus[ChatAnswerFunctionExecutionJobStatus["FUNCTION_EXECUTION_JOB_STATUS_COMPLETE"] = 3] = "FUNCTION_EXECUTION_JOB_STATUS_COMPLETE";
|
|
56
|
+
})(ChatAnswerFunctionExecutionJobStatus || (ChatAnswerFunctionExecutionJobStatus = {}));
|
|
57
|
+
var ChatChannel;
|
|
58
|
+
(function (ChatChannel) {
|
|
59
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_INVALID"] = 0] = "CHAT_CHANNEL_INVALID";
|
|
60
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_UNSPECIFIED"] = 1] = "CHAT_CHANNEL_UNSPECIFIED";
|
|
61
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_WEB"] = 2] = "CHAT_CHANNEL_WEB";
|
|
62
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_SMS"] = 3] = "CHAT_CHANNEL_SMS";
|
|
63
|
+
})(ChatChannel || (ChatChannel = {}));
|
|
64
|
+
var ChatMessageRole;
|
|
65
|
+
(function (ChatMessageRole) {
|
|
66
|
+
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_INVALID"] = 0] = "CHAT_MESSAGE_ROLE_INVALID";
|
|
67
|
+
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_USER"] = 1] = "CHAT_MESSAGE_ROLE_USER";
|
|
68
|
+
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_ASSISTANT"] = 2] = "CHAT_MESSAGE_ROLE_ASSISTANT";
|
|
69
|
+
})(ChatMessageRole || (ChatMessageRole = {}));
|
|
70
|
+
|
|
71
|
+
// *********************************
|
|
72
|
+
// Code generated by sdkgen
|
|
73
|
+
// DO NOT EDIT!.
|
|
74
|
+
//
|
|
75
|
+
// Enums Index.
|
|
76
|
+
// *********************************
|
|
77
|
+
|
|
78
|
+
function enumStringToValue$8(enumRef, value) {
|
|
79
|
+
if (typeof value === 'number') {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return enumRef[value];
|
|
83
|
+
}
|
|
84
|
+
class NamespaceAccountGroupNamespace {
|
|
85
|
+
static fromProto(proto) {
|
|
86
|
+
let m = new NamespaceAccountGroupNamespace();
|
|
87
|
+
m = Object.assign(m, proto);
|
|
88
|
+
return m;
|
|
89
|
+
}
|
|
90
|
+
constructor(kwargs) {
|
|
91
|
+
if (!kwargs) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
Object.assign(this, kwargs);
|
|
95
|
+
}
|
|
96
|
+
toApiJson() {
|
|
97
|
+
const toReturn = {};
|
|
98
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
99
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
100
|
+
}
|
|
101
|
+
return toReturn;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
class Namespace {
|
|
105
|
+
static fromProto(proto) {
|
|
106
|
+
let m = new Namespace();
|
|
107
|
+
m = Object.assign(m, proto);
|
|
108
|
+
if (proto.accountGroupNamespace) {
|
|
109
|
+
m.accountGroupNamespace = NamespaceAccountGroupNamespace.fromProto(proto.accountGroupNamespace);
|
|
110
|
+
}
|
|
111
|
+
if (proto.partnerNamespace) {
|
|
112
|
+
m.partnerNamespace = NamespacePartnerNamespace.fromProto(proto.partnerNamespace);
|
|
113
|
+
}
|
|
114
|
+
if (proto.systemNamespace) {
|
|
115
|
+
m.systemNamespace = NamespaceSystemNamespace.fromProto(proto.systemNamespace);
|
|
116
|
+
}
|
|
117
|
+
return m;
|
|
118
|
+
}
|
|
119
|
+
constructor(kwargs) {
|
|
120
|
+
if (!kwargs) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
Object.assign(this, kwargs);
|
|
124
|
+
}
|
|
125
|
+
toApiJson() {
|
|
126
|
+
const toReturn = {};
|
|
127
|
+
if (typeof this.accountGroupNamespace !== 'undefined' && this.accountGroupNamespace !== null) {
|
|
128
|
+
toReturn['accountGroupNamespace'] = 'toApiJson' in this.accountGroupNamespace ? this.accountGroupNamespace.toApiJson() : this.accountGroupNamespace;
|
|
129
|
+
}
|
|
130
|
+
if (typeof this.partnerNamespace !== 'undefined' && this.partnerNamespace !== null) {
|
|
131
|
+
toReturn['partnerNamespace'] = 'toApiJson' in this.partnerNamespace ? this.partnerNamespace.toApiJson() : this.partnerNamespace;
|
|
132
|
+
}
|
|
133
|
+
if (typeof this.systemNamespace !== 'undefined' && this.systemNamespace !== null) {
|
|
134
|
+
toReturn['systemNamespace'] = 'toApiJson' in this.systemNamespace ? this.systemNamespace.toApiJson() : this.systemNamespace;
|
|
135
|
+
}
|
|
136
|
+
return toReturn;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
class NamespacePartnerNamespace {
|
|
140
|
+
static fromProto(proto) {
|
|
141
|
+
let m = new NamespacePartnerNamespace();
|
|
142
|
+
m = Object.assign(m, proto);
|
|
143
|
+
return m;
|
|
144
|
+
}
|
|
145
|
+
constructor(kwargs) {
|
|
146
|
+
if (!kwargs) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
Object.assign(this, kwargs);
|
|
150
|
+
}
|
|
151
|
+
toApiJson() {
|
|
152
|
+
const toReturn = {};
|
|
153
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
154
|
+
toReturn['partnerId'] = this.partnerId;
|
|
155
|
+
}
|
|
156
|
+
return toReturn;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
class NamespaceSystemNamespace {
|
|
160
|
+
static fromProto(proto) {
|
|
161
|
+
let m = new NamespaceSystemNamespace();
|
|
162
|
+
m = Object.assign(m, proto);
|
|
163
|
+
return m;
|
|
164
|
+
}
|
|
165
|
+
constructor(kwargs) {
|
|
166
|
+
if (!kwargs) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
Object.assign(this, kwargs);
|
|
170
|
+
}
|
|
171
|
+
toApiJson() {
|
|
172
|
+
const toReturn = {};
|
|
173
|
+
if (typeof this.contextId !== 'undefined') {
|
|
174
|
+
toReturn['contextId'] = this.contextId;
|
|
175
|
+
}
|
|
176
|
+
return toReturn;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function enumStringToValue$7(enumRef, value) {
|
|
181
|
+
if (typeof value === 'number') {
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
return enumRef[value];
|
|
185
|
+
}
|
|
186
|
+
class Connection {
|
|
187
|
+
static fromProto(proto) {
|
|
188
|
+
let m = new Connection();
|
|
189
|
+
m = Object.assign(m, proto);
|
|
190
|
+
if (proto.namespace) {
|
|
191
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
192
|
+
}
|
|
193
|
+
return m;
|
|
194
|
+
}
|
|
195
|
+
constructor(kwargs) {
|
|
196
|
+
if (!kwargs) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
Object.assign(this, kwargs);
|
|
200
|
+
}
|
|
201
|
+
toApiJson() {
|
|
202
|
+
const toReturn = {};
|
|
203
|
+
if (typeof this.id !== 'undefined') {
|
|
204
|
+
toReturn['id'] = this.id;
|
|
205
|
+
}
|
|
206
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
207
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
208
|
+
}
|
|
209
|
+
if (typeof this.name !== 'undefined') {
|
|
210
|
+
toReturn['name'] = this.name;
|
|
211
|
+
}
|
|
212
|
+
if (typeof this.configurationUrl !== 'undefined') {
|
|
213
|
+
toReturn['configurationUrl'] = this.configurationUrl;
|
|
214
|
+
}
|
|
215
|
+
if (typeof this.connectionType !== 'undefined') {
|
|
216
|
+
toReturn['connectionType'] = this.connectionType;
|
|
217
|
+
}
|
|
218
|
+
if (typeof this.connectionTypeName !== 'undefined') {
|
|
219
|
+
toReturn['connectionTypeName'] = this.connectionTypeName;
|
|
220
|
+
}
|
|
221
|
+
if (typeof this.iconUrl !== 'undefined') {
|
|
222
|
+
toReturn['iconUrl'] = this.iconUrl;
|
|
223
|
+
}
|
|
224
|
+
return toReturn;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
class ConnectionKey {
|
|
228
|
+
static fromProto(proto) {
|
|
229
|
+
let m = new ConnectionKey();
|
|
230
|
+
m = Object.assign(m, proto);
|
|
231
|
+
if (proto.namespace) {
|
|
232
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
233
|
+
}
|
|
234
|
+
return m;
|
|
235
|
+
}
|
|
236
|
+
constructor(kwargs) {
|
|
237
|
+
if (!kwargs) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
Object.assign(this, kwargs);
|
|
241
|
+
}
|
|
242
|
+
toApiJson() {
|
|
243
|
+
const toReturn = {};
|
|
244
|
+
if (typeof this.id !== 'undefined') {
|
|
245
|
+
toReturn['id'] = this.id;
|
|
246
|
+
}
|
|
247
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
248
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
249
|
+
}
|
|
250
|
+
if (typeof this.connectionType !== 'undefined') {
|
|
251
|
+
toReturn['connectionType'] = this.connectionType;
|
|
252
|
+
}
|
|
253
|
+
return toReturn;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function enumStringToValue$6(enumRef, value) {
|
|
258
|
+
if (typeof value === 'number') {
|
|
259
|
+
return value;
|
|
260
|
+
}
|
|
261
|
+
return enumRef[value];
|
|
262
|
+
}
|
|
263
|
+
class Assistant {
|
|
264
|
+
static fromProto(proto) {
|
|
265
|
+
let m = new Assistant();
|
|
266
|
+
m = Object.assign(m, proto);
|
|
267
|
+
if (proto.namespace) {
|
|
268
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
269
|
+
}
|
|
270
|
+
if (proto.type) {
|
|
271
|
+
m.type = enumStringToValue$6(AssistantType, proto.type);
|
|
272
|
+
}
|
|
273
|
+
if (proto.config) {
|
|
274
|
+
m.config = Config.fromProto(proto.config);
|
|
275
|
+
}
|
|
276
|
+
return m;
|
|
277
|
+
}
|
|
278
|
+
constructor(kwargs) {
|
|
279
|
+
if (!kwargs) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
Object.assign(this, kwargs);
|
|
283
|
+
}
|
|
284
|
+
toApiJson() {
|
|
285
|
+
const toReturn = {};
|
|
286
|
+
if (typeof this.id !== 'undefined') {
|
|
287
|
+
toReturn['id'] = this.id;
|
|
288
|
+
}
|
|
289
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
290
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
291
|
+
}
|
|
292
|
+
if (typeof this.name !== 'undefined') {
|
|
293
|
+
toReturn['name'] = this.name;
|
|
294
|
+
}
|
|
295
|
+
if (typeof this.type !== 'undefined') {
|
|
296
|
+
toReturn['type'] = this.type;
|
|
297
|
+
}
|
|
298
|
+
if (typeof this.avatarUrl !== 'undefined') {
|
|
299
|
+
toReturn['avatarUrl'] = this.avatarUrl;
|
|
300
|
+
}
|
|
301
|
+
if (typeof this.config !== 'undefined' && this.config !== null) {
|
|
302
|
+
toReturn['config'] = 'toApiJson' in this.config ? this.config.toApiJson() : this.config;
|
|
303
|
+
}
|
|
304
|
+
return toReturn;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
class Config {
|
|
308
|
+
static fromProto(proto) {
|
|
309
|
+
let m = new Config();
|
|
310
|
+
m = Object.assign(m, proto);
|
|
311
|
+
if (proto.inboxConfig) {
|
|
312
|
+
m.inboxConfig = ConfigInboxConfig.fromProto(proto.inboxConfig);
|
|
313
|
+
}
|
|
314
|
+
return m;
|
|
315
|
+
}
|
|
316
|
+
constructor(kwargs) {
|
|
317
|
+
if (!kwargs) {
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
Object.assign(this, kwargs);
|
|
321
|
+
}
|
|
322
|
+
toApiJson() {
|
|
323
|
+
const toReturn = {};
|
|
324
|
+
if (typeof this.inboxConfig !== 'undefined' && this.inboxConfig !== null) {
|
|
325
|
+
toReturn['inboxConfig'] = 'toApiJson' in this.inboxConfig ? this.inboxConfig.toApiJson() : this.inboxConfig;
|
|
326
|
+
}
|
|
327
|
+
return toReturn;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
class ConfigInboxConfig {
|
|
331
|
+
static fromProto(proto) {
|
|
332
|
+
let m = new ConfigInboxConfig();
|
|
333
|
+
m = Object.assign(m, proto);
|
|
334
|
+
return m;
|
|
335
|
+
}
|
|
336
|
+
constructor(kwargs) {
|
|
337
|
+
if (!kwargs) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
Object.assign(this, kwargs);
|
|
341
|
+
}
|
|
342
|
+
toApiJson() {
|
|
343
|
+
const toReturn = {};
|
|
344
|
+
if (typeof this.leadCaptureEnabled !== 'undefined') {
|
|
345
|
+
toReturn['leadCaptureEnabled'] = this.leadCaptureEnabled;
|
|
346
|
+
}
|
|
347
|
+
if (typeof this.additionalInstructions !== 'undefined') {
|
|
348
|
+
toReturn['additionalInstructions'] = this.additionalInstructions;
|
|
349
|
+
}
|
|
350
|
+
return toReturn;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
function enumStringToValue$5(enumRef, value) {
|
|
355
|
+
if (typeof value === 'number') {
|
|
356
|
+
return value;
|
|
357
|
+
}
|
|
358
|
+
return enumRef[value];
|
|
359
|
+
}
|
|
360
|
+
class KeyValuePair {
|
|
361
|
+
static fromProto(proto) {
|
|
362
|
+
let m = new KeyValuePair();
|
|
363
|
+
m = Object.assign(m, proto);
|
|
364
|
+
return m;
|
|
365
|
+
}
|
|
366
|
+
constructor(kwargs) {
|
|
367
|
+
if (!kwargs) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
Object.assign(this, kwargs);
|
|
371
|
+
}
|
|
372
|
+
toApiJson() {
|
|
373
|
+
const toReturn = {};
|
|
374
|
+
if (typeof this.key !== 'undefined') {
|
|
375
|
+
toReturn['key'] = this.key;
|
|
376
|
+
}
|
|
377
|
+
if (typeof this.value !== 'undefined') {
|
|
378
|
+
toReturn['value'] = this.value;
|
|
379
|
+
}
|
|
380
|
+
return toReturn;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function enumStringToValue$4(enumRef, value) {
|
|
385
|
+
if (typeof value === 'number') {
|
|
386
|
+
return value;
|
|
387
|
+
}
|
|
388
|
+
return enumRef[value];
|
|
389
|
+
}
|
|
390
|
+
class ChatAnswerFunctionExecutionJob {
|
|
391
|
+
static fromProto(proto) {
|
|
392
|
+
let m = new ChatAnswerFunctionExecutionJob();
|
|
393
|
+
m = Object.assign(m, proto);
|
|
394
|
+
if (proto.status) {
|
|
395
|
+
m.status = enumStringToValue$4(ChatAnswerFunctionExecutionJobStatus, proto.status);
|
|
396
|
+
}
|
|
397
|
+
if (proto.result) {
|
|
398
|
+
m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
|
|
399
|
+
}
|
|
400
|
+
return m;
|
|
401
|
+
}
|
|
402
|
+
constructor(kwargs) {
|
|
403
|
+
if (!kwargs) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
Object.assign(this, kwargs);
|
|
407
|
+
}
|
|
408
|
+
toApiJson() {
|
|
409
|
+
const toReturn = {};
|
|
410
|
+
if (typeof this.id !== 'undefined') {
|
|
411
|
+
toReturn['id'] = this.id;
|
|
412
|
+
}
|
|
413
|
+
if (typeof this.status !== 'undefined') {
|
|
414
|
+
toReturn['status'] = this.status;
|
|
415
|
+
}
|
|
416
|
+
if (typeof this.result !== 'undefined' && this.result !== null) {
|
|
417
|
+
toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
|
|
418
|
+
}
|
|
419
|
+
if (typeof this.nextJobId !== 'undefined') {
|
|
420
|
+
toReturn['nextJobId'] = this.nextJobId;
|
|
421
|
+
}
|
|
422
|
+
return toReturn;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
class ChatAnswerFunctionExecutionJobResult {
|
|
426
|
+
static fromProto(proto) {
|
|
427
|
+
let m = new ChatAnswerFunctionExecutionJobResult();
|
|
428
|
+
m = Object.assign(m, proto);
|
|
429
|
+
if (proto.metadata) {
|
|
430
|
+
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
431
|
+
}
|
|
432
|
+
return m;
|
|
433
|
+
}
|
|
434
|
+
constructor(kwargs) {
|
|
435
|
+
if (!kwargs) {
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
Object.assign(this, kwargs);
|
|
439
|
+
}
|
|
440
|
+
toApiJson() {
|
|
441
|
+
const toReturn = {};
|
|
442
|
+
if (typeof this.content !== 'undefined') {
|
|
443
|
+
toReturn['content'] = this.content;
|
|
444
|
+
}
|
|
445
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
446
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
447
|
+
}
|
|
448
|
+
return toReturn;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
class ChatMessage {
|
|
452
|
+
static fromProto(proto) {
|
|
453
|
+
let m = new ChatMessage();
|
|
454
|
+
m = Object.assign(m, proto);
|
|
455
|
+
if (proto.role) {
|
|
456
|
+
m.role = enumStringToValue$4(ChatMessageRole, proto.role);
|
|
457
|
+
}
|
|
458
|
+
return m;
|
|
459
|
+
}
|
|
460
|
+
constructor(kwargs) {
|
|
461
|
+
if (!kwargs) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
Object.assign(this, kwargs);
|
|
465
|
+
}
|
|
466
|
+
toApiJson() {
|
|
467
|
+
const toReturn = {};
|
|
468
|
+
if (typeof this.role !== 'undefined') {
|
|
469
|
+
toReturn['role'] = this.role;
|
|
470
|
+
}
|
|
471
|
+
if (typeof this.content !== 'undefined') {
|
|
472
|
+
toReturn['content'] = this.content;
|
|
473
|
+
}
|
|
474
|
+
return toReturn;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
class ChatUserInfo {
|
|
478
|
+
static fromProto(proto) {
|
|
479
|
+
let m = new ChatUserInfo();
|
|
480
|
+
m = Object.assign(m, proto);
|
|
481
|
+
return m;
|
|
482
|
+
}
|
|
483
|
+
constructor(kwargs) {
|
|
484
|
+
if (!kwargs) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
Object.assign(this, kwargs);
|
|
488
|
+
}
|
|
489
|
+
toApiJson() {
|
|
490
|
+
const toReturn = {};
|
|
491
|
+
if (typeof this.name !== 'undefined') {
|
|
492
|
+
toReturn['name'] = this.name;
|
|
493
|
+
}
|
|
494
|
+
if (typeof this.email !== 'undefined') {
|
|
495
|
+
toReturn['email'] = this.email;
|
|
496
|
+
}
|
|
497
|
+
if (typeof this.phone !== 'undefined') {
|
|
498
|
+
toReturn['phone'] = this.phone;
|
|
499
|
+
}
|
|
500
|
+
if (typeof this.address1 !== 'undefined') {
|
|
501
|
+
toReturn['address1'] = this.address1;
|
|
502
|
+
}
|
|
503
|
+
if (typeof this.address2 !== 'undefined') {
|
|
504
|
+
toReturn['address2'] = this.address2;
|
|
505
|
+
}
|
|
506
|
+
if (typeof this.city !== 'undefined') {
|
|
507
|
+
toReturn['city'] = this.city;
|
|
508
|
+
}
|
|
509
|
+
if (typeof this.state !== 'undefined') {
|
|
510
|
+
toReturn['state'] = this.state;
|
|
511
|
+
}
|
|
512
|
+
if (typeof this.country !== 'undefined') {
|
|
513
|
+
toReturn['country'] = this.country;
|
|
514
|
+
}
|
|
515
|
+
if (typeof this.zipCode !== 'undefined') {
|
|
516
|
+
toReturn['zipCode'] = this.zipCode;
|
|
517
|
+
}
|
|
518
|
+
return toReturn;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
function enumStringToValue$3(enumRef, value) {
|
|
523
|
+
if (typeof value === 'number') {
|
|
524
|
+
return value;
|
|
525
|
+
}
|
|
526
|
+
return enumRef[value];
|
|
527
|
+
}
|
|
528
|
+
class Prompt {
|
|
529
|
+
static fromProto(proto) {
|
|
530
|
+
let m = new Prompt();
|
|
531
|
+
m = Object.assign(m, proto);
|
|
532
|
+
if (proto.updated) {
|
|
533
|
+
m.updated = new Date(proto.updated);
|
|
534
|
+
}
|
|
535
|
+
return m;
|
|
536
|
+
}
|
|
537
|
+
constructor(kwargs) {
|
|
538
|
+
if (!kwargs) {
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
Object.assign(this, kwargs);
|
|
542
|
+
}
|
|
543
|
+
toApiJson() {
|
|
544
|
+
const toReturn = {};
|
|
545
|
+
if (typeof this.id !== 'undefined') {
|
|
546
|
+
toReturn['id'] = this.id;
|
|
547
|
+
}
|
|
548
|
+
if (typeof this.deployedVersion !== 'undefined') {
|
|
549
|
+
toReturn['deployedVersion'] = this.deployedVersion;
|
|
550
|
+
}
|
|
551
|
+
if (typeof this.deployedBy !== 'undefined') {
|
|
552
|
+
toReturn['deployedBy'] = this.deployedBy;
|
|
553
|
+
}
|
|
554
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
555
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
556
|
+
}
|
|
557
|
+
return toReturn;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
class PromptVersion {
|
|
561
|
+
static fromProto(proto) {
|
|
562
|
+
let m = new PromptVersion();
|
|
563
|
+
m = Object.assign(m, proto);
|
|
564
|
+
if (proto.created) {
|
|
565
|
+
m.created = new Date(proto.created);
|
|
566
|
+
}
|
|
567
|
+
return m;
|
|
568
|
+
}
|
|
569
|
+
constructor(kwargs) {
|
|
570
|
+
if (!kwargs) {
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
573
|
+
Object.assign(this, kwargs);
|
|
574
|
+
}
|
|
575
|
+
toApiJson() {
|
|
576
|
+
const toReturn = {};
|
|
577
|
+
if (typeof this.id !== 'undefined') {
|
|
578
|
+
toReturn['id'] = this.id;
|
|
579
|
+
}
|
|
580
|
+
if (typeof this.version !== 'undefined') {
|
|
581
|
+
toReturn['version'] = this.version;
|
|
582
|
+
}
|
|
583
|
+
if (typeof this.content !== 'undefined') {
|
|
584
|
+
toReturn['content'] = this.content;
|
|
585
|
+
}
|
|
586
|
+
if (typeof this.createdBy !== 'undefined') {
|
|
587
|
+
toReturn['createdBy'] = this.createdBy;
|
|
588
|
+
}
|
|
589
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
590
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
591
|
+
}
|
|
592
|
+
return toReturn;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
function enumStringToValue$2(enumRef, value) {
|
|
597
|
+
if (typeof value === 'number') {
|
|
598
|
+
return value;
|
|
599
|
+
}
|
|
600
|
+
return enumRef[value];
|
|
601
|
+
}
|
|
602
|
+
class Access {
|
|
603
|
+
static fromProto(proto) {
|
|
604
|
+
let m = new Access();
|
|
605
|
+
m = Object.assign(m, proto);
|
|
606
|
+
return m;
|
|
607
|
+
}
|
|
608
|
+
constructor(kwargs) {
|
|
609
|
+
if (!kwargs) {
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
Object.assign(this, kwargs);
|
|
613
|
+
}
|
|
614
|
+
toApiJson() {
|
|
615
|
+
const toReturn = {};
|
|
616
|
+
if (typeof this.scope !== 'undefined') {
|
|
617
|
+
toReturn['scope'] = this.scope;
|
|
618
|
+
}
|
|
619
|
+
if (typeof this.public !== 'undefined') {
|
|
620
|
+
toReturn['public'] = this.public;
|
|
621
|
+
}
|
|
622
|
+
return toReturn;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
function enumStringToValue$1(enumRef, value) {
|
|
627
|
+
if (typeof value === 'number') {
|
|
628
|
+
return value;
|
|
629
|
+
}
|
|
630
|
+
return enumRef[value];
|
|
631
|
+
}
|
|
632
|
+
class PagedRequestOptions {
|
|
633
|
+
static fromProto(proto) {
|
|
634
|
+
let m = new PagedRequestOptions();
|
|
635
|
+
m = Object.assign(m, proto);
|
|
636
|
+
if (proto.pageSize) {
|
|
637
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
638
|
+
}
|
|
639
|
+
return m;
|
|
640
|
+
}
|
|
641
|
+
constructor(kwargs) {
|
|
642
|
+
if (!kwargs) {
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
Object.assign(this, kwargs);
|
|
646
|
+
}
|
|
647
|
+
toApiJson() {
|
|
648
|
+
const toReturn = {};
|
|
649
|
+
if (typeof this.cursor !== 'undefined') {
|
|
650
|
+
toReturn['cursor'] = this.cursor;
|
|
651
|
+
}
|
|
652
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
653
|
+
toReturn['pageSize'] = this.pageSize;
|
|
654
|
+
}
|
|
655
|
+
return toReturn;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
class PagedResponseMetadata {
|
|
659
|
+
static fromProto(proto) {
|
|
660
|
+
let m = new PagedResponseMetadata();
|
|
661
|
+
m = Object.assign(m, proto);
|
|
662
|
+
if (proto.totalResults) {
|
|
663
|
+
m.totalResults = parseInt(proto.totalResults, 10);
|
|
664
|
+
}
|
|
665
|
+
return m;
|
|
666
|
+
}
|
|
667
|
+
constructor(kwargs) {
|
|
668
|
+
if (!kwargs) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
Object.assign(this, kwargs);
|
|
672
|
+
}
|
|
673
|
+
toApiJson() {
|
|
674
|
+
const toReturn = {};
|
|
675
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
676
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
677
|
+
}
|
|
678
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
679
|
+
toReturn['hasMore'] = this.hasMore;
|
|
680
|
+
}
|
|
681
|
+
if (typeof this.totalResults !== 'undefined') {
|
|
682
|
+
toReturn['totalResults'] = this.totalResults;
|
|
683
|
+
}
|
|
684
|
+
return toReturn;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
function enumStringToValue(enumRef, value) {
|
|
689
|
+
if (typeof value === 'number') {
|
|
690
|
+
return value;
|
|
691
|
+
}
|
|
692
|
+
return enumRef[value];
|
|
693
|
+
}
|
|
694
|
+
class CreatePromptRequest {
|
|
695
|
+
static fromProto(proto) {
|
|
696
|
+
let m = new CreatePromptRequest();
|
|
697
|
+
m = Object.assign(m, proto);
|
|
698
|
+
return m;
|
|
699
|
+
}
|
|
700
|
+
constructor(kwargs) {
|
|
701
|
+
if (!kwargs) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
Object.assign(this, kwargs);
|
|
705
|
+
}
|
|
706
|
+
toApiJson() {
|
|
707
|
+
const toReturn = {};
|
|
708
|
+
if (typeof this.id !== 'undefined') {
|
|
709
|
+
toReturn['id'] = this.id;
|
|
710
|
+
}
|
|
711
|
+
if (typeof this.content !== 'undefined') {
|
|
712
|
+
toReturn['content'] = this.content;
|
|
713
|
+
}
|
|
714
|
+
return toReturn;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
class DeleteAssistantRequest {
|
|
718
|
+
static fromProto(proto) {
|
|
719
|
+
let m = new DeleteAssistantRequest();
|
|
720
|
+
m = Object.assign(m, proto);
|
|
721
|
+
if (proto.namespace) {
|
|
722
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
723
|
+
}
|
|
724
|
+
return m;
|
|
725
|
+
}
|
|
726
|
+
constructor(kwargs) {
|
|
727
|
+
if (!kwargs) {
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
Object.assign(this, kwargs);
|
|
731
|
+
}
|
|
732
|
+
toApiJson() {
|
|
733
|
+
const toReturn = {};
|
|
734
|
+
if (typeof this.id !== 'undefined') {
|
|
735
|
+
toReturn['id'] = this.id;
|
|
736
|
+
}
|
|
737
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
738
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
739
|
+
}
|
|
740
|
+
return toReturn;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
class DeleteConnectionRequest {
|
|
744
|
+
static fromProto(proto) {
|
|
745
|
+
let m = new DeleteConnectionRequest();
|
|
746
|
+
m = Object.assign(m, proto);
|
|
747
|
+
if (proto.namespace) {
|
|
748
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
749
|
+
}
|
|
750
|
+
return m;
|
|
751
|
+
}
|
|
752
|
+
constructor(kwargs) {
|
|
753
|
+
if (!kwargs) {
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
Object.assign(this, kwargs);
|
|
757
|
+
}
|
|
758
|
+
toApiJson() {
|
|
759
|
+
const toReturn = {};
|
|
760
|
+
if (typeof this.id !== 'undefined') {
|
|
761
|
+
toReturn['id'] = this.id;
|
|
762
|
+
}
|
|
763
|
+
if (typeof this.connectionType !== 'undefined') {
|
|
764
|
+
toReturn['connectionType'] = this.connectionType;
|
|
765
|
+
}
|
|
766
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
767
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
768
|
+
}
|
|
769
|
+
return toReturn;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
class DeletePromptRequest {
|
|
773
|
+
static fromProto(proto) {
|
|
774
|
+
let m = new DeletePromptRequest();
|
|
775
|
+
m = Object.assign(m, proto);
|
|
776
|
+
return m;
|
|
777
|
+
}
|
|
778
|
+
constructor(kwargs) {
|
|
779
|
+
if (!kwargs) {
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
Object.assign(this, kwargs);
|
|
783
|
+
}
|
|
784
|
+
toApiJson() {
|
|
785
|
+
const toReturn = {};
|
|
786
|
+
if (typeof this.id !== 'undefined') {
|
|
787
|
+
toReturn['id'] = this.id;
|
|
788
|
+
}
|
|
789
|
+
return toReturn;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
class DeployPromptRequest {
|
|
793
|
+
static fromProto(proto) {
|
|
794
|
+
let m = new DeployPromptRequest();
|
|
795
|
+
m = Object.assign(m, proto);
|
|
796
|
+
return m;
|
|
797
|
+
}
|
|
798
|
+
constructor(kwargs) {
|
|
799
|
+
if (!kwargs) {
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
Object.assign(this, kwargs);
|
|
803
|
+
}
|
|
804
|
+
toApiJson() {
|
|
805
|
+
const toReturn = {};
|
|
806
|
+
if (typeof this.id !== 'undefined') {
|
|
807
|
+
toReturn['id'] = this.id;
|
|
808
|
+
}
|
|
809
|
+
if (typeof this.version !== 'undefined') {
|
|
810
|
+
toReturn['version'] = this.version;
|
|
811
|
+
}
|
|
812
|
+
return toReturn;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
class ListAssistantRequestFilters {
|
|
816
|
+
static fromProto(proto) {
|
|
817
|
+
let m = new ListAssistantRequestFilters();
|
|
818
|
+
m = Object.assign(m, proto);
|
|
819
|
+
if (proto.namespace) {
|
|
820
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
821
|
+
}
|
|
822
|
+
if (proto.type) {
|
|
823
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
824
|
+
}
|
|
825
|
+
return m;
|
|
826
|
+
}
|
|
827
|
+
constructor(kwargs) {
|
|
828
|
+
if (!kwargs) {
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
Object.assign(this, kwargs);
|
|
832
|
+
}
|
|
833
|
+
toApiJson() {
|
|
834
|
+
const toReturn = {};
|
|
835
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
836
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
837
|
+
}
|
|
838
|
+
if (typeof this.type !== 'undefined') {
|
|
839
|
+
toReturn['type'] = this.type;
|
|
840
|
+
}
|
|
841
|
+
return toReturn;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
class ListConnectionsRequestFilters {
|
|
845
|
+
static fromProto(proto) {
|
|
846
|
+
let m = new ListConnectionsRequestFilters();
|
|
847
|
+
m = Object.assign(m, proto);
|
|
848
|
+
if (proto.namespace) {
|
|
849
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
850
|
+
}
|
|
851
|
+
return m;
|
|
852
|
+
}
|
|
853
|
+
constructor(kwargs) {
|
|
854
|
+
if (!kwargs) {
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
Object.assign(this, kwargs);
|
|
858
|
+
}
|
|
859
|
+
toApiJson() {
|
|
860
|
+
const toReturn = {};
|
|
861
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
862
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
863
|
+
}
|
|
864
|
+
return toReturn;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
class GenerateChatAnswerRequest {
|
|
868
|
+
static fromProto(proto) {
|
|
869
|
+
let m = new GenerateChatAnswerRequest();
|
|
870
|
+
m = Object.assign(m, proto);
|
|
871
|
+
if (proto.connectionKey) {
|
|
872
|
+
m.connectionKey = ConnectionKey.fromProto(proto.connectionKey);
|
|
873
|
+
}
|
|
874
|
+
if (proto.chatHistory) {
|
|
875
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
876
|
+
}
|
|
877
|
+
if (proto.chatUserInfo) {
|
|
878
|
+
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
879
|
+
}
|
|
880
|
+
if (proto.chatChannel) {
|
|
881
|
+
m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
|
|
882
|
+
}
|
|
883
|
+
if (proto.options) {
|
|
884
|
+
m.options = GenerateChatAnswerRequestOptions.fromProto(proto.options);
|
|
885
|
+
}
|
|
886
|
+
return m;
|
|
887
|
+
}
|
|
888
|
+
constructor(kwargs) {
|
|
889
|
+
if (!kwargs) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
Object.assign(this, kwargs);
|
|
893
|
+
}
|
|
894
|
+
toApiJson() {
|
|
895
|
+
const toReturn = {};
|
|
896
|
+
if (typeof this.connectionKey !== 'undefined' && this.connectionKey !== null) {
|
|
897
|
+
toReturn['connectionKey'] = 'toApiJson' in this.connectionKey ? this.connectionKey.toApiJson() : this.connectionKey;
|
|
898
|
+
}
|
|
899
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
900
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
901
|
+
}
|
|
902
|
+
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
903
|
+
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
904
|
+
}
|
|
905
|
+
if (typeof this.chatChannel !== 'undefined') {
|
|
906
|
+
toReturn['chatChannel'] = this.chatChannel;
|
|
907
|
+
}
|
|
908
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
909
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
910
|
+
}
|
|
911
|
+
return toReturn;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
class GenerateChatAnswerResponse {
|
|
915
|
+
static fromProto(proto) {
|
|
916
|
+
let m = new GenerateChatAnswerResponse();
|
|
917
|
+
m = Object.assign(m, proto);
|
|
918
|
+
if (proto.metadata) {
|
|
919
|
+
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
920
|
+
}
|
|
921
|
+
return m;
|
|
922
|
+
}
|
|
923
|
+
constructor(kwargs) {
|
|
924
|
+
if (!kwargs) {
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
Object.assign(this, kwargs);
|
|
928
|
+
}
|
|
929
|
+
toApiJson() {
|
|
930
|
+
const toReturn = {};
|
|
931
|
+
if (typeof this.answer !== 'undefined') {
|
|
932
|
+
toReturn['answer'] = this.answer;
|
|
933
|
+
}
|
|
934
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
935
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
936
|
+
}
|
|
937
|
+
if (typeof this.pendingJobId !== 'undefined') {
|
|
938
|
+
toReturn['pendingJobId'] = this.pendingJobId;
|
|
939
|
+
}
|
|
940
|
+
return toReturn;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
class GetAssistantRequest {
|
|
944
|
+
static fromProto(proto) {
|
|
945
|
+
let m = new GetAssistantRequest();
|
|
946
|
+
m = Object.assign(m, proto);
|
|
947
|
+
if (proto.namespace) {
|
|
948
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
949
|
+
}
|
|
950
|
+
return m;
|
|
951
|
+
}
|
|
952
|
+
constructor(kwargs) {
|
|
953
|
+
if (!kwargs) {
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
Object.assign(this, kwargs);
|
|
957
|
+
}
|
|
958
|
+
toApiJson() {
|
|
959
|
+
const toReturn = {};
|
|
960
|
+
if (typeof this.id !== 'undefined') {
|
|
961
|
+
toReturn['id'] = this.id;
|
|
962
|
+
}
|
|
963
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
964
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
965
|
+
}
|
|
966
|
+
return toReturn;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
class GetAssistantResponse {
|
|
970
|
+
static fromProto(proto) {
|
|
971
|
+
let m = new GetAssistantResponse();
|
|
972
|
+
m = Object.assign(m, proto);
|
|
973
|
+
if (proto.assistant) {
|
|
974
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
975
|
+
}
|
|
976
|
+
return m;
|
|
977
|
+
}
|
|
978
|
+
constructor(kwargs) {
|
|
979
|
+
if (!kwargs) {
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
Object.assign(this, kwargs);
|
|
983
|
+
}
|
|
984
|
+
toApiJson() {
|
|
985
|
+
const toReturn = {};
|
|
986
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
987
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
988
|
+
}
|
|
989
|
+
return toReturn;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
class GetChatAnswerFunctionExecutionJobRequest {
|
|
993
|
+
static fromProto(proto) {
|
|
994
|
+
let m = new GetChatAnswerFunctionExecutionJobRequest();
|
|
995
|
+
m = Object.assign(m, proto);
|
|
996
|
+
return m;
|
|
997
|
+
}
|
|
998
|
+
constructor(kwargs) {
|
|
999
|
+
if (!kwargs) {
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
Object.assign(this, kwargs);
|
|
1003
|
+
}
|
|
1004
|
+
toApiJson() {
|
|
1005
|
+
const toReturn = {};
|
|
1006
|
+
if (typeof this.id !== 'undefined') {
|
|
1007
|
+
toReturn['id'] = this.id;
|
|
1008
|
+
}
|
|
1009
|
+
return toReturn;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
class GetChatAnswerFunctionExecutionJobResponse {
|
|
1013
|
+
static fromProto(proto) {
|
|
1014
|
+
let m = new GetChatAnswerFunctionExecutionJobResponse();
|
|
1015
|
+
m = Object.assign(m, proto);
|
|
1016
|
+
if (proto.job) {
|
|
1017
|
+
m.job = ChatAnswerFunctionExecutionJob.fromProto(proto.job);
|
|
1018
|
+
}
|
|
1019
|
+
return m;
|
|
1020
|
+
}
|
|
1021
|
+
constructor(kwargs) {
|
|
1022
|
+
if (!kwargs) {
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
Object.assign(this, kwargs);
|
|
1026
|
+
}
|
|
1027
|
+
toApiJson() {
|
|
1028
|
+
const toReturn = {};
|
|
1029
|
+
if (typeof this.job !== 'undefined' && this.job !== null) {
|
|
1030
|
+
toReturn['job'] = 'toApiJson' in this.job ? this.job.toApiJson() : this.job;
|
|
1031
|
+
}
|
|
1032
|
+
return toReturn;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
class GetConnectionRequest {
|
|
1036
|
+
static fromProto(proto) {
|
|
1037
|
+
let m = new GetConnectionRequest();
|
|
1038
|
+
m = Object.assign(m, proto);
|
|
1039
|
+
if (proto.namespace) {
|
|
1040
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1041
|
+
}
|
|
1042
|
+
return m;
|
|
1043
|
+
}
|
|
1044
|
+
constructor(kwargs) {
|
|
1045
|
+
if (!kwargs) {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
Object.assign(this, kwargs);
|
|
1049
|
+
}
|
|
1050
|
+
toApiJson() {
|
|
1051
|
+
const toReturn = {};
|
|
1052
|
+
if (typeof this.id !== 'undefined') {
|
|
1053
|
+
toReturn['id'] = this.id;
|
|
1054
|
+
}
|
|
1055
|
+
if (typeof this.connectionType !== 'undefined') {
|
|
1056
|
+
toReturn['connectionType'] = this.connectionType;
|
|
1057
|
+
}
|
|
1058
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1059
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1060
|
+
}
|
|
1061
|
+
if (typeof this.includeAssistantKeys !== 'undefined') {
|
|
1062
|
+
toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
|
|
1063
|
+
}
|
|
1064
|
+
return toReturn;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
class GetConnectionResponse {
|
|
1068
|
+
static fromProto(proto) {
|
|
1069
|
+
let m = new GetConnectionResponse();
|
|
1070
|
+
m = Object.assign(m, proto);
|
|
1071
|
+
if (proto.connection) {
|
|
1072
|
+
m.connection = Connection.fromProto(proto.connection);
|
|
1073
|
+
}
|
|
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.connection !== 'undefined' && this.connection !== null) {
|
|
1085
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1086
|
+
}
|
|
1087
|
+
return toReturn;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
class GetPromptRequest {
|
|
1091
|
+
static fromProto(proto) {
|
|
1092
|
+
let m = new GetPromptRequest();
|
|
1093
|
+
m = Object.assign(m, proto);
|
|
1094
|
+
return m;
|
|
1095
|
+
}
|
|
1096
|
+
constructor(kwargs) {
|
|
1097
|
+
if (!kwargs) {
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
Object.assign(this, kwargs);
|
|
1101
|
+
}
|
|
1102
|
+
toApiJson() {
|
|
1103
|
+
const toReturn = {};
|
|
1104
|
+
if (typeof this.id !== 'undefined') {
|
|
1105
|
+
toReturn['id'] = this.id;
|
|
1106
|
+
}
|
|
1107
|
+
return toReturn;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
class GetPromptResponse {
|
|
1111
|
+
static fromProto(proto) {
|
|
1112
|
+
let m = new GetPromptResponse();
|
|
1113
|
+
m = Object.assign(m, proto);
|
|
1114
|
+
if (proto.prompt) {
|
|
1115
|
+
m.prompt = Prompt.fromProto(proto.prompt);
|
|
1116
|
+
}
|
|
1117
|
+
return m;
|
|
1118
|
+
}
|
|
1119
|
+
constructor(kwargs) {
|
|
1120
|
+
if (!kwargs) {
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
Object.assign(this, kwargs);
|
|
1124
|
+
}
|
|
1125
|
+
toApiJson() {
|
|
1126
|
+
const toReturn = {};
|
|
1127
|
+
if (typeof this.prompt !== 'undefined' && this.prompt !== null) {
|
|
1128
|
+
toReturn['prompt'] = 'toApiJson' in this.prompt ? this.prompt.toApiJson() : this.prompt;
|
|
1129
|
+
}
|
|
1130
|
+
return toReturn;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
class GetPromptVersionRequest {
|
|
1134
|
+
static fromProto(proto) {
|
|
1135
|
+
let m = new GetPromptVersionRequest();
|
|
1136
|
+
m = Object.assign(m, proto);
|
|
1137
|
+
return m;
|
|
1138
|
+
}
|
|
1139
|
+
constructor(kwargs) {
|
|
1140
|
+
if (!kwargs) {
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
Object.assign(this, kwargs);
|
|
1144
|
+
}
|
|
1145
|
+
toApiJson() {
|
|
1146
|
+
const toReturn = {};
|
|
1147
|
+
if (typeof this.id !== 'undefined') {
|
|
1148
|
+
toReturn['id'] = this.id;
|
|
1149
|
+
}
|
|
1150
|
+
if (typeof this.version !== 'undefined') {
|
|
1151
|
+
toReturn['version'] = this.version;
|
|
1152
|
+
}
|
|
1153
|
+
return toReturn;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
class GetPromptVersionResponse {
|
|
1157
|
+
static fromProto(proto) {
|
|
1158
|
+
let m = new GetPromptVersionResponse();
|
|
1159
|
+
m = Object.assign(m, proto);
|
|
1160
|
+
if (proto.promptVersion) {
|
|
1161
|
+
m.promptVersion = PromptVersion.fromProto(proto.promptVersion);
|
|
1162
|
+
}
|
|
1163
|
+
return m;
|
|
1164
|
+
}
|
|
1165
|
+
constructor(kwargs) {
|
|
1166
|
+
if (!kwargs) {
|
|
1167
|
+
return;
|
|
1168
|
+
}
|
|
1169
|
+
Object.assign(this, kwargs);
|
|
1170
|
+
}
|
|
1171
|
+
toApiJson() {
|
|
1172
|
+
const toReturn = {};
|
|
1173
|
+
if (typeof this.promptVersion !== 'undefined' && this.promptVersion !== null) {
|
|
1174
|
+
toReturn['promptVersion'] = 'toApiJson' in this.promptVersion ? this.promptVersion.toApiJson() : this.promptVersion;
|
|
1175
|
+
}
|
|
1176
|
+
return toReturn;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
class ListAssistantRequest {
|
|
1180
|
+
static fromProto(proto) {
|
|
1181
|
+
let m = new ListAssistantRequest();
|
|
1182
|
+
m = Object.assign(m, proto);
|
|
1183
|
+
if (proto.filters) {
|
|
1184
|
+
m.filters = ListAssistantRequestFilters.fromProto(proto.filters);
|
|
1185
|
+
}
|
|
1186
|
+
if (proto.pagingOptions) {
|
|
1187
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1188
|
+
}
|
|
1189
|
+
return m;
|
|
1190
|
+
}
|
|
1191
|
+
constructor(kwargs) {
|
|
1192
|
+
if (!kwargs) {
|
|
1193
|
+
return;
|
|
1194
|
+
}
|
|
1195
|
+
Object.assign(this, kwargs);
|
|
1196
|
+
}
|
|
1197
|
+
toApiJson() {
|
|
1198
|
+
const toReturn = {};
|
|
1199
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
1200
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
1201
|
+
}
|
|
1202
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1203
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1204
|
+
}
|
|
1205
|
+
return toReturn;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
class ListAssistantResponse {
|
|
1209
|
+
static fromProto(proto) {
|
|
1210
|
+
let m = new ListAssistantResponse();
|
|
1211
|
+
m = Object.assign(m, proto);
|
|
1212
|
+
if (proto.assistants) {
|
|
1213
|
+
m.assistants = proto.assistants.map(Assistant.fromProto);
|
|
1214
|
+
}
|
|
1215
|
+
if (proto.metadata) {
|
|
1216
|
+
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
1217
|
+
}
|
|
1218
|
+
return m;
|
|
1219
|
+
}
|
|
1220
|
+
constructor(kwargs) {
|
|
1221
|
+
if (!kwargs) {
|
|
1222
|
+
return;
|
|
1223
|
+
}
|
|
1224
|
+
Object.assign(this, kwargs);
|
|
1225
|
+
}
|
|
1226
|
+
toApiJson() {
|
|
1227
|
+
const toReturn = {};
|
|
1228
|
+
if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
|
|
1229
|
+
toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
|
|
1230
|
+
}
|
|
1231
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
1232
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
1233
|
+
}
|
|
1234
|
+
return toReturn;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
class ListConnectionsRequest {
|
|
1238
|
+
static fromProto(proto) {
|
|
1239
|
+
let m = new ListConnectionsRequest();
|
|
1240
|
+
m = Object.assign(m, proto);
|
|
1241
|
+
if (proto.filters) {
|
|
1242
|
+
m.filters = ListConnectionsRequestFilters.fromProto(proto.filters);
|
|
1243
|
+
}
|
|
1244
|
+
if (proto.pagingOptions) {
|
|
1245
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1246
|
+
}
|
|
1247
|
+
return m;
|
|
1248
|
+
}
|
|
1249
|
+
constructor(kwargs) {
|
|
1250
|
+
if (!kwargs) {
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1253
|
+
Object.assign(this, kwargs);
|
|
1254
|
+
}
|
|
1255
|
+
toApiJson() {
|
|
1256
|
+
const toReturn = {};
|
|
1257
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
1258
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
1259
|
+
}
|
|
1260
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1261
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1262
|
+
}
|
|
1263
|
+
if (typeof this.includeAssistantKeys !== 'undefined') {
|
|
1264
|
+
toReturn['includeAssistantKeys'] = this.includeAssistantKeys;
|
|
1265
|
+
}
|
|
1266
|
+
return toReturn;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
class ListConnectionsResponse {
|
|
1270
|
+
static fromProto(proto) {
|
|
1271
|
+
let m = new ListConnectionsResponse();
|
|
1272
|
+
m = Object.assign(m, proto);
|
|
1273
|
+
if (proto.connections) {
|
|
1274
|
+
m.connections = proto.connections.map(Connection.fromProto);
|
|
1275
|
+
}
|
|
1276
|
+
if (proto.metadata) {
|
|
1277
|
+
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
1278
|
+
}
|
|
1279
|
+
return m;
|
|
1280
|
+
}
|
|
1281
|
+
constructor(kwargs) {
|
|
1282
|
+
if (!kwargs) {
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
Object.assign(this, kwargs);
|
|
1286
|
+
}
|
|
1287
|
+
toApiJson() {
|
|
1288
|
+
const toReturn = {};
|
|
1289
|
+
if (typeof this.connections !== 'undefined' && this.connections !== null) {
|
|
1290
|
+
toReturn['connections'] = 'toApiJson' in this.connections ? this.connections.toApiJson() : this.connections;
|
|
1291
|
+
}
|
|
1292
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
1293
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
1294
|
+
}
|
|
1295
|
+
return toReturn;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
class ListPromptRequest {
|
|
1299
|
+
static fromProto(proto) {
|
|
1300
|
+
let m = new ListPromptRequest();
|
|
1301
|
+
m = Object.assign(m, proto);
|
|
1302
|
+
if (proto.pagingOptions) {
|
|
1303
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
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.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1316
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1317
|
+
}
|
|
1318
|
+
return toReturn;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
class ListPromptResponse {
|
|
1322
|
+
static fromProto(proto) {
|
|
1323
|
+
let m = new ListPromptResponse();
|
|
1324
|
+
m = Object.assign(m, proto);
|
|
1325
|
+
if (proto.prompts) {
|
|
1326
|
+
m.prompts = proto.prompts.map(Prompt.fromProto);
|
|
1327
|
+
}
|
|
1328
|
+
if (proto.metadata) {
|
|
1329
|
+
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
1330
|
+
}
|
|
1331
|
+
return m;
|
|
1332
|
+
}
|
|
1333
|
+
constructor(kwargs) {
|
|
1334
|
+
if (!kwargs) {
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
Object.assign(this, kwargs);
|
|
1338
|
+
}
|
|
1339
|
+
toApiJson() {
|
|
1340
|
+
const toReturn = {};
|
|
1341
|
+
if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
|
|
1342
|
+
toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
|
|
1343
|
+
}
|
|
1344
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
1345
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
1346
|
+
}
|
|
1347
|
+
return toReturn;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
class ListPromptVersionsRequest {
|
|
1351
|
+
static fromProto(proto) {
|
|
1352
|
+
let m = new ListPromptVersionsRequest();
|
|
1353
|
+
m = Object.assign(m, proto);
|
|
1354
|
+
if (proto.pagingOptions) {
|
|
1355
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1356
|
+
}
|
|
1357
|
+
return m;
|
|
1358
|
+
}
|
|
1359
|
+
constructor(kwargs) {
|
|
1360
|
+
if (!kwargs) {
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
Object.assign(this, kwargs);
|
|
1364
|
+
}
|
|
1365
|
+
toApiJson() {
|
|
1366
|
+
const toReturn = {};
|
|
1367
|
+
if (typeof this.id !== 'undefined') {
|
|
1368
|
+
toReturn['id'] = this.id;
|
|
1369
|
+
}
|
|
1370
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1371
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1372
|
+
}
|
|
1373
|
+
return toReturn;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
class ListPromptVersionsResponse {
|
|
1377
|
+
static fromProto(proto) {
|
|
1378
|
+
let m = new ListPromptVersionsResponse();
|
|
1379
|
+
m = Object.assign(m, proto);
|
|
1380
|
+
if (proto.promptVersions) {
|
|
1381
|
+
m.promptVersions = proto.promptVersions.map(PromptVersion.fromProto);
|
|
1382
|
+
}
|
|
1383
|
+
if (proto.metadata) {
|
|
1384
|
+
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
1385
|
+
}
|
|
1386
|
+
return m;
|
|
1387
|
+
}
|
|
1388
|
+
constructor(kwargs) {
|
|
1389
|
+
if (!kwargs) {
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
Object.assign(this, kwargs);
|
|
1393
|
+
}
|
|
1394
|
+
toApiJson() {
|
|
1395
|
+
const toReturn = {};
|
|
1396
|
+
if (typeof this.promptVersions !== 'undefined' && this.promptVersions !== null) {
|
|
1397
|
+
toReturn['promptVersions'] = 'toApiJson' in this.promptVersions ? this.promptVersions.toApiJson() : this.promptVersions;
|
|
1398
|
+
}
|
|
1399
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
1400
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
1401
|
+
}
|
|
1402
|
+
return toReturn;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
class GenerateChatAnswerRequestOptions {
|
|
1406
|
+
static fromProto(proto) {
|
|
1407
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
1408
|
+
m = Object.assign(m, proto);
|
|
1409
|
+
return m;
|
|
1410
|
+
}
|
|
1411
|
+
constructor(kwargs) {
|
|
1412
|
+
if (!kwargs) {
|
|
1413
|
+
return;
|
|
1414
|
+
}
|
|
1415
|
+
Object.assign(this, kwargs);
|
|
1416
|
+
}
|
|
1417
|
+
toApiJson() {
|
|
1418
|
+
const toReturn = {};
|
|
1419
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
1420
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
1421
|
+
}
|
|
1422
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
1423
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
1424
|
+
}
|
|
1425
|
+
return toReturn;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
class UpdatePromptRequest {
|
|
1429
|
+
static fromProto(proto) {
|
|
1430
|
+
let m = new UpdatePromptRequest();
|
|
1431
|
+
m = Object.assign(m, proto);
|
|
1432
|
+
return m;
|
|
1433
|
+
}
|
|
1434
|
+
constructor(kwargs) {
|
|
1435
|
+
if (!kwargs) {
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
Object.assign(this, kwargs);
|
|
1439
|
+
}
|
|
1440
|
+
toApiJson() {
|
|
1441
|
+
const toReturn = {};
|
|
1442
|
+
if (typeof this.id !== 'undefined') {
|
|
1443
|
+
toReturn['id'] = this.id;
|
|
1444
|
+
}
|
|
1445
|
+
if (typeof this.content !== 'undefined') {
|
|
1446
|
+
toReturn['content'] = this.content;
|
|
1447
|
+
}
|
|
1448
|
+
return toReturn;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
class UpsertAssistantRequest {
|
|
1452
|
+
static fromProto(proto) {
|
|
1453
|
+
let m = new UpsertAssistantRequest();
|
|
1454
|
+
m = Object.assign(m, proto);
|
|
1455
|
+
if (proto.assistant) {
|
|
1456
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
1457
|
+
}
|
|
1458
|
+
return m;
|
|
1459
|
+
}
|
|
1460
|
+
constructor(kwargs) {
|
|
1461
|
+
if (!kwargs) {
|
|
1462
|
+
return;
|
|
1463
|
+
}
|
|
1464
|
+
Object.assign(this, kwargs);
|
|
1465
|
+
}
|
|
1466
|
+
toApiJson() {
|
|
1467
|
+
const toReturn = {};
|
|
1468
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1469
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1470
|
+
}
|
|
1471
|
+
return toReturn;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
class UpsertAssistantResponse {
|
|
1475
|
+
static fromProto(proto) {
|
|
1476
|
+
let m = new UpsertAssistantResponse();
|
|
1477
|
+
m = Object.assign(m, proto);
|
|
1478
|
+
if (proto.assistant) {
|
|
1479
|
+
m.assistant = Assistant.fromProto(proto.assistant);
|
|
1480
|
+
}
|
|
1481
|
+
return m;
|
|
1482
|
+
}
|
|
1483
|
+
constructor(kwargs) {
|
|
1484
|
+
if (!kwargs) {
|
|
1485
|
+
return;
|
|
1486
|
+
}
|
|
1487
|
+
Object.assign(this, kwargs);
|
|
1488
|
+
}
|
|
1489
|
+
toApiJson() {
|
|
1490
|
+
const toReturn = {};
|
|
1491
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1492
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1493
|
+
}
|
|
1494
|
+
return toReturn;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
class UpsertConnectionRequest {
|
|
1498
|
+
static fromProto(proto) {
|
|
1499
|
+
let m = new UpsertConnectionRequest();
|
|
1500
|
+
m = Object.assign(m, proto);
|
|
1501
|
+
if (proto.connection) {
|
|
1502
|
+
m.connection = Connection.fromProto(proto.connection);
|
|
1503
|
+
}
|
|
1504
|
+
return m;
|
|
1505
|
+
}
|
|
1506
|
+
constructor(kwargs) {
|
|
1507
|
+
if (!kwargs) {
|
|
1508
|
+
return;
|
|
1509
|
+
}
|
|
1510
|
+
Object.assign(this, kwargs);
|
|
1511
|
+
}
|
|
1512
|
+
toApiJson() {
|
|
1513
|
+
const toReturn = {};
|
|
1514
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1515
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1516
|
+
}
|
|
1517
|
+
return toReturn;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
// *********************************
|
|
1522
|
+
// Code generated by sdkgen
|
|
1523
|
+
// DO NOT EDIT!.
|
|
1524
|
+
//
|
|
1525
|
+
// Objects Index.
|
|
1526
|
+
// *********************************
|
|
1527
|
+
|
|
1528
|
+
// *********************************
|
|
1529
|
+
// Code generated by sdkgen
|
|
1530
|
+
// DO NOT EDIT!.
|
|
1531
|
+
//
|
|
1532
|
+
// API Service.
|
|
1533
|
+
// *********************************
|
|
1534
|
+
class AssistantApiService {
|
|
1535
|
+
constructor() {
|
|
1536
|
+
this.hostService = inject(HostService);
|
|
1537
|
+
this.http = inject(HttpClient);
|
|
1538
|
+
this._host = this.hostService.hostWithScheme;
|
|
1539
|
+
}
|
|
1540
|
+
apiOptions() {
|
|
1541
|
+
return {
|
|
1542
|
+
headers: new HttpHeaders({
|
|
1543
|
+
'Content-Type': 'application/json'
|
|
1544
|
+
}),
|
|
1545
|
+
withCredentials: true
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
upsertAssistant(r) {
|
|
1549
|
+
const request = (r.toApiJson) ? r : new UpsertAssistantRequest(r);
|
|
1550
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/UpsertAssistant", request.toApiJson(), this.apiOptions())
|
|
1551
|
+
.pipe(map(resp => UpsertAssistantResponse.fromProto(resp)));
|
|
1552
|
+
}
|
|
1553
|
+
getAssistant(r) {
|
|
1554
|
+
const request = (r.toApiJson) ? r : new GetAssistantRequest(r);
|
|
1555
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
|
|
1556
|
+
.pipe(map(resp => GetAssistantResponse.fromProto(resp)));
|
|
1557
|
+
}
|
|
1558
|
+
deleteAssistant(r) {
|
|
1559
|
+
const request = (r.toApiJson) ? r : new DeleteAssistantRequest(r);
|
|
1560
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/DeleteAssistant", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1561
|
+
}
|
|
1562
|
+
listAssistant(r) {
|
|
1563
|
+
const request = (r.toApiJson) ? r : new ListAssistantRequest(r);
|
|
1564
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAssistant", request.toApiJson(), this.apiOptions())
|
|
1565
|
+
.pipe(map(resp => ListAssistantResponse.fromProto(resp)));
|
|
1566
|
+
}
|
|
1567
|
+
generateChatAnswer(r) {
|
|
1568
|
+
const request = (r.toApiJson) ? r : new GenerateChatAnswerRequest(r);
|
|
1569
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
1570
|
+
.pipe(map(resp => GenerateChatAnswerResponse.fromProto(resp)));
|
|
1571
|
+
}
|
|
1572
|
+
getChatAnswerFunctionExecutionJob(r) {
|
|
1573
|
+
const request = (r.toApiJson) ? r : new GetChatAnswerFunctionExecutionJobRequest(r);
|
|
1574
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetChatAnswerFunctionExecutionJob", request.toApiJson(), this.apiOptions())
|
|
1575
|
+
.pipe(map(resp => GetChatAnswerFunctionExecutionJobResponse.fromProto(resp)));
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1579
|
+
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, decorators: [{
|
|
1581
|
+
type: Injectable,
|
|
1582
|
+
args: [{ providedIn: 'root' }]
|
|
1583
|
+
}] });
|
|
1584
|
+
|
|
1585
|
+
// *********************************
|
|
1586
|
+
// Code generated by sdkgen
|
|
1587
|
+
// DO NOT EDIT!.
|
|
1588
|
+
//
|
|
1589
|
+
// API Service.
|
|
1590
|
+
// *********************************
|
|
1591
|
+
class ConnectionApiService {
|
|
1592
|
+
constructor() {
|
|
1593
|
+
this.hostService = inject(HostService);
|
|
1594
|
+
this.http = inject(HttpClient);
|
|
1595
|
+
this._host = this.hostService.hostWithScheme;
|
|
1596
|
+
}
|
|
1597
|
+
apiOptions() {
|
|
1598
|
+
return {
|
|
1599
|
+
headers: new HttpHeaders({
|
|
1600
|
+
'Content-Type': 'application/json'
|
|
1601
|
+
}),
|
|
1602
|
+
withCredentials: true
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
upsertConnection(r) {
|
|
1606
|
+
const request = (r.toApiJson) ? r : new UpsertConnectionRequest(r);
|
|
1607
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.ConnectionService/UpsertConnection", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1608
|
+
}
|
|
1609
|
+
getConnection(r) {
|
|
1610
|
+
const request = (r.toApiJson) ? r : new GetConnectionRequest(r);
|
|
1611
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.ConnectionService/GetConnection", request.toApiJson(), this.apiOptions())
|
|
1612
|
+
.pipe(map(resp => GetConnectionResponse.fromProto(resp)));
|
|
1613
|
+
}
|
|
1614
|
+
deleteConnection(r) {
|
|
1615
|
+
const request = (r.toApiJson) ? r : new DeleteConnectionRequest(r);
|
|
1616
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.ConnectionService/DeleteConnection", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1617
|
+
}
|
|
1618
|
+
listConnections(r) {
|
|
1619
|
+
const request = (r.toApiJson) ? r : new ListConnectionsRequest(r);
|
|
1620
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.ConnectionService/ListConnections", request.toApiJson(), this.apiOptions())
|
|
1621
|
+
.pipe(map(resp => ListConnectionsResponse.fromProto(resp)));
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
ConnectionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConnectionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1625
|
+
ConnectionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConnectionApiService, providedIn: 'root' });
|
|
1626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConnectionApiService, decorators: [{
|
|
1627
|
+
type: Injectable,
|
|
1628
|
+
args: [{ providedIn: 'root' }]
|
|
1629
|
+
}] });
|
|
1630
|
+
|
|
1631
|
+
// *********************************
|
|
1632
|
+
// Code generated by sdkgen
|
|
1633
|
+
// DO NOT EDIT!.
|
|
1634
|
+
//
|
|
1635
|
+
// API Service.
|
|
1636
|
+
// *********************************
|
|
1637
|
+
class PromptApiService {
|
|
1638
|
+
constructor() {
|
|
1639
|
+
this.hostService = inject(HostService);
|
|
1640
|
+
this.http = inject(HttpClient);
|
|
1641
|
+
this._host = this.hostService.hostWithScheme;
|
|
1642
|
+
}
|
|
1643
|
+
apiOptions() {
|
|
1644
|
+
return {
|
|
1645
|
+
headers: new HttpHeaders({
|
|
1646
|
+
'Content-Type': 'application/json'
|
|
1647
|
+
}),
|
|
1648
|
+
withCredentials: true
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
create(r) {
|
|
1652
|
+
const request = (r.toApiJson) ? r : new CreatePromptRequest(r);
|
|
1653
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Create", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1654
|
+
}
|
|
1655
|
+
get(r) {
|
|
1656
|
+
const request = (r.toApiJson) ? r : new GetPromptRequest(r);
|
|
1657
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Get", request.toApiJson(), this.apiOptions())
|
|
1658
|
+
.pipe(map(resp => GetPromptResponse.fromProto(resp)));
|
|
1659
|
+
}
|
|
1660
|
+
getVersion(r) {
|
|
1661
|
+
const request = (r.toApiJson) ? r : new GetPromptVersionRequest(r);
|
|
1662
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/GetVersion", request.toApiJson(), this.apiOptions())
|
|
1663
|
+
.pipe(map(resp => GetPromptVersionResponse.fromProto(resp)));
|
|
1664
|
+
}
|
|
1665
|
+
update(r) {
|
|
1666
|
+
const request = (r.toApiJson) ? r : new UpdatePromptRequest(r);
|
|
1667
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1668
|
+
}
|
|
1669
|
+
deploy(r) {
|
|
1670
|
+
const request = (r.toApiJson) ? r : new DeployPromptRequest(r);
|
|
1671
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Deploy", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1672
|
+
}
|
|
1673
|
+
list(r) {
|
|
1674
|
+
const request = (r.toApiJson) ? r : new ListPromptRequest(r);
|
|
1675
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/List", request.toApiJson(), this.apiOptions())
|
|
1676
|
+
.pipe(map(resp => ListPromptResponse.fromProto(resp)));
|
|
1677
|
+
}
|
|
1678
|
+
listVersions(r) {
|
|
1679
|
+
const request = (r.toApiJson) ? r : new ListPromptVersionsRequest(r);
|
|
1680
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/ListVersions", request.toApiJson(), this.apiOptions())
|
|
1681
|
+
.pipe(map(resp => ListPromptVersionsResponse.fromProto(resp)));
|
|
1682
|
+
}
|
|
1683
|
+
delete(r) {
|
|
1684
|
+
const request = (r.toApiJson) ? r : new DeletePromptRequest(r);
|
|
1685
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
PromptApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1689
|
+
PromptApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, providedIn: 'root' });
|
|
1690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptApiService, decorators: [{
|
|
1691
|
+
type: Injectable,
|
|
1692
|
+
args: [{ providedIn: 'root' }]
|
|
1693
|
+
}] });
|
|
1694
|
+
|
|
1695
|
+
// *********************************
|
|
1696
|
+
// Code generated by sdkgen
|
|
1697
|
+
// DO NOT EDIT!.
|
|
1698
|
+
//
|
|
1699
|
+
// Index.
|
|
1700
|
+
// *********************************
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* Generated bundle index. Do not edit.
|
|
1704
|
+
*/
|
|
1705
|
+
|
|
1706
|
+
export { Access, Assistant, AssistantApiService, 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, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, HostService, KeyValuePair, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptVersion, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest };
|
|
1707
|
+
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|