@vendasta/ai-assistants 0.7.0 → 0.9.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 (31) hide show
  1. package/esm2020/lib/_internal/enums/goal.enum.mjs +5 -4
  2. package/esm2020/lib/_internal/function.api.service.mjs +58 -0
  3. package/esm2020/lib/_internal/index.mjs +2 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/connection.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/api.mjs +249 -17
  10. package/esm2020/lib/_internal/objects/connection.mjs +8 -1
  11. package/esm2020/lib/_internal/objects/function.mjs +92 -1
  12. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  13. package/esm2020/lib/_internal/objects/namespace.mjs +79 -1
  14. package/fesm2015/vendasta-ai-assistants.mjs +478 -20
  15. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  16. package/fesm2020/vendasta-ai-assistants.mjs +478 -20
  17. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  18. package/lib/_internal/enums/goal.enum.d.ts +4 -3
  19. package/lib/_internal/function.api.service.d.ts +18 -0
  20. package/lib/_internal/index.d.ts +1 -0
  21. package/lib/_internal/interfaces/api.interface.d.ts +39 -6
  22. package/lib/_internal/interfaces/connection.interface.d.ts +2 -0
  23. package/lib/_internal/interfaces/function.interface.d.ts +18 -0
  24. package/lib/_internal/interfaces/index.d.ts +3 -3
  25. package/lib/_internal/interfaces/namespace.interface.d.ts +12 -0
  26. package/lib/_internal/objects/api.d.ts +72 -12
  27. package/lib/_internal/objects/connection.d.ts +2 -0
  28. package/lib/_internal/objects/function.d.ts +24 -0
  29. package/lib/_internal/objects/index.d.ts +3 -3
  30. package/lib/_internal/objects/namespace.d.ts +21 -0
  31. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  export declare enum GoalType {
2
2
  GOAL_TYPE_INVALID = 0,
3
- GOAL_TYPE_KNOWLEDGE = 1,
4
- GOAL_TYPE_PERSONALITY = 2,
5
- GOAL_TYPE_CUSTOM = 3
3
+ GOAL_TYPE_OBJECTIVE = 1,
4
+ GOAL_TYPE_KNOWLEDGE = 2,
5
+ GOAL_TYPE_PERSONALITY = 3,
6
+ GOAL_TYPE_CUSTOM = 4
6
7
  }
@@ -0,0 +1,18 @@
1
+ import { DeleteFunctionRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, UpsertFunctionRequest } from './objects/';
2
+ import { DeleteFunctionRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, UpsertFunctionRequestInterface } 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 FunctionApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ upsert(r: UpsertFunctionRequest | UpsertFunctionRequestInterface): Observable<HttpResponse<null>>;
12
+ get(r: GetFunctionRequest | GetFunctionRequestInterface): Observable<GetFunctionResponse>;
13
+ getMulti(r: GetMultiFunctionRequest | GetMultiFunctionRequestInterface): Observable<GetMultiFunctionResponse>;
14
+ list(r: ListFunctionRequest | ListFunctionRequestInterface): Observable<ListFunctionResponse>;
15
+ delete(r: DeleteFunctionRequest | DeleteFunctionRequestInterface): Observable<HttpResponse<null>>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FunctionApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<FunctionApiService>;
18
+ }
@@ -3,6 +3,7 @@ export * from './objects';
3
3
  export * from './interfaces';
4
4
  export { AssistantApiService } from './assistant.api.service';
5
5
  export { ConnectionApiService } from './connection.api.service';
6
+ export { FunctionApiService } from './function.api.service';
6
7
  export { GoalApiService } from './goal.api.service';
7
8
  export { PromptModuleApiService } from './prompt-module.api.service';
8
9
  export { PromptApiService } from './prompt.api.service';
@@ -1,6 +1,7 @@
1
1
  import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
2
2
  import { ChatMessageInterface, ChatUserInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
3
3
  import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
4
+ import { FunctionInterface, FunctionKeyInterface } from './function.interface';
4
5
  import { GoalInterface, GoalKeyInterface } from './goal.interface';
5
6
  import { KeyValuePairInterface } from './common.interface';
6
7
  import { NamespaceInterface } from './namespace.interface';
@@ -30,6 +31,10 @@ export interface DeleteConnectionRequestInterface {
30
31
  connectionType?: string;
31
32
  namespace?: NamespaceInterface;
32
33
  }
34
+ export interface DeleteFunctionRequestInterface {
35
+ id?: string;
36
+ namespace?: NamespaceInterface;
37
+ }
33
38
  export interface DeleteGoalRequestInterface {
34
39
  id?: string;
35
40
  namespace?: NamespaceInterface;
@@ -50,22 +55,26 @@ export interface DeployPromptRequestInterface {
50
55
  id?: string;
51
56
  version?: string;
52
57
  }
53
- export interface ListPromptModuleRequestFiltersInterface {
54
- namespace?: NamespaceInterface;
55
- }
56
- export interface ListGoalsRequestFiltersInterface {
57
- namespace?: NamespaceInterface;
58
- }
59
58
  export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
60
59
  type?: e.AssistantType;
61
60
  }
61
+ export interface ListFunctionRequestFiltersInterface {
62
+ namespace?: NamespaceInterface;
63
+ }
62
64
  export interface ListConnectionsRequestFiltersInterface {
63
65
  namespace?: NamespaceInterface;
66
+ assistantType?: e.AssistantType;
64
67
  }
65
68
  export interface ListAssistantRequestFiltersInterface {
66
69
  namespace?: NamespaceInterface;
67
70
  type?: e.AssistantType;
68
71
  }
72
+ export interface ListGoalsRequestFiltersInterface {
73
+ namespace?: NamespaceInterface;
74
+ }
75
+ export interface ListPromptModuleRequestFiltersInterface {
76
+ namespace?: NamespaceInterface;
77
+ }
69
78
  export interface GenerateChatAnswerRequestInterface {
70
79
  connectionKey?: ConnectionKeyInterface;
71
80
  chatHistory?: ChatMessageInterface[];
@@ -107,6 +116,13 @@ export interface GetDeployedPromptVersionResponseInterface {
107
116
  prompt?: PromptInterface;
108
117
  deployedPromptVersion?: PromptVersionInterface;
109
118
  }
119
+ export interface GetFunctionRequestInterface {
120
+ id?: string;
121
+ namespace?: NamespaceInterface;
122
+ }
123
+ export interface GetFunctionResponseInterface {
124
+ function?: FunctionInterface;
125
+ }
110
126
  export interface GetGoalRequestInterface {
111
127
  id?: string;
112
128
  namespace?: NamespaceInterface;
@@ -129,6 +145,12 @@ export interface GetMultiDeployedPromptVersionResponseInterface {
129
145
  prompts?: PromptInterface[];
130
146
  deployedPromptVersions?: PromptVersionInterface[];
131
147
  }
148
+ export interface GetMultiFunctionRequestInterface {
149
+ keys?: FunctionKeyInterface[];
150
+ }
151
+ export interface GetMultiFunctionResponseInterface {
152
+ functions?: FunctionInterface[];
153
+ }
132
154
  export interface GetMultiGoalRequestInterface {
133
155
  keys?: GoalKeyInterface[];
134
156
  }
@@ -194,6 +216,14 @@ export interface ListConnectionsResponseInterface {
194
216
  connections?: ConnectionInterface[];
195
217
  metadata?: PagedResponseMetadataInterface;
196
218
  }
219
+ export interface ListFunctionRequestInterface {
220
+ filters?: ListFunctionRequestFiltersInterface;
221
+ pagingOptions?: PagedRequestOptionsInterface;
222
+ }
223
+ export interface ListFunctionResponseInterface {
224
+ functions?: FunctionInterface[];
225
+ metadata?: PagedResponseMetadataInterface;
226
+ }
197
227
  export interface ListGoalsRequestInterface {
198
228
  filters?: ListGoalsRequestFiltersInterface;
199
229
  pagingOptions?: PagedRequestOptionsInterface;
@@ -263,6 +293,9 @@ export interface UpsertAssistantResponseInterface {
263
293
  export interface UpsertConnectionRequestInterface {
264
294
  connection?: ConnectionInterface;
265
295
  }
296
+ export interface UpsertFunctionRequestInterface {
297
+ function?: FunctionInterface;
298
+ }
266
299
  export interface UpsertGoalRequestInterface {
267
300
  goal?: GoalInterface;
268
301
  }
@@ -1,5 +1,6 @@
1
1
  import { AssistantKeyInterface } from './assistant.interface';
2
2
  import { NamespaceInterface } from './namespace.interface';
3
+ import * as e from '../enums';
3
4
  export interface ConnectionInterface {
4
5
  id?: string;
5
6
  namespace?: NamespaceInterface;
@@ -10,6 +11,7 @@ export interface ConnectionInterface {
10
11
  connectionTypeName?: string;
11
12
  iconUrl?: string;
12
13
  isConnectionLocked?: boolean;
14
+ supportedAssistantTypes?: e.AssistantType[];
13
15
  }
14
16
  export interface ConnectionKeyInterface {
15
17
  id?: string;
@@ -1,5 +1,23 @@
1
1
  import { NamespaceInterface } from './namespace.interface';
2
+ export interface FunctionInterface {
3
+ id?: string;
4
+ namespace?: NamespaceInterface;
5
+ description?: string;
6
+ url?: string;
7
+ methodType?: string;
8
+ functionParameters?: FunctionParameterInterface[];
9
+ generatesAnswer?: boolean;
10
+ updated?: Date;
11
+ }
2
12
  export interface FunctionKeyInterface {
3
13
  id?: string;
4
14
  namespace?: NamespaceInterface;
5
15
  }
16
+ export interface FunctionParameterInterface {
17
+ name?: string;
18
+ description?: string;
19
+ type?: string;
20
+ properties?: FunctionParameterInterface[];
21
+ items?: FunctionParameterInterface;
22
+ value?: string;
23
+ }
@@ -1,5 +1,5 @@
1
- export { NamespaceAccountGroupNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
- export { FunctionKeyInterface, } from './function.interface';
1
+ export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
+ export { FunctionInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
3
3
  export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
4
4
  export { GoalInterface, GoalKeyInterface, } from './goal.interface';
5
5
  export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, ConfigInboxConfigInterface, } from './assistant.interface';
@@ -8,4 +8,4 @@ export { KeyValuePairInterface, } from './common.interface';
8
8
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
9
9
  export { AccessInterface, } from './annotations.interface';
10
10
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
11
- export { SetAssistantConnectionsRequestConnectionStateInterface, CreatePromptModuleRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ListPromptModuleRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAssistantRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
11
+ export { SetAssistantConnectionsRequestConnectionStateInterface, CreatePromptModuleRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
@@ -1,10 +1,22 @@
1
1
  export interface NamespaceAccountGroupNamespaceInterface {
2
2
  accountGroupId?: string;
3
3
  }
4
+ export interface NamespaceAccountGroupsForGroupNamespaceInterface {
5
+ groupId?: string;
6
+ }
7
+ export interface NamespaceAccountGroupsForPartnerNamespaceInterface {
8
+ partnerId?: string;
9
+ }
10
+ export interface NamespaceGlobalNamespaceInterface {
11
+ contextId?: string;
12
+ }
4
13
  export interface NamespaceInterface {
5
14
  accountGroupNamespace?: NamespaceAccountGroupNamespaceInterface;
6
15
  partnerNamespace?: NamespacePartnerNamespaceInterface;
7
16
  systemNamespace?: NamespaceSystemNamespaceInterface;
17
+ accountGroupsForPartnerNamespace?: NamespaceAccountGroupsForPartnerNamespaceInterface;
18
+ accountGroupsForGroupNamespace?: NamespaceAccountGroupsForGroupNamespaceInterface;
19
+ globalNamespace?: NamespaceGlobalNamespaceInterface;
8
20
  }
9
21
  export interface NamespacePartnerNamespaceInterface {
10
22
  partnerId?: string;
@@ -2,6 +2,7 @@ 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';
5
6
  import { Goal, GoalKey } from './goal';
6
7
  import { KeyValuePair } from './common';
7
8
  import { Namespace } from './namespace';
@@ -47,6 +48,13 @@ export declare class DeleteConnectionRequest implements i.DeleteConnectionReques
47
48
  constructor(kwargs?: i.DeleteConnectionRequestInterface);
48
49
  toApiJson(): object;
49
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
+ }
50
58
  export declare class DeleteGoalRequest implements i.DeleteGoalRequestInterface {
51
59
  id: string;
52
60
  namespace: Namespace;
@@ -82,26 +90,21 @@ export declare class DeployPromptRequest implements i.DeployPromptRequestInterfa
82
90
  constructor(kwargs?: i.DeployPromptRequestInterface);
83
91
  toApiJson(): object;
84
92
  }
85
- export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
86
- namespace: Namespace;
87
- static fromProto(proto: any): ListPromptModuleRequestFilters;
88
- constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
89
- toApiJson(): object;
90
- }
91
- export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
92
- namespace: Namespace;
93
- static fromProto(proto: any): ListGoalsRequestFilters;
94
- constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
95
- toApiJson(): object;
96
- }
97
93
  export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
98
94
  type: e.AssistantType;
99
95
  static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
100
96
  constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
101
97
  toApiJson(): object;
102
98
  }
99
+ export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
100
+ namespace: Namespace;
101
+ static fromProto(proto: any): ListFunctionRequestFilters;
102
+ constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
103
+ toApiJson(): object;
104
+ }
103
105
  export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
104
106
  namespace: Namespace;
107
+ assistantType: e.AssistantType;
105
108
  static fromProto(proto: any): ListConnectionsRequestFilters;
106
109
  constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
107
110
  toApiJson(): object;
@@ -113,6 +116,18 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
113
116
  constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
114
117
  toApiJson(): object;
115
118
  }
119
+ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
120
+ namespace: Namespace;
121
+ static fromProto(proto: any): ListGoalsRequestFilters;
122
+ constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
123
+ toApiJson(): object;
124
+ }
125
+ export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
126
+ namespace: Namespace;
127
+ static fromProto(proto: any): ListPromptModuleRequestFilters;
128
+ constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
129
+ toApiJson(): object;
130
+ }
116
131
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
117
132
  connectionKey: ConnectionKey;
118
133
  chatHistory: ChatMessage[];
@@ -184,6 +199,19 @@ export declare class GetDeployedPromptVersionResponse implements i.GetDeployedPr
184
199
  constructor(kwargs?: i.GetDeployedPromptVersionResponseInterface);
185
200
  toApiJson(): object;
186
201
  }
202
+ export declare class GetFunctionRequest implements i.GetFunctionRequestInterface {
203
+ id: string;
204
+ namespace: Namespace;
205
+ static fromProto(proto: any): GetFunctionRequest;
206
+ constructor(kwargs?: i.GetFunctionRequestInterface);
207
+ toApiJson(): object;
208
+ }
209
+ export declare class GetFunctionResponse implements i.GetFunctionResponseInterface {
210
+ function: Function;
211
+ static fromProto(proto: any): GetFunctionResponse;
212
+ constructor(kwargs?: i.GetFunctionResponseInterface);
213
+ toApiJson(): object;
214
+ }
187
215
  export declare class GetGoalRequest implements i.GetGoalRequestInterface {
188
216
  id: string;
189
217
  namespace: Namespace;
@@ -224,6 +252,18 @@ export declare class GetMultiDeployedPromptVersionResponse implements i.GetMulti
224
252
  constructor(kwargs?: i.GetMultiDeployedPromptVersionResponseInterface);
225
253
  toApiJson(): object;
226
254
  }
255
+ export declare class GetMultiFunctionRequest implements i.GetMultiFunctionRequestInterface {
256
+ keys: FunctionKey[];
257
+ static fromProto(proto: any): GetMultiFunctionRequest;
258
+ constructor(kwargs?: i.GetMultiFunctionRequestInterface);
259
+ toApiJson(): object;
260
+ }
261
+ export declare class GetMultiFunctionResponse implements i.GetMultiFunctionResponseInterface {
262
+ functions: Function[];
263
+ static fromProto(proto: any): GetMultiFunctionResponse;
264
+ constructor(kwargs?: i.GetMultiFunctionResponseInterface);
265
+ toApiJson(): object;
266
+ }
227
267
  export declare class GetMultiGoalRequest implements i.GetMultiGoalRequestInterface {
228
268
  keys: GoalKey[];
229
269
  static fromProto(proto: any): GetMultiGoalRequest;
@@ -343,6 +383,20 @@ export declare class ListConnectionsResponse implements i.ListConnectionsRespons
343
383
  constructor(kwargs?: i.ListConnectionsResponseInterface);
344
384
  toApiJson(): object;
345
385
  }
386
+ export declare class ListFunctionRequest implements i.ListFunctionRequestInterface {
387
+ filters: ListFunctionRequestFilters;
388
+ pagingOptions: PagedRequestOptions;
389
+ static fromProto(proto: any): ListFunctionRequest;
390
+ constructor(kwargs?: i.ListFunctionRequestInterface);
391
+ toApiJson(): object;
392
+ }
393
+ export declare class ListFunctionResponse implements i.ListFunctionResponseInterface {
394
+ functions: Function[];
395
+ metadata: PagedResponseMetadata;
396
+ static fromProto(proto: any): ListFunctionResponse;
397
+ constructor(kwargs?: i.ListFunctionResponseInterface);
398
+ toApiJson(): object;
399
+ }
346
400
  export declare class ListGoalsRequest implements i.ListGoalsRequestInterface {
347
401
  filters: ListGoalsRequestFilters;
348
402
  pagingOptions: PagedRequestOptions;
@@ -463,6 +517,12 @@ export declare class UpsertConnectionRequest implements i.UpsertConnectionReques
463
517
  constructor(kwargs?: i.UpsertConnectionRequestInterface);
464
518
  toApiJson(): object;
465
519
  }
520
+ export declare class UpsertFunctionRequest implements i.UpsertFunctionRequestInterface {
521
+ function: Function;
522
+ static fromProto(proto: any): UpsertFunctionRequest;
523
+ constructor(kwargs?: i.UpsertFunctionRequestInterface);
524
+ toApiJson(): object;
525
+ }
466
526
  export declare class UpsertGoalRequest implements i.UpsertGoalRequestInterface {
467
527
  goal: Goal;
468
528
  static fromProto(proto: any): UpsertGoalRequest;
@@ -1,6 +1,7 @@
1
1
  import * as i from '../interfaces';
2
2
  import { AssistantKey } from './assistant';
3
3
  import { Namespace } from './namespace';
4
+ import * as e from '../enums';
4
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
6
  export declare class Connection implements i.ConnectionInterface {
6
7
  id: string;
@@ -12,6 +13,7 @@ export declare class Connection implements i.ConnectionInterface {
12
13
  connectionTypeName: string;
13
14
  iconUrl: string;
14
15
  isConnectionLocked: boolean;
16
+ supportedAssistantTypes: e.AssistantType[];
15
17
  static fromProto(proto: any): Connection;
16
18
  constructor(kwargs?: i.ConnectionInterface);
17
19
  toApiJson(): object;
@@ -1,6 +1,19 @@
1
1
  import * as i from '../interfaces';
2
2
  import { Namespace } from './namespace';
3
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
+ }
4
17
  export declare class FunctionKey implements i.FunctionKeyInterface {
5
18
  id: string;
6
19
  namespace: Namespace;
@@ -8,3 +21,14 @@ export declare class FunctionKey implements i.FunctionKeyInterface {
8
21
  constructor(kwargs?: i.FunctionKeyInterface);
9
22
  toApiJson(): object;
10
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
+ }
@@ -1,5 +1,5 @@
1
- export { NamespaceAccountGroupNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
- export { FunctionKey, } from './function';
1
+ export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
+ export { Function, FunctionKey, FunctionParameter, } from './function';
3
3
  export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
4
4
  export { Goal, GoalKey, } from './goal';
5
5
  export { Assistant, AssistantKey, Config, ConfigurableGoal, ConfigInboxConfig, } from './assistant';
@@ -8,4 +8,4 @@ export { KeyValuePair, } from './common';
8
8
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
9
9
  export { Access, } from './annotations';
10
10
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
11
- export { SetAssistantConnectionsRequestConnectionState, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ListPromptModuleRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListConnectionsRequestFilters, ListAssistantRequestFilters, GenerateChatAnswerRequest, 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, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, SetAssistantConnectionsRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertGoalRequest, } 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"