@vendasta/ai-assistants 0.7.0 → 0.8.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.
@@ -115,6 +115,66 @@ class NamespaceAccountGroupNamespace {
115
115
  return toReturn;
116
116
  }
117
117
  }
118
+ class NamespaceAccountGroupsForGroupNamespace {
119
+ static fromProto(proto) {
120
+ let m = new NamespaceAccountGroupsForGroupNamespace();
121
+ m = Object.assign(m, proto);
122
+ return m;
123
+ }
124
+ constructor(kwargs) {
125
+ if (!kwargs) {
126
+ return;
127
+ }
128
+ Object.assign(this, kwargs);
129
+ }
130
+ toApiJson() {
131
+ const toReturn = {};
132
+ if (typeof this.groupId !== 'undefined') {
133
+ toReturn['groupId'] = this.groupId;
134
+ }
135
+ return toReturn;
136
+ }
137
+ }
138
+ class NamespaceAccountGroupsForPartnerNamespace {
139
+ static fromProto(proto) {
140
+ let m = new NamespaceAccountGroupsForPartnerNamespace();
141
+ m = Object.assign(m, proto);
142
+ return m;
143
+ }
144
+ constructor(kwargs) {
145
+ if (!kwargs) {
146
+ return;
147
+ }
148
+ Object.assign(this, kwargs);
149
+ }
150
+ toApiJson() {
151
+ const toReturn = {};
152
+ if (typeof this.partnerId !== 'undefined') {
153
+ toReturn['partnerId'] = this.partnerId;
154
+ }
155
+ return toReturn;
156
+ }
157
+ }
158
+ class NamespaceGlobalNamespace {
159
+ static fromProto(proto) {
160
+ let m = new NamespaceGlobalNamespace();
161
+ m = Object.assign(m, proto);
162
+ return m;
163
+ }
164
+ constructor(kwargs) {
165
+ if (!kwargs) {
166
+ return;
167
+ }
168
+ Object.assign(this, kwargs);
169
+ }
170
+ toApiJson() {
171
+ const toReturn = {};
172
+ if (typeof this.contextId !== 'undefined') {
173
+ toReturn['contextId'] = this.contextId;
174
+ }
175
+ return toReturn;
176
+ }
177
+ }
118
178
  class Namespace {
119
179
  static fromProto(proto) {
120
180
  let m = new Namespace();
@@ -128,6 +188,15 @@ class Namespace {
128
188
  if (proto.systemNamespace) {
129
189
  m.systemNamespace = NamespaceSystemNamespace.fromProto(proto.systemNamespace);
130
190
  }
191
+ if (proto.accountGroupsForPartnerNamespace) {
192
+ m.accountGroupsForPartnerNamespace = NamespaceAccountGroupsForPartnerNamespace.fromProto(proto.accountGroupsForPartnerNamespace);
193
+ }
194
+ if (proto.accountGroupsForGroupNamespace) {
195
+ m.accountGroupsForGroupNamespace = NamespaceAccountGroupsForGroupNamespace.fromProto(proto.accountGroupsForGroupNamespace);
196
+ }
197
+ if (proto.globalNamespace) {
198
+ m.globalNamespace = NamespaceGlobalNamespace.fromProto(proto.globalNamespace);
199
+ }
131
200
  return m;
132
201
  }
133
202
  constructor(kwargs) {
@@ -147,6 +216,15 @@ class Namespace {
147
216
  if (typeof this.systemNamespace !== 'undefined' && this.systemNamespace !== null) {
148
217
  toReturn['systemNamespace'] = 'toApiJson' in this.systemNamespace ? this.systemNamespace.toApiJson() : this.systemNamespace;
149
218
  }
219
+ if (typeof this.accountGroupsForPartnerNamespace !== 'undefined' && this.accountGroupsForPartnerNamespace !== null) {
220
+ toReturn['accountGroupsForPartnerNamespace'] = 'toApiJson' in this.accountGroupsForPartnerNamespace ? this.accountGroupsForPartnerNamespace.toApiJson() : this.accountGroupsForPartnerNamespace;
221
+ }
222
+ if (typeof this.accountGroupsForGroupNamespace !== 'undefined' && this.accountGroupsForGroupNamespace !== null) {
223
+ toReturn['accountGroupsForGroupNamespace'] = 'toApiJson' in this.accountGroupsForGroupNamespace ? this.accountGroupsForGroupNamespace.toApiJson() : this.accountGroupsForGroupNamespace;
224
+ }
225
+ if (typeof this.globalNamespace !== 'undefined' && this.globalNamespace !== null) {
226
+ toReturn['globalNamespace'] = 'toApiJson' in this.globalNamespace ? this.globalNamespace.toApiJson() : this.globalNamespace;
227
+ }
150
228
  return toReturn;
151
229
  }
152
230
  }
@@ -197,6 +275,56 @@ function enumStringToValue$9(enumRef, value) {
197
275
  }
198
276
  return enumRef[value];
199
277
  }
278
+ class Function {
279
+ static fromProto(proto) {
280
+ let m = new Function();
281
+ m = Object.assign(m, proto);
282
+ if (proto.namespace) {
283
+ m.namespace = Namespace.fromProto(proto.namespace);
284
+ }
285
+ if (proto.functionParameters) {
286
+ m.functionParameters = proto.functionParameters.map(FunctionParameter.fromProto);
287
+ }
288
+ if (proto.updated) {
289
+ m.updated = new Date(proto.updated);
290
+ }
291
+ return m;
292
+ }
293
+ constructor(kwargs) {
294
+ if (!kwargs) {
295
+ return;
296
+ }
297
+ Object.assign(this, kwargs);
298
+ }
299
+ toApiJson() {
300
+ const toReturn = {};
301
+ if (typeof this.id !== 'undefined') {
302
+ toReturn['id'] = this.id;
303
+ }
304
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
305
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
306
+ }
307
+ if (typeof this.description !== 'undefined') {
308
+ toReturn['description'] = this.description;
309
+ }
310
+ if (typeof this.url !== 'undefined') {
311
+ toReturn['url'] = this.url;
312
+ }
313
+ if (typeof this.methodType !== 'undefined') {
314
+ toReturn['methodType'] = this.methodType;
315
+ }
316
+ if (typeof this.functionParameters !== 'undefined' && this.functionParameters !== null) {
317
+ toReturn['functionParameters'] = 'toApiJson' in this.functionParameters ? this.functionParameters.toApiJson() : this.functionParameters;
318
+ }
319
+ if (typeof this.generatesAnswer !== 'undefined') {
320
+ toReturn['generatesAnswer'] = this.generatesAnswer;
321
+ }
322
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
323
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
324
+ }
325
+ return toReturn;
326
+ }
327
+ }
200
328
  class FunctionKey {
201
329
  static fromProto(proto) {
202
330
  let m = new FunctionKey();
@@ -223,6 +351,47 @@ class FunctionKey {
223
351
  return toReturn;
224
352
  }
225
353
  }
354
+ class FunctionParameter {
355
+ static fromProto(proto) {
356
+ let m = new FunctionParameter();
357
+ m = Object.assign(m, proto);
358
+ if (proto.properties) {
359
+ m.properties = proto.properties.map(FunctionParameter.fromProto);
360
+ }
361
+ if (proto.items) {
362
+ m.items = FunctionParameter.fromProto(proto.items);
363
+ }
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.name !== 'undefined') {
375
+ toReturn['name'] = this.name;
376
+ }
377
+ if (typeof this.description !== 'undefined') {
378
+ toReturn['description'] = this.description;
379
+ }
380
+ if (typeof this.type !== 'undefined') {
381
+ toReturn['type'] = this.type;
382
+ }
383
+ if (typeof this.properties !== 'undefined' && this.properties !== null) {
384
+ toReturn['properties'] = 'toApiJson' in this.properties ? this.properties.toApiJson() : this.properties;
385
+ }
386
+ if (typeof this.items !== 'undefined' && this.items !== null) {
387
+ toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
388
+ }
389
+ if (typeof this.value !== 'undefined') {
390
+ toReturn['value'] = this.value;
391
+ }
392
+ return toReturn;
393
+ }
394
+ }
226
395
 
227
396
  function enumStringToValue$8(enumRef, value) {
228
397
  if (typeof value === 'number') {
@@ -1147,6 +1316,32 @@ class DeleteConnectionRequest {
1147
1316
  return toReturn;
1148
1317
  }
1149
1318
  }
1319
+ class DeleteFunctionRequest {
1320
+ static fromProto(proto) {
1321
+ let m = new DeleteFunctionRequest();
1322
+ m = Object.assign(m, proto);
1323
+ if (proto.namespace) {
1324
+ m.namespace = Namespace.fromProto(proto.namespace);
1325
+ }
1326
+ return m;
1327
+ }
1328
+ constructor(kwargs) {
1329
+ if (!kwargs) {
1330
+ return;
1331
+ }
1332
+ Object.assign(this, kwargs);
1333
+ }
1334
+ toApiJson() {
1335
+ const toReturn = {};
1336
+ if (typeof this.id !== 'undefined') {
1337
+ toReturn['id'] = this.id;
1338
+ }
1339
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1340
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1341
+ }
1342
+ return toReturn;
1343
+ }
1344
+ }
1150
1345
  class DeleteGoalRequest {
1151
1346
  static fromProto(proto) {
1152
1347
  let m = new DeleteGoalRequest();
@@ -1271,9 +1466,32 @@ class DeployPromptRequest {
1271
1466
  return toReturn;
1272
1467
  }
1273
1468
  }
1274
- class ListPromptModuleRequestFilters {
1469
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
1275
1470
  static fromProto(proto) {
1276
- let m = new ListPromptModuleRequestFilters();
1471
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
1472
+ m = Object.assign(m, proto);
1473
+ if (proto.type) {
1474
+ m.type = enumStringToValue(AssistantType, proto.type);
1475
+ }
1476
+ return m;
1477
+ }
1478
+ constructor(kwargs) {
1479
+ if (!kwargs) {
1480
+ return;
1481
+ }
1482
+ Object.assign(this, kwargs);
1483
+ }
1484
+ toApiJson() {
1485
+ const toReturn = {};
1486
+ if (typeof this.type !== 'undefined') {
1487
+ toReturn['type'] = this.type;
1488
+ }
1489
+ return toReturn;
1490
+ }
1491
+ }
1492
+ class ListFunctionRequestFilters {
1493
+ static fromProto(proto) {
1494
+ let m = new ListFunctionRequestFilters();
1277
1495
  m = Object.assign(m, proto);
1278
1496
  if (proto.namespace) {
1279
1497
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -1294,9 +1512,9 @@ class ListPromptModuleRequestFilters {
1294
1512
  return toReturn;
1295
1513
  }
1296
1514
  }
1297
- class ListGoalsRequestFilters {
1515
+ class ListConnectionsRequestFilters {
1298
1516
  static fromProto(proto) {
1299
- let m = new ListGoalsRequestFilters();
1517
+ let m = new ListConnectionsRequestFilters();
1300
1518
  m = Object.assign(m, proto);
1301
1519
  if (proto.namespace) {
1302
1520
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -1317,10 +1535,13 @@ class ListGoalsRequestFilters {
1317
1535
  return toReturn;
1318
1536
  }
1319
1537
  }
1320
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
1538
+ class ListAssistantRequestFilters {
1321
1539
  static fromProto(proto) {
1322
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
1540
+ let m = new ListAssistantRequestFilters();
1323
1541
  m = Object.assign(m, proto);
1542
+ if (proto.namespace) {
1543
+ m.namespace = Namespace.fromProto(proto.namespace);
1544
+ }
1324
1545
  if (proto.type) {
1325
1546
  m.type = enumStringToValue(AssistantType, proto.type);
1326
1547
  }
@@ -1334,15 +1555,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
1334
1555
  }
1335
1556
  toApiJson() {
1336
1557
  const toReturn = {};
1558
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1559
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1560
+ }
1337
1561
  if (typeof this.type !== 'undefined') {
1338
1562
  toReturn['type'] = this.type;
1339
1563
  }
1340
1564
  return toReturn;
1341
1565
  }
1342
1566
  }
1343
- class ListConnectionsRequestFilters {
1567
+ class ListGoalsRequestFilters {
1344
1568
  static fromProto(proto) {
1345
- let m = new ListConnectionsRequestFilters();
1569
+ let m = new ListGoalsRequestFilters();
1346
1570
  m = Object.assign(m, proto);
1347
1571
  if (proto.namespace) {
1348
1572
  m.namespace = Namespace.fromProto(proto.namespace);
@@ -1363,16 +1587,13 @@ class ListConnectionsRequestFilters {
1363
1587
  return toReturn;
1364
1588
  }
1365
1589
  }
1366
- class ListAssistantRequestFilters {
1590
+ class ListPromptModuleRequestFilters {
1367
1591
  static fromProto(proto) {
1368
- let m = new ListAssistantRequestFilters();
1592
+ let m = new ListPromptModuleRequestFilters();
1369
1593
  m = Object.assign(m, proto);
1370
1594
  if (proto.namespace) {
1371
1595
  m.namespace = Namespace.fromProto(proto.namespace);
1372
1596
  }
1373
- if (proto.type) {
1374
- m.type = enumStringToValue(AssistantType, proto.type);
1375
- }
1376
1597
  return m;
1377
1598
  }
1378
1599
  constructor(kwargs) {
@@ -1386,9 +1607,6 @@ class ListAssistantRequestFilters {
1386
1607
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1387
1608
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1388
1609
  }
1389
- if (typeof this.type !== 'undefined') {
1390
- toReturn['type'] = this.type;
1391
- }
1392
1610
  return toReturn;
1393
1611
  }
1394
1612
  }
@@ -1664,6 +1882,55 @@ class GetDeployedPromptVersionResponse {
1664
1882
  return toReturn;
1665
1883
  }
1666
1884
  }
1885
+ class GetFunctionRequest {
1886
+ static fromProto(proto) {
1887
+ let m = new GetFunctionRequest();
1888
+ m = Object.assign(m, proto);
1889
+ if (proto.namespace) {
1890
+ m.namespace = Namespace.fromProto(proto.namespace);
1891
+ }
1892
+ return m;
1893
+ }
1894
+ constructor(kwargs) {
1895
+ if (!kwargs) {
1896
+ return;
1897
+ }
1898
+ Object.assign(this, kwargs);
1899
+ }
1900
+ toApiJson() {
1901
+ const toReturn = {};
1902
+ if (typeof this.id !== 'undefined') {
1903
+ toReturn['id'] = this.id;
1904
+ }
1905
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
1906
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
1907
+ }
1908
+ return toReturn;
1909
+ }
1910
+ }
1911
+ class GetFunctionResponse {
1912
+ static fromProto(proto) {
1913
+ let m = new GetFunctionResponse();
1914
+ m = Object.assign(m, proto);
1915
+ if (proto.function) {
1916
+ m.function = Function.fromProto(proto.function);
1917
+ }
1918
+ return m;
1919
+ }
1920
+ constructor(kwargs) {
1921
+ if (!kwargs) {
1922
+ return;
1923
+ }
1924
+ Object.assign(this, kwargs);
1925
+ }
1926
+ toApiJson() {
1927
+ const toReturn = {};
1928
+ if (typeof this.function !== 'undefined' && this.function !== null) {
1929
+ toReturn['function'] = 'toApiJson' in this.function ? this.function.toApiJson() : this.function;
1930
+ }
1931
+ return toReturn;
1932
+ }
1933
+ }
1667
1934
  class GetGoalRequest {
1668
1935
  static fromProto(proto) {
1669
1936
  let m = new GetGoalRequest();
@@ -1814,6 +2081,52 @@ class GetMultiDeployedPromptVersionResponse {
1814
2081
  return toReturn;
1815
2082
  }
1816
2083
  }
2084
+ class GetMultiFunctionRequest {
2085
+ static fromProto(proto) {
2086
+ let m = new GetMultiFunctionRequest();
2087
+ m = Object.assign(m, proto);
2088
+ if (proto.keys) {
2089
+ m.keys = proto.keys.map(FunctionKey.fromProto);
2090
+ }
2091
+ return m;
2092
+ }
2093
+ constructor(kwargs) {
2094
+ if (!kwargs) {
2095
+ return;
2096
+ }
2097
+ Object.assign(this, kwargs);
2098
+ }
2099
+ toApiJson() {
2100
+ const toReturn = {};
2101
+ if (typeof this.keys !== 'undefined' && this.keys !== null) {
2102
+ toReturn['keys'] = 'toApiJson' in this.keys ? this.keys.toApiJson() : this.keys;
2103
+ }
2104
+ return toReturn;
2105
+ }
2106
+ }
2107
+ class GetMultiFunctionResponse {
2108
+ static fromProto(proto) {
2109
+ let m = new GetMultiFunctionResponse();
2110
+ m = Object.assign(m, proto);
2111
+ if (proto.functions) {
2112
+ m.functions = proto.functions.map(Function.fromProto);
2113
+ }
2114
+ return m;
2115
+ }
2116
+ constructor(kwargs) {
2117
+ if (!kwargs) {
2118
+ return;
2119
+ }
2120
+ Object.assign(this, kwargs);
2121
+ }
2122
+ toApiJson() {
2123
+ const toReturn = {};
2124
+ if (typeof this.functions !== 'undefined' && this.functions !== null) {
2125
+ toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
2126
+ }
2127
+ return toReturn;
2128
+ }
2129
+ }
1817
2130
  class GetMultiGoalRequest {
1818
2131
  static fromProto(proto) {
1819
2132
  let m = new GetMultiGoalRequest();
@@ -2270,6 +2583,64 @@ class ListConnectionsResponse {
2270
2583
  return toReturn;
2271
2584
  }
2272
2585
  }
2586
+ class ListFunctionRequest {
2587
+ static fromProto(proto) {
2588
+ let m = new ListFunctionRequest();
2589
+ m = Object.assign(m, proto);
2590
+ if (proto.filters) {
2591
+ m.filters = ListFunctionRequestFilters.fromProto(proto.filters);
2592
+ }
2593
+ if (proto.pagingOptions) {
2594
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
2595
+ }
2596
+ return m;
2597
+ }
2598
+ constructor(kwargs) {
2599
+ if (!kwargs) {
2600
+ return;
2601
+ }
2602
+ Object.assign(this, kwargs);
2603
+ }
2604
+ toApiJson() {
2605
+ const toReturn = {};
2606
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
2607
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
2608
+ }
2609
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
2610
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
2611
+ }
2612
+ return toReturn;
2613
+ }
2614
+ }
2615
+ class ListFunctionResponse {
2616
+ static fromProto(proto) {
2617
+ let m = new ListFunctionResponse();
2618
+ m = Object.assign(m, proto);
2619
+ if (proto.functions) {
2620
+ m.functions = proto.functions.map(Function.fromProto);
2621
+ }
2622
+ if (proto.metadata) {
2623
+ m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
2624
+ }
2625
+ return m;
2626
+ }
2627
+ constructor(kwargs) {
2628
+ if (!kwargs) {
2629
+ return;
2630
+ }
2631
+ Object.assign(this, kwargs);
2632
+ }
2633
+ toApiJson() {
2634
+ const toReturn = {};
2635
+ if (typeof this.functions !== 'undefined' && this.functions !== null) {
2636
+ toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
2637
+ }
2638
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
2639
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
2640
+ }
2641
+ return toReturn;
2642
+ }
2643
+ }
2273
2644
  class ListGoalsRequest {
2274
2645
  static fromProto(proto) {
2275
2646
  let m = new ListGoalsRequest();
@@ -2742,6 +3113,29 @@ class UpsertConnectionRequest {
2742
3113
  return toReturn;
2743
3114
  }
2744
3115
  }
3116
+ class UpsertFunctionRequest {
3117
+ static fromProto(proto) {
3118
+ let m = new UpsertFunctionRequest();
3119
+ m = Object.assign(m, proto);
3120
+ if (proto.function) {
3121
+ m.function = Function.fromProto(proto.function);
3122
+ }
3123
+ return m;
3124
+ }
3125
+ constructor(kwargs) {
3126
+ if (!kwargs) {
3127
+ return;
3128
+ }
3129
+ Object.assign(this, kwargs);
3130
+ }
3131
+ toApiJson() {
3132
+ const toReturn = {};
3133
+ if (typeof this.function !== 'undefined' && this.function !== null) {
3134
+ toReturn['function'] = 'toApiJson' in this.function ? this.function.toApiJson() : this.function;
3135
+ }
3136
+ return toReturn;
3137
+ }
3138
+ }
2745
3139
  class UpsertGoalRequest {
2746
3140
  static fromProto(proto) {
2747
3141
  let m = new UpsertGoalRequest();
@@ -2885,6 +3279,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2885
3279
  args: [{ providedIn: 'root' }]
2886
3280
  }] });
2887
3281
 
3282
+ // *********************************
3283
+ // Code generated by sdkgen
3284
+ // DO NOT EDIT!.
3285
+ //
3286
+ // API Service.
3287
+ // *********************************
3288
+ class FunctionApiService {
3289
+ constructor() {
3290
+ this.hostService = inject(HostService);
3291
+ this.http = inject(HttpClient);
3292
+ this._host = this.hostService.hostWithScheme;
3293
+ }
3294
+ apiOptions() {
3295
+ return {
3296
+ headers: new HttpHeaders({
3297
+ 'Content-Type': 'application/json'
3298
+ }),
3299
+ withCredentials: true
3300
+ };
3301
+ }
3302
+ upsert(r) {
3303
+ const request = (r.toApiJson) ? r : new UpsertFunctionRequest(r);
3304
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/Upsert", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
3305
+ }
3306
+ get(r) {
3307
+ const request = (r.toApiJson) ? r : new GetFunctionRequest(r);
3308
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/Get", request.toApiJson(), this.apiOptions())
3309
+ .pipe(map(resp => GetFunctionResponse.fromProto(resp)));
3310
+ }
3311
+ getMulti(r) {
3312
+ const request = (r.toApiJson) ? r : new GetMultiFunctionRequest(r);
3313
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/GetMulti", request.toApiJson(), this.apiOptions())
3314
+ .pipe(map(resp => GetMultiFunctionResponse.fromProto(resp)));
3315
+ }
3316
+ list(r) {
3317
+ const request = (r.toApiJson) ? r : new ListFunctionRequest(r);
3318
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/List", request.toApiJson(), this.apiOptions())
3319
+ .pipe(map(resp => ListFunctionResponse.fromProto(resp)));
3320
+ }
3321
+ delete(r) {
3322
+ const request = (r.toApiJson) ? r : new DeleteFunctionRequest(r);
3323
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/Delete", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
3324
+ }
3325
+ }
3326
+ FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3327
+ FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
3328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, decorators: [{
3329
+ type: Injectable,
3330
+ args: [{ providedIn: 'root' }]
3331
+ }] });
3332
+
2888
3333
  // *********************************
2889
3334
  // Code generated by sdkgen
2890
3335
  // DO NOT EDIT!.
@@ -3095,5 +3540,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3095
3540
  * Generated bundle index. Do not edit.
3096
3541
  */
3097
3542
 
3098
- export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, FunctionKey, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalKey, GoalType, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertGoalRequest };
3543
+ export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionKey, FunctionParameter, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, 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, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
3099
3544
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map