@vendasta/ai-assistants 0.6.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.
Files changed (47) hide show
  1. package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
  2. package/esm2020/lib/_internal/enums/goal.enum.mjs +14 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  4. package/esm2020/lib/_internal/function.api.service.mjs +58 -0
  5. package/esm2020/lib/_internal/goal.api.service.mjs +58 -0
  6. package/esm2020/lib/_internal/index.mjs +4 -1
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/function.interface.mjs +2 -0
  10. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +2 -0
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
  13. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -7
  14. package/esm2020/lib/_internal/objects/api.mjs +995 -74
  15. package/esm2020/lib/_internal/objects/assistant.mjs +31 -1
  16. package/esm2020/lib/_internal/objects/function.mjs +125 -0
  17. package/esm2020/lib/_internal/objects/goal.mjs +96 -0
  18. package/esm2020/lib/_internal/objects/index.mjs +7 -5
  19. package/esm2020/lib/_internal/objects/namespace.mjs +79 -1
  20. package/esm2020/lib/_internal/objects/prompt.mjs +119 -1
  21. package/esm2020/lib/_internal/prompt-module.api.service.mjs +81 -0
  22. package/fesm2015/vendasta-ai-assistants.mjs +2012 -462
  23. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  24. package/fesm2020/vendasta-ai-assistants.mjs +2012 -462
  25. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  26. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  27. package/lib/_internal/enums/goal.enum.d.ts +6 -0
  28. package/lib/_internal/enums/index.d.ts +1 -0
  29. package/lib/_internal/function.api.service.d.ts +18 -0
  30. package/lib/_internal/goal.api.service.d.ts +18 -0
  31. package/lib/_internal/index.d.ts +3 -0
  32. package/lib/_internal/interfaces/api.interface.d.ts +140 -4
  33. package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
  34. package/lib/_internal/interfaces/function.interface.d.ts +23 -0
  35. package/lib/_internal/interfaces/goal.interface.d.ts +19 -0
  36. package/lib/_internal/interfaces/index.d.ts +6 -4
  37. package/lib/_internal/interfaces/namespace.interface.d.ts +12 -0
  38. package/lib/_internal/interfaces/prompt.interface.d.ts +23 -0
  39. package/lib/_internal/objects/api.d.ts +249 -8
  40. package/lib/_internal/objects/assistant.d.ts +8 -0
  41. package/lib/_internal/objects/function.d.ts +34 -0
  42. package/lib/_internal/objects/goal.d.ts +27 -0
  43. package/lib/_internal/objects/index.d.ts +6 -4
  44. package/lib/_internal/objects/namespace.d.ts +21 -0
  45. package/lib/_internal/objects/prompt.d.ts +32 -0
  46. package/lib/_internal/prompt-module.api.service.d.ts +23 -0
  47. package/package.json +1 -1
@@ -2,10 +2,12 @@ import * as i from '../interfaces';
2
2
  import { Assistant, AssistantKey } from './assistant';
3
3
  import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
4
4
  import { ConnectionKey, Connection } from './connection';
5
+ import { Function, FunctionKey } from './function';
6
+ import { Goal, GoalKey } from './goal';
5
7
  import { KeyValuePair } from './common';
6
8
  import { Namespace } from './namespace';
7
9
  import { PagedRequestOptions, PagedResponseMetadata } from './paging';
8
- import { Prompt, PromptVersion } from './prompt';
10
+ import { Prompt, PromptVersion, PromptModuleKey, PromptModule, PromptModuleVersion } from './prompt';
9
11
  import * as e from '../enums';
10
12
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
11
13
  export declare class SetAssistantConnectionsRequestConnectionState implements i.SetAssistantConnectionsRequestConnectionStateInterface {
@@ -15,9 +17,18 @@ export declare class SetAssistantConnectionsRequestConnectionState implements i.
15
17
  constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
16
18
  toApiJson(): object;
17
19
  }
20
+ export declare class CreatePromptModuleRequest implements i.CreatePromptModuleRequestInterface {
21
+ id: string;
22
+ namespace: Namespace;
23
+ content: string;
24
+ static fromProto(proto: any): CreatePromptModuleRequest;
25
+ constructor(kwargs?: i.CreatePromptModuleRequestInterface);
26
+ toApiJson(): object;
27
+ }
18
28
  export declare class CreatePromptRequest implements i.CreatePromptRequestInterface {
19
29
  id: string;
20
30
  content: string;
31
+ description: string;
21
32
  static fromProto(proto: any): CreatePromptRequest;
22
33
  constructor(kwargs?: i.CreatePromptRequestInterface);
23
34
  toApiJson(): object;
@@ -37,12 +48,41 @@ export declare class DeleteConnectionRequest implements i.DeleteConnectionReques
37
48
  constructor(kwargs?: i.DeleteConnectionRequestInterface);
38
49
  toApiJson(): object;
39
50
  }
51
+ export declare class DeleteFunctionRequest implements i.DeleteFunctionRequestInterface {
52
+ id: string;
53
+ namespace: Namespace;
54
+ static fromProto(proto: any): DeleteFunctionRequest;
55
+ constructor(kwargs?: i.DeleteFunctionRequestInterface);
56
+ toApiJson(): object;
57
+ }
58
+ export declare class DeleteGoalRequest implements i.DeleteGoalRequestInterface {
59
+ id: string;
60
+ namespace: Namespace;
61
+ static fromProto(proto: any): DeleteGoalRequest;
62
+ constructor(kwargs?: i.DeleteGoalRequestInterface);
63
+ toApiJson(): object;
64
+ }
65
+ export declare class DeletePromptModuleRequest implements i.DeletePromptModuleRequestInterface {
66
+ id: string;
67
+ namespace: Namespace;
68
+ static fromProto(proto: any): DeletePromptModuleRequest;
69
+ constructor(kwargs?: i.DeletePromptModuleRequestInterface);
70
+ toApiJson(): object;
71
+ }
40
72
  export declare class DeletePromptRequest implements i.DeletePromptRequestInterface {
41
73
  id: string;
42
74
  static fromProto(proto: any): DeletePromptRequest;
43
75
  constructor(kwargs?: i.DeletePromptRequestInterface);
44
76
  toApiJson(): object;
45
77
  }
78
+ export declare class DeployPromptModuleRequest implements i.DeployPromptModuleRequestInterface {
79
+ id: string;
80
+ namespace: Namespace;
81
+ version: string;
82
+ static fromProto(proto: any): DeployPromptModuleRequest;
83
+ constructor(kwargs?: i.DeployPromptModuleRequestInterface);
84
+ toApiJson(): object;
85
+ }
46
86
  export declare class DeployPromptRequest implements i.DeployPromptRequestInterface {
47
87
  id: string;
48
88
  version: string;
@@ -50,11 +90,16 @@ export declare class DeployPromptRequest implements i.DeployPromptRequestInterfa
50
90
  constructor(kwargs?: i.DeployPromptRequestInterface);
51
91
  toApiJson(): object;
52
92
  }
53
- export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
54
- namespace: Namespace;
93
+ export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
55
94
  type: e.AssistantType;
56
- static fromProto(proto: any): ListAssistantRequestFilters;
57
- constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
95
+ static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
96
+ constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
97
+ toApiJson(): object;
98
+ }
99
+ export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
100
+ namespace: Namespace;
101
+ static fromProto(proto: any): ListFunctionRequestFilters;
102
+ constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
58
103
  toApiJson(): object;
59
104
  }
60
105
  export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
@@ -63,10 +108,23 @@ export declare class ListConnectionsRequestFilters implements i.ListConnectionsR
63
108
  constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
64
109
  toApiJson(): object;
65
110
  }
66
- export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
111
+ export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
112
+ namespace: Namespace;
67
113
  type: e.AssistantType;
68
- static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
69
- constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
114
+ static fromProto(proto: any): ListAssistantRequestFilters;
115
+ constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
116
+ toApiJson(): object;
117
+ }
118
+ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
119
+ namespace: Namespace;
120
+ static fromProto(proto: any): ListGoalsRequestFilters;
121
+ constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
122
+ toApiJson(): object;
123
+ }
124
+ export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
125
+ namespace: Namespace;
126
+ static fromProto(proto: any): ListPromptModuleRequestFilters;
127
+ constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
70
128
  toApiJson(): object;
71
129
  }
72
130
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
@@ -140,6 +198,46 @@ export declare class GetDeployedPromptVersionResponse implements i.GetDeployedPr
140
198
  constructor(kwargs?: i.GetDeployedPromptVersionResponseInterface);
141
199
  toApiJson(): object;
142
200
  }
201
+ export declare class GetFunctionRequest implements i.GetFunctionRequestInterface {
202
+ id: string;
203
+ namespace: Namespace;
204
+ static fromProto(proto: any): GetFunctionRequest;
205
+ constructor(kwargs?: i.GetFunctionRequestInterface);
206
+ toApiJson(): object;
207
+ }
208
+ export declare class GetFunctionResponse implements i.GetFunctionResponseInterface {
209
+ function: Function;
210
+ static fromProto(proto: any): GetFunctionResponse;
211
+ constructor(kwargs?: i.GetFunctionResponseInterface);
212
+ toApiJson(): object;
213
+ }
214
+ export declare class GetGoalRequest implements i.GetGoalRequestInterface {
215
+ id: string;
216
+ namespace: Namespace;
217
+ static fromProto(proto: any): GetGoalRequest;
218
+ constructor(kwargs?: i.GetGoalRequestInterface);
219
+ toApiJson(): object;
220
+ }
221
+ export declare class GetGoalResponse implements i.GetGoalResponseInterface {
222
+ goal: Goal;
223
+ static fromProto(proto: any): GetGoalResponse;
224
+ constructor(kwargs?: i.GetGoalResponseInterface);
225
+ toApiJson(): object;
226
+ }
227
+ export declare class GetHydratedDeployedPromptModuleVersionRequest implements i.GetHydratedDeployedPromptModuleVersionRequestInterface {
228
+ id: string;
229
+ namespace: Namespace;
230
+ variables: KeyValuePair[];
231
+ static fromProto(proto: any): GetHydratedDeployedPromptModuleVersionRequest;
232
+ constructor(kwargs?: i.GetHydratedDeployedPromptModuleVersionRequestInterface);
233
+ toApiJson(): object;
234
+ }
235
+ export declare class GetHydratedDeployedPromptModuleVersionResponse implements i.GetHydratedDeployedPromptModuleVersionResponseInterface {
236
+ content: string;
237
+ static fromProto(proto: any): GetHydratedDeployedPromptModuleVersionResponse;
238
+ constructor(kwargs?: i.GetHydratedDeployedPromptModuleVersionResponseInterface);
239
+ toApiJson(): object;
240
+ }
143
241
  export declare class GetMultiDeployedPromptVersionRequest implements i.GetMultiDeployedPromptVersionRequestInterface {
144
242
  ids: string[];
145
243
  static fromProto(proto: any): GetMultiDeployedPromptVersionRequest;
@@ -153,6 +251,70 @@ export declare class GetMultiDeployedPromptVersionResponse implements i.GetMulti
153
251
  constructor(kwargs?: i.GetMultiDeployedPromptVersionResponseInterface);
154
252
  toApiJson(): object;
155
253
  }
254
+ export declare class GetMultiFunctionRequest implements i.GetMultiFunctionRequestInterface {
255
+ keys: FunctionKey[];
256
+ static fromProto(proto: any): GetMultiFunctionRequest;
257
+ constructor(kwargs?: i.GetMultiFunctionRequestInterface);
258
+ toApiJson(): object;
259
+ }
260
+ export declare class GetMultiFunctionResponse implements i.GetMultiFunctionResponseInterface {
261
+ functions: Function[];
262
+ static fromProto(proto: any): GetMultiFunctionResponse;
263
+ constructor(kwargs?: i.GetMultiFunctionResponseInterface);
264
+ toApiJson(): object;
265
+ }
266
+ export declare class GetMultiGoalRequest implements i.GetMultiGoalRequestInterface {
267
+ keys: GoalKey[];
268
+ static fromProto(proto: any): GetMultiGoalRequest;
269
+ constructor(kwargs?: i.GetMultiGoalRequestInterface);
270
+ toApiJson(): object;
271
+ }
272
+ export declare class GetMultiGoalResponse implements i.GetMultiGoalResponseInterface {
273
+ goals: Goal[];
274
+ static fromProto(proto: any): GetMultiGoalResponse;
275
+ constructor(kwargs?: i.GetMultiGoalResponseInterface);
276
+ toApiJson(): object;
277
+ }
278
+ export declare class GetMultiHydratedDeployedPromptModuleVersionRequest implements i.GetMultiHydratedDeployedPromptModuleVersionRequestInterface {
279
+ keys: PromptModuleKey[];
280
+ variables: KeyValuePair[];
281
+ static fromProto(proto: any): GetMultiHydratedDeployedPromptModuleVersionRequest;
282
+ constructor(kwargs?: i.GetMultiHydratedDeployedPromptModuleVersionRequestInterface);
283
+ toApiJson(): object;
284
+ }
285
+ export declare class GetMultiHydratedDeployedPromptModuleVersionResponse implements i.GetMultiHydratedDeployedPromptModuleVersionResponseInterface {
286
+ contents: string[];
287
+ static fromProto(proto: any): GetMultiHydratedDeployedPromptModuleVersionResponse;
288
+ constructor(kwargs?: i.GetMultiHydratedDeployedPromptModuleVersionResponseInterface);
289
+ toApiJson(): object;
290
+ }
291
+ export declare class GetPromptModuleRequest implements i.GetPromptModuleRequestInterface {
292
+ id: string;
293
+ namespace: Namespace;
294
+ static fromProto(proto: any): GetPromptModuleRequest;
295
+ constructor(kwargs?: i.GetPromptModuleRequestInterface);
296
+ toApiJson(): object;
297
+ }
298
+ export declare class GetPromptModuleResponse implements i.GetPromptModuleResponseInterface {
299
+ promptModule: PromptModule;
300
+ static fromProto(proto: any): GetPromptModuleResponse;
301
+ constructor(kwargs?: i.GetPromptModuleResponseInterface);
302
+ toApiJson(): object;
303
+ }
304
+ export declare class GetPromptModuleVersionRequest implements i.GetPromptModuleVersionRequestInterface {
305
+ id: string;
306
+ namespace: Namespace;
307
+ version: string;
308
+ static fromProto(proto: any): GetPromptModuleVersionRequest;
309
+ constructor(kwargs?: i.GetPromptModuleVersionRequestInterface);
310
+ toApiJson(): object;
311
+ }
312
+ export declare class GetPromptModuleVersionResponse implements i.GetPromptModuleVersionResponseInterface {
313
+ promptModuleVersion: PromptModuleVersion;
314
+ static fromProto(proto: any): GetPromptModuleVersionResponse;
315
+ constructor(kwargs?: i.GetPromptModuleVersionResponseInterface);
316
+ toApiJson(): object;
317
+ }
156
318
  export declare class GetPromptRequest implements i.GetPromptRequestInterface {
157
319
  id: string;
158
320
  static fromProto(proto: any): GetPromptRequest;
@@ -220,6 +382,64 @@ export declare class ListConnectionsResponse implements i.ListConnectionsRespons
220
382
  constructor(kwargs?: i.ListConnectionsResponseInterface);
221
383
  toApiJson(): object;
222
384
  }
385
+ export declare class ListFunctionRequest implements i.ListFunctionRequestInterface {
386
+ filters: ListFunctionRequestFilters;
387
+ pagingOptions: PagedRequestOptions;
388
+ static fromProto(proto: any): ListFunctionRequest;
389
+ constructor(kwargs?: i.ListFunctionRequestInterface);
390
+ toApiJson(): object;
391
+ }
392
+ export declare class ListFunctionResponse implements i.ListFunctionResponseInterface {
393
+ functions: Function[];
394
+ metadata: PagedResponseMetadata;
395
+ static fromProto(proto: any): ListFunctionResponse;
396
+ constructor(kwargs?: i.ListFunctionResponseInterface);
397
+ toApiJson(): object;
398
+ }
399
+ export declare class ListGoalsRequest implements i.ListGoalsRequestInterface {
400
+ filters: ListGoalsRequestFilters;
401
+ pagingOptions: PagedRequestOptions;
402
+ static fromProto(proto: any): ListGoalsRequest;
403
+ constructor(kwargs?: i.ListGoalsRequestInterface);
404
+ toApiJson(): object;
405
+ }
406
+ export declare class ListGoalsResponse implements i.ListGoalsResponseInterface {
407
+ goals: Goal[];
408
+ metadata: PagedResponseMetadata;
409
+ static fromProto(proto: any): ListGoalsResponse;
410
+ constructor(kwargs?: i.ListGoalsResponseInterface);
411
+ toApiJson(): object;
412
+ }
413
+ export declare class ListPromptModuleRequest implements i.ListPromptModuleRequestInterface {
414
+ filters: ListPromptModuleRequestFilters;
415
+ pagingOptions: PagedRequestOptions;
416
+ static fromProto(proto: any): ListPromptModuleRequest;
417
+ constructor(kwargs?: i.ListPromptModuleRequestInterface);
418
+ toApiJson(): object;
419
+ }
420
+ export declare class ListPromptModuleResponse implements i.ListPromptModuleResponseInterface {
421
+ promptModules: PromptModule[];
422
+ deployedPromptModuleVersions: PromptModuleVersion[];
423
+ metadata: PagedResponseMetadata;
424
+ static fromProto(proto: any): ListPromptModuleResponse;
425
+ constructor(kwargs?: i.ListPromptModuleResponseInterface);
426
+ toApiJson(): object;
427
+ }
428
+ export declare class ListPromptModuleVersionsRequest implements i.ListPromptModuleVersionsRequestInterface {
429
+ id: string;
430
+ namespace: Namespace;
431
+ pagingOptions: PagedRequestOptions;
432
+ static fromProto(proto: any): ListPromptModuleVersionsRequest;
433
+ constructor(kwargs?: i.ListPromptModuleVersionsRequestInterface);
434
+ toApiJson(): object;
435
+ }
436
+ export declare class ListPromptModuleVersionsResponse implements i.ListPromptModuleVersionsResponseInterface {
437
+ promptModuleVersions: PromptModuleVersion[];
438
+ metadata: PagedResponseMetadata;
439
+ static fromProto(proto: any): ListPromptModuleVersionsResponse;
440
+ constructor(kwargs?: i.ListPromptModuleVersionsResponseInterface);
441
+ toApiJson(): object;
442
+ }
223
443
  export declare class ListPromptRequest implements i.ListPromptRequestInterface {
224
444
  pagingOptions: PagedRequestOptions;
225
445
  static fromProto(proto: any): ListPromptRequest;
@@ -262,9 +482,18 @@ export declare class SetAssistantConnectionsRequest implements i.SetAssistantCon
262
482
  constructor(kwargs?: i.SetAssistantConnectionsRequestInterface);
263
483
  toApiJson(): object;
264
484
  }
485
+ export declare class UpdatePromptModuleRequest implements i.UpdatePromptModuleRequestInterface {
486
+ id: string;
487
+ namespace: Namespace;
488
+ content: string;
489
+ static fromProto(proto: any): UpdatePromptModuleRequest;
490
+ constructor(kwargs?: i.UpdatePromptModuleRequestInterface);
491
+ toApiJson(): object;
492
+ }
265
493
  export declare class UpdatePromptRequest implements i.UpdatePromptRequestInterface {
266
494
  id: string;
267
495
  content: string;
496
+ description: string;
268
497
  static fromProto(proto: any): UpdatePromptRequest;
269
498
  constructor(kwargs?: i.UpdatePromptRequestInterface);
270
499
  toApiJson(): object;
@@ -287,3 +516,15 @@ export declare class UpsertConnectionRequest implements i.UpsertConnectionReques
287
516
  constructor(kwargs?: i.UpsertConnectionRequestInterface);
288
517
  toApiJson(): object;
289
518
  }
519
+ export declare class UpsertFunctionRequest implements i.UpsertFunctionRequestInterface {
520
+ function: Function;
521
+ static fromProto(proto: any): UpsertFunctionRequest;
522
+ constructor(kwargs?: i.UpsertFunctionRequestInterface);
523
+ toApiJson(): object;
524
+ }
525
+ export declare class UpsertGoalRequest implements i.UpsertGoalRequestInterface {
526
+ goal: Goal;
527
+ static fromProto(proto: any): UpsertGoalRequest;
528
+ constructor(kwargs?: i.UpsertGoalRequestInterface);
529
+ toApiJson(): object;
530
+ }
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { GoalKey } from './goal';
2
3
  import { Namespace } from './namespace';
3
4
  import * as e from '../enums';
4
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
@@ -9,6 +10,7 @@ export declare class Assistant implements i.AssistantInterface {
9
10
  type: e.AssistantType;
10
11
  avatarUrl: string;
11
12
  config: Config;
13
+ configurableGoals: ConfigurableGoal[];
12
14
  static fromProto(proto: any): Assistant;
13
15
  constructor(kwargs?: i.AssistantInterface);
14
16
  toApiJson(): object;
@@ -26,6 +28,12 @@ export declare class Config implements i.ConfigInterface {
26
28
  constructor(kwargs?: i.ConfigInterface);
27
29
  toApiJson(): object;
28
30
  }
31
+ export declare class ConfigurableGoal implements i.ConfigurableGoalInterface {
32
+ goalKey: GoalKey;
33
+ static fromProto(proto: any): ConfigurableGoal;
34
+ constructor(kwargs?: i.ConfigurableGoalInterface);
35
+ toApiJson(): object;
36
+ }
29
37
  export declare class ConfigInboxConfig implements i.ConfigInboxConfigInterface {
30
38
  leadCaptureEnabled: boolean;
31
39
  additionalInstructions: string;
@@ -0,0 +1,34 @@
1
+ import * as i from '../interfaces';
2
+ import { Namespace } from './namespace';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class Function implements i.FunctionInterface {
5
+ id: string;
6
+ namespace: Namespace;
7
+ description: string;
8
+ url: string;
9
+ methodType: string;
10
+ functionParameters: FunctionParameter[];
11
+ generatesAnswer: boolean;
12
+ updated: Date;
13
+ static fromProto(proto: any): Function;
14
+ constructor(kwargs?: i.FunctionInterface);
15
+ toApiJson(): object;
16
+ }
17
+ export declare class FunctionKey implements i.FunctionKeyInterface {
18
+ id: string;
19
+ namespace: Namespace;
20
+ static fromProto(proto: any): FunctionKey;
21
+ constructor(kwargs?: i.FunctionKeyInterface);
22
+ toApiJson(): object;
23
+ }
24
+ export declare class FunctionParameter implements i.FunctionParameterInterface {
25
+ name: string;
26
+ description: string;
27
+ type: string;
28
+ properties: FunctionParameter[];
29
+ items: FunctionParameter;
30
+ value: string;
31
+ static fromProto(proto: any): FunctionParameter;
32
+ constructor(kwargs?: i.FunctionParameterInterface);
33
+ toApiJson(): object;
34
+ }
@@ -0,0 +1,27 @@
1
+ import * as i from '../interfaces';
2
+ import { FunctionKey } from './function';
3
+ import { Namespace } from './namespace';
4
+ import { PromptModuleKey } from './prompt';
5
+ import * as e from '../enums';
6
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
7
+ export declare class Goal implements i.GoalInterface {
8
+ id: string;
9
+ namespace: Namespace;
10
+ name: string;
11
+ description: string;
12
+ type: e.GoalType;
13
+ promptModules: PromptModuleKey[];
14
+ functions: FunctionKey[];
15
+ updatedBy: string;
16
+ updated: Date;
17
+ static fromProto(proto: any): Goal;
18
+ constructor(kwargs?: i.GoalInterface);
19
+ toApiJson(): object;
20
+ }
21
+ export declare class GoalKey implements i.GoalKeyInterface {
22
+ id: string;
23
+ namespace: Namespace;
24
+ static fromProto(proto: any): GoalKey;
25
+ constructor(kwargs?: i.GoalKeyInterface);
26
+ toApiJson(): object;
27
+ }
@@ -1,9 +1,11 @@
1
- export { NamespaceAccountGroupNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
- export { Assistant, AssistantKey, Config, ConfigInboxConfig, } from './assistant';
1
+ export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
+ export { Function, FunctionKey, FunctionParameter, } from './function';
3
+ export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
4
+ export { Goal, GoalKey, } from './goal';
5
+ export { Assistant, AssistantKey, Config, ConfigurableGoal, ConfigInboxConfig, } from './assistant';
3
6
  export { Connection, ConnectionKey, } from './connection';
4
7
  export { KeyValuePair, } from './common';
5
8
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
6
- export { Prompt, PromptVersion, } from './prompt';
7
9
  export { Access, } from './annotations';
8
10
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
9
- export { SetAssistantConnectionsRequestConnectionState, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, ListAssistantRequestFilters, ListConnectionsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, SetAssistantConnectionsRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, } from './api';
11
+ export { SetAssistantConnectionsRequestConnectionState, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListFunctionRequestFilters, ListConnectionsRequestFilters, ListAssistantRequestFilters, ListGoalsRequestFilters, ListPromptModuleRequestFilters, GenerateChatAnswerRequest, 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, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, SetAssistantConnectionsRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
@@ -6,10 +6,31 @@ export declare class NamespaceAccountGroupNamespace implements i.NamespaceAccoun
6
6
  constructor(kwargs?: i.NamespaceAccountGroupNamespaceInterface);
7
7
  toApiJson(): object;
8
8
  }
9
+ export declare class NamespaceAccountGroupsForGroupNamespace implements i.NamespaceAccountGroupsForGroupNamespaceInterface {
10
+ groupId: string;
11
+ static fromProto(proto: any): NamespaceAccountGroupsForGroupNamespace;
12
+ constructor(kwargs?: i.NamespaceAccountGroupsForGroupNamespaceInterface);
13
+ toApiJson(): object;
14
+ }
15
+ export declare class NamespaceAccountGroupsForPartnerNamespace implements i.NamespaceAccountGroupsForPartnerNamespaceInterface {
16
+ partnerId: string;
17
+ static fromProto(proto: any): NamespaceAccountGroupsForPartnerNamespace;
18
+ constructor(kwargs?: i.NamespaceAccountGroupsForPartnerNamespaceInterface);
19
+ toApiJson(): object;
20
+ }
21
+ export declare class NamespaceGlobalNamespace implements i.NamespaceGlobalNamespaceInterface {
22
+ contextId: string;
23
+ static fromProto(proto: any): NamespaceGlobalNamespace;
24
+ constructor(kwargs?: i.NamespaceGlobalNamespaceInterface);
25
+ toApiJson(): object;
26
+ }
9
27
  export declare class Namespace implements i.NamespaceInterface {
10
28
  accountGroupNamespace: NamespaceAccountGroupNamespace;
11
29
  partnerNamespace: NamespacePartnerNamespace;
12
30
  systemNamespace: NamespaceSystemNamespace;
31
+ accountGroupsForPartnerNamespace: NamespaceAccountGroupsForPartnerNamespace;
32
+ accountGroupsForGroupNamespace: NamespaceAccountGroupsForGroupNamespace;
33
+ globalNamespace: NamespaceGlobalNamespace;
13
34
  static fromProto(proto: any): Namespace;
14
35
  constructor(kwargs?: i.NamespaceInterface);
15
36
  toApiJson(): object;
@@ -1,14 +1,46 @@
1
1
  import * as i from '../interfaces';
2
+ import { Namespace } from './namespace';
2
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
4
  export declare class Prompt implements i.PromptInterface {
4
5
  id: string;
5
6
  deployedVersion: string;
6
7
  deployedBy: string;
7
8
  updated: Date;
9
+ description: string;
10
+ deployed: Date;
8
11
  static fromProto(proto: any): Prompt;
9
12
  constructor(kwargs?: i.PromptInterface);
10
13
  toApiJson(): object;
11
14
  }
15
+ export declare class PromptModule implements i.PromptModuleInterface {
16
+ id: string;
17
+ namespace: Namespace;
18
+ name: string;
19
+ deployedVersion: string;
20
+ deployedBy: string;
21
+ updated: Date;
22
+ static fromProto(proto: any): PromptModule;
23
+ constructor(kwargs?: i.PromptModuleInterface);
24
+ toApiJson(): object;
25
+ }
26
+ export declare class PromptModuleKey implements i.PromptModuleKeyInterface {
27
+ id: string;
28
+ namespace: Namespace;
29
+ static fromProto(proto: any): PromptModuleKey;
30
+ constructor(kwargs?: i.PromptModuleKeyInterface);
31
+ toApiJson(): object;
32
+ }
33
+ export declare class PromptModuleVersion implements i.PromptModuleVersionInterface {
34
+ id: string;
35
+ namespace: Namespace;
36
+ version: string;
37
+ content: string;
38
+ createdBy: string;
39
+ created: Date;
40
+ static fromProto(proto: any): PromptModuleVersion;
41
+ constructor(kwargs?: i.PromptModuleVersionInterface);
42
+ toApiJson(): object;
43
+ }
12
44
  export declare class PromptVersion implements i.PromptVersionInterface {
13
45
  id: string;
14
46
  version: string;
@@ -0,0 +1,23 @@
1
+ import { CreatePromptModuleRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, UpdatePromptModuleRequest } from './objects/';
2
+ import { CreatePromptModuleRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface } from './interfaces/';
3
+ import { HttpResponse } from '@angular/common/http';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PromptModuleApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ create(r: CreatePromptModuleRequest | CreatePromptModuleRequestInterface): Observable<HttpResponse<null>>;
12
+ get(r: GetPromptModuleRequest | GetPromptModuleRequestInterface): Observable<GetPromptModuleResponse>;
13
+ getVersion(r: GetPromptModuleVersionRequest | GetPromptModuleVersionRequestInterface): Observable<GetPromptModuleVersionResponse>;
14
+ getHydratedDeployedVersion(r: GetHydratedDeployedPromptModuleVersionRequest | GetHydratedDeployedPromptModuleVersionRequestInterface): Observable<GetHydratedDeployedPromptModuleVersionResponse>;
15
+ getMultiHydratedDeployedVersion(r: GetMultiHydratedDeployedPromptModuleVersionRequest | GetMultiHydratedDeployedPromptModuleVersionRequestInterface): Observable<GetMultiHydratedDeployedPromptModuleVersionResponse>;
16
+ update(r: UpdatePromptModuleRequest | UpdatePromptModuleRequestInterface): Observable<HttpResponse<null>>;
17
+ deploy(r: DeployPromptModuleRequest | DeployPromptModuleRequestInterface): Observable<HttpResponse<null>>;
18
+ list(r: ListPromptModuleRequest | ListPromptModuleRequestInterface): Observable<ListPromptModuleResponse>;
19
+ listVersions(r: ListPromptModuleVersionsRequest | ListPromptModuleVersionsRequestInterface): Observable<ListPromptModuleVersionsResponse>;
20
+ delete(r: DeletePromptModuleRequest | DeletePromptModuleRequestInterface): Observable<HttpResponse<null>>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<PromptModuleApiService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<PromptModuleApiService>;
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"