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