@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.
@@ -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,15 +55,12 @@ 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;
64
66
  }
@@ -66,6 +68,12 @@ export interface ListAssistantRequestFiltersInterface {
66
68
  namespace?: NamespaceInterface;
67
69
  type?: e.AssistantType;
68
70
  }
71
+ export interface ListGoalsRequestFiltersInterface {
72
+ namespace?: NamespaceInterface;
73
+ }
74
+ export interface ListPromptModuleRequestFiltersInterface {
75
+ namespace?: NamespaceInterface;
76
+ }
69
77
  export interface GenerateChatAnswerRequestInterface {
70
78
  connectionKey?: ConnectionKeyInterface;
71
79
  chatHistory?: ChatMessageInterface[];
@@ -107,6 +115,13 @@ export interface GetDeployedPromptVersionResponseInterface {
107
115
  prompt?: PromptInterface;
108
116
  deployedPromptVersion?: PromptVersionInterface;
109
117
  }
118
+ export interface GetFunctionRequestInterface {
119
+ id?: string;
120
+ namespace?: NamespaceInterface;
121
+ }
122
+ export interface GetFunctionResponseInterface {
123
+ function?: FunctionInterface;
124
+ }
110
125
  export interface GetGoalRequestInterface {
111
126
  id?: string;
112
127
  namespace?: NamespaceInterface;
@@ -129,6 +144,12 @@ export interface GetMultiDeployedPromptVersionResponseInterface {
129
144
  prompts?: PromptInterface[];
130
145
  deployedPromptVersions?: PromptVersionInterface[];
131
146
  }
147
+ export interface GetMultiFunctionRequestInterface {
148
+ keys?: FunctionKeyInterface[];
149
+ }
150
+ export interface GetMultiFunctionResponseInterface {
151
+ functions?: FunctionInterface[];
152
+ }
132
153
  export interface GetMultiGoalRequestInterface {
133
154
  keys?: GoalKeyInterface[];
134
155
  }
@@ -194,6 +215,14 @@ export interface ListConnectionsResponseInterface {
194
215
  connections?: ConnectionInterface[];
195
216
  metadata?: PagedResponseMetadataInterface;
196
217
  }
218
+ export interface ListFunctionRequestInterface {
219
+ filters?: ListFunctionRequestFiltersInterface;
220
+ pagingOptions?: PagedRequestOptionsInterface;
221
+ }
222
+ export interface ListFunctionResponseInterface {
223
+ functions?: FunctionInterface[];
224
+ metadata?: PagedResponseMetadataInterface;
225
+ }
197
226
  export interface ListGoalsRequestInterface {
198
227
  filters?: ListGoalsRequestFiltersInterface;
199
228
  pagingOptions?: PagedRequestOptionsInterface;
@@ -263,6 +292,9 @@ export interface UpsertAssistantResponseInterface {
263
292
  export interface UpsertConnectionRequestInterface {
264
293
  connection?: ConnectionInterface;
265
294
  }
295
+ export interface UpsertFunctionRequestInterface {
296
+ function?: FunctionInterface;
297
+ }
266
298
  export interface UpsertGoalRequestInterface {
267
299
  goal?: GoalInterface;
268
300
  }
@@ -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,24 +90,18 @@ 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;
105
107
  static fromProto(proto: any): ListConnectionsRequestFilters;
@@ -113,6 +115,18 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
113
115
  constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
114
116
  toApiJson(): object;
115
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);
128
+ toApiJson(): object;
129
+ }
116
130
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
117
131
  connectionKey: ConnectionKey;
118
132
  chatHistory: ChatMessage[];
@@ -184,6 +198,19 @@ export declare class GetDeployedPromptVersionResponse implements i.GetDeployedPr
184
198
  constructor(kwargs?: i.GetDeployedPromptVersionResponseInterface);
185
199
  toApiJson(): object;
186
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
+ }
187
214
  export declare class GetGoalRequest implements i.GetGoalRequestInterface {
188
215
  id: string;
189
216
  namespace: Namespace;
@@ -224,6 +251,18 @@ export declare class GetMultiDeployedPromptVersionResponse implements i.GetMulti
224
251
  constructor(kwargs?: i.GetMultiDeployedPromptVersionResponseInterface);
225
252
  toApiJson(): object;
226
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
+ }
227
266
  export declare class GetMultiGoalRequest implements i.GetMultiGoalRequestInterface {
228
267
  keys: GoalKey[];
229
268
  static fromProto(proto: any): GetMultiGoalRequest;
@@ -343,6 +382,20 @@ export declare class ListConnectionsResponse implements i.ListConnectionsRespons
343
382
  constructor(kwargs?: i.ListConnectionsResponseInterface);
344
383
  toApiJson(): object;
345
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
+ }
346
399
  export declare class ListGoalsRequest implements i.ListGoalsRequestInterface {
347
400
  filters: ListGoalsRequestFilters;
348
401
  pagingOptions: PagedRequestOptions;
@@ -463,6 +516,12 @@ export declare class UpsertConnectionRequest implements i.UpsertConnectionReques
463
516
  constructor(kwargs?: i.UpsertConnectionRequestInterface);
464
517
  toApiJson(): object;
465
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
+ }
466
525
  export declare class UpsertGoalRequest implements i.UpsertGoalRequestInterface {
467
526
  goal: Goal;
468
527
  static fromProto(proto: any): UpsertGoalRequest;
@@ -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.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"