@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,5 +2,6 @@ export declare enum AssistantType {
2
2
  ASSISTANT_TYPE_UNSPECIFIED = 0,
3
3
  ASSISTANT_TYPE_SYSTEM = 1,
4
4
  ASSISTANT_TYPE_INBOX = 2,
5
- ASSISTANT_TYPE_SOCIAL_MARKETING = 3
5
+ ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
6
+ ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4
6
7
  }
@@ -0,0 +1,6 @@
1
+ export declare enum GoalType {
2
+ GOAL_TYPE_INVALID = 0,
3
+ GOAL_TYPE_KNOWLEDGE = 1,
4
+ GOAL_TYPE_PERSONALITY = 2,
5
+ GOAL_TYPE_CUSTOM = 3
6
+ }
@@ -1,2 +1,3 @@
1
+ export { GoalType, } from './goal.enum';
1
2
  export { AssistantType, } from './assistant.enum';
2
3
  export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
@@ -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
+ }
@@ -0,0 +1,18 @@
1
+ import { DeleteGoalRequest, GetGoalRequest, GetGoalResponse, GetMultiGoalRequest, GetMultiGoalResponse, ListGoalsRequest, ListGoalsResponse, UpsertGoalRequest } from './objects/';
2
+ import { DeleteGoalRequestInterface, GetGoalRequestInterface, GetMultiGoalRequestInterface, ListGoalsRequestInterface, UpsertGoalRequestInterface } 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 GoalApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ upsert(r: UpsertGoalRequest | UpsertGoalRequestInterface): Observable<HttpResponse<null>>;
12
+ get(r: GetGoalRequest | GetGoalRequestInterface): Observable<GetGoalResponse>;
13
+ getMulti(r: GetMultiGoalRequest | GetMultiGoalRequestInterface): Observable<GetMultiGoalResponse>;
14
+ delete(r: DeleteGoalRequest | DeleteGoalRequestInterface): Observable<HttpResponse<null>>;
15
+ list(r: ListGoalsRequest | ListGoalsRequestInterface): Observable<ListGoalsResponse>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoalApiService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<GoalApiService>;
18
+ }
@@ -3,4 +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';
7
+ export { GoalApiService } from './goal.api.service';
8
+ export { PromptModuleApiService } from './prompt-module.api.service';
6
9
  export { PromptApiService } from './prompt.api.service';
@@ -1,18 +1,26 @@
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';
5
+ import { GoalInterface, GoalKeyInterface } from './goal.interface';
4
6
  import { KeyValuePairInterface } from './common.interface';
5
7
  import { NamespaceInterface } from './namespace.interface';
6
8
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
7
- import { PromptInterface, PromptVersionInterface } from './prompt.interface';
9
+ import { PromptInterface, PromptVersionInterface, PromptModuleKeyInterface, PromptModuleInterface, PromptModuleVersionInterface } from './prompt.interface';
8
10
  import * as e from '../enums';
9
11
  export interface SetAssistantConnectionsRequestConnectionStateInterface {
10
12
  connectionKey?: ConnectionKeyInterface;
11
13
  isAssociated?: boolean;
12
14
  }
15
+ export interface CreatePromptModuleRequestInterface {
16
+ id?: string;
17
+ namespace?: NamespaceInterface;
18
+ content?: string;
19
+ }
13
20
  export interface CreatePromptRequestInterface {
14
21
  id?: string;
15
22
  content?: string;
23
+ description?: string;
16
24
  }
17
25
  export interface DeleteAssistantRequestInterface {
18
26
  id?: string;
@@ -23,23 +31,49 @@ export interface DeleteConnectionRequestInterface {
23
31
  connectionType?: string;
24
32
  namespace?: NamespaceInterface;
25
33
  }
34
+ export interface DeleteFunctionRequestInterface {
35
+ id?: string;
36
+ namespace?: NamespaceInterface;
37
+ }
38
+ export interface DeleteGoalRequestInterface {
39
+ id?: string;
40
+ namespace?: NamespaceInterface;
41
+ }
42
+ export interface DeletePromptModuleRequestInterface {
43
+ id?: string;
44
+ namespace?: NamespaceInterface;
45
+ }
26
46
  export interface DeletePromptRequestInterface {
27
47
  id?: string;
28
48
  }
49
+ export interface DeployPromptModuleRequestInterface {
50
+ id?: string;
51
+ namespace?: NamespaceInterface;
52
+ version?: string;
53
+ }
29
54
  export interface DeployPromptRequestInterface {
30
55
  id?: string;
31
56
  version?: string;
32
57
  }
33
- export interface ListAssistantRequestFiltersInterface {
34
- namespace?: NamespaceInterface;
58
+ export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
35
59
  type?: e.AssistantType;
36
60
  }
61
+ export interface ListFunctionRequestFiltersInterface {
62
+ namespace?: NamespaceInterface;
63
+ }
37
64
  export interface ListConnectionsRequestFiltersInterface {
38
65
  namespace?: NamespaceInterface;
39
66
  }
40
- export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
67
+ export interface ListAssistantRequestFiltersInterface {
68
+ namespace?: NamespaceInterface;
41
69
  type?: e.AssistantType;
42
70
  }
71
+ export interface ListGoalsRequestFiltersInterface {
72
+ namespace?: NamespaceInterface;
73
+ }
74
+ export interface ListPromptModuleRequestFiltersInterface {
75
+ namespace?: NamespaceInterface;
76
+ }
43
77
  export interface GenerateChatAnswerRequestInterface {
44
78
  connectionKey?: ConnectionKeyInterface;
45
79
  chatHistory?: ChatMessageInterface[];
@@ -81,6 +115,28 @@ export interface GetDeployedPromptVersionResponseInterface {
81
115
  prompt?: PromptInterface;
82
116
  deployedPromptVersion?: PromptVersionInterface;
83
117
  }
118
+ export interface GetFunctionRequestInterface {
119
+ id?: string;
120
+ namespace?: NamespaceInterface;
121
+ }
122
+ export interface GetFunctionResponseInterface {
123
+ function?: FunctionInterface;
124
+ }
125
+ export interface GetGoalRequestInterface {
126
+ id?: string;
127
+ namespace?: NamespaceInterface;
128
+ }
129
+ export interface GetGoalResponseInterface {
130
+ goal?: GoalInterface;
131
+ }
132
+ export interface GetHydratedDeployedPromptModuleVersionRequestInterface {
133
+ id?: string;
134
+ namespace?: NamespaceInterface;
135
+ variables?: KeyValuePairInterface[];
136
+ }
137
+ export interface GetHydratedDeployedPromptModuleVersionResponseInterface {
138
+ content?: string;
139
+ }
84
140
  export interface GetMultiDeployedPromptVersionRequestInterface {
85
141
  ids?: string[];
86
142
  }
@@ -88,6 +144,40 @@ export interface GetMultiDeployedPromptVersionResponseInterface {
88
144
  prompts?: PromptInterface[];
89
145
  deployedPromptVersions?: PromptVersionInterface[];
90
146
  }
147
+ export interface GetMultiFunctionRequestInterface {
148
+ keys?: FunctionKeyInterface[];
149
+ }
150
+ export interface GetMultiFunctionResponseInterface {
151
+ functions?: FunctionInterface[];
152
+ }
153
+ export interface GetMultiGoalRequestInterface {
154
+ keys?: GoalKeyInterface[];
155
+ }
156
+ export interface GetMultiGoalResponseInterface {
157
+ goals?: GoalInterface[];
158
+ }
159
+ export interface GetMultiHydratedDeployedPromptModuleVersionRequestInterface {
160
+ keys?: PromptModuleKeyInterface[];
161
+ variables?: KeyValuePairInterface[];
162
+ }
163
+ export interface GetMultiHydratedDeployedPromptModuleVersionResponseInterface {
164
+ contents?: string[];
165
+ }
166
+ export interface GetPromptModuleRequestInterface {
167
+ id?: string;
168
+ namespace?: NamespaceInterface;
169
+ }
170
+ export interface GetPromptModuleResponseInterface {
171
+ promptModule?: PromptModuleInterface;
172
+ }
173
+ export interface GetPromptModuleVersionRequestInterface {
174
+ id?: string;
175
+ namespace?: NamespaceInterface;
176
+ version?: string;
177
+ }
178
+ export interface GetPromptModuleVersionResponseInterface {
179
+ promptModuleVersion?: PromptModuleVersionInterface;
180
+ }
91
181
  export interface GetPromptRequestInterface {
92
182
  id?: string;
93
183
  }
@@ -125,6 +215,40 @@ export interface ListConnectionsResponseInterface {
125
215
  connections?: ConnectionInterface[];
126
216
  metadata?: PagedResponseMetadataInterface;
127
217
  }
218
+ export interface ListFunctionRequestInterface {
219
+ filters?: ListFunctionRequestFiltersInterface;
220
+ pagingOptions?: PagedRequestOptionsInterface;
221
+ }
222
+ export interface ListFunctionResponseInterface {
223
+ functions?: FunctionInterface[];
224
+ metadata?: PagedResponseMetadataInterface;
225
+ }
226
+ export interface ListGoalsRequestInterface {
227
+ filters?: ListGoalsRequestFiltersInterface;
228
+ pagingOptions?: PagedRequestOptionsInterface;
229
+ }
230
+ export interface ListGoalsResponseInterface {
231
+ goals?: GoalInterface[];
232
+ metadata?: PagedResponseMetadataInterface;
233
+ }
234
+ export interface ListPromptModuleRequestInterface {
235
+ filters?: ListPromptModuleRequestFiltersInterface;
236
+ pagingOptions?: PagedRequestOptionsInterface;
237
+ }
238
+ export interface ListPromptModuleResponseInterface {
239
+ promptModules?: PromptModuleInterface[];
240
+ deployedPromptModuleVersions?: PromptModuleVersionInterface[];
241
+ metadata?: PagedResponseMetadataInterface;
242
+ }
243
+ export interface ListPromptModuleVersionsRequestInterface {
244
+ id?: string;
245
+ namespace?: NamespaceInterface;
246
+ pagingOptions?: PagedRequestOptionsInterface;
247
+ }
248
+ export interface ListPromptModuleVersionsResponseInterface {
249
+ promptModuleVersions?: PromptModuleVersionInterface[];
250
+ metadata?: PagedResponseMetadataInterface;
251
+ }
128
252
  export interface ListPromptRequestInterface {
129
253
  pagingOptions?: PagedRequestOptionsInterface;
130
254
  }
@@ -149,9 +273,15 @@ export interface SetAssistantConnectionsRequestInterface {
149
273
  associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
150
274
  assistantKey?: AssistantKeyInterface;
151
275
  }
276
+ export interface UpdatePromptModuleRequestInterface {
277
+ id?: string;
278
+ namespace?: NamespaceInterface;
279
+ content?: string;
280
+ }
152
281
  export interface UpdatePromptRequestInterface {
153
282
  id?: string;
154
283
  content?: string;
284
+ description?: string;
155
285
  }
156
286
  export interface UpsertAssistantRequestInterface {
157
287
  assistant?: AssistantInterface;
@@ -162,3 +292,9 @@ export interface UpsertAssistantResponseInterface {
162
292
  export interface UpsertConnectionRequestInterface {
163
293
  connection?: ConnectionInterface;
164
294
  }
295
+ export interface UpsertFunctionRequestInterface {
296
+ function?: FunctionInterface;
297
+ }
298
+ export interface UpsertGoalRequestInterface {
299
+ goal?: GoalInterface;
300
+ }
@@ -1,3 +1,4 @@
1
+ import { GoalKeyInterface } from './goal.interface';
1
2
  import { NamespaceInterface } from './namespace.interface';
2
3
  import * as e from '../enums';
3
4
  export interface AssistantInterface {
@@ -7,6 +8,7 @@ export interface AssistantInterface {
7
8
  type?: e.AssistantType;
8
9
  avatarUrl?: string;
9
10
  config?: ConfigInterface;
11
+ configurableGoals?: ConfigurableGoalInterface[];
10
12
  }
11
13
  export interface AssistantKeyInterface {
12
14
  id?: string;
@@ -15,6 +17,9 @@ export interface AssistantKeyInterface {
15
17
  export interface ConfigInterface {
16
18
  inboxConfig?: ConfigInboxConfigInterface;
17
19
  }
20
+ export interface ConfigurableGoalInterface {
21
+ goalKey?: GoalKeyInterface;
22
+ }
18
23
  export interface ConfigInboxConfigInterface {
19
24
  leadCaptureEnabled?: boolean;
20
25
  additionalInstructions?: string;
@@ -0,0 +1,23 @@
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
+ }
12
+ export interface FunctionKeyInterface {
13
+ id?: string;
14
+ namespace?: NamespaceInterface;
15
+ }
16
+ export interface FunctionParameterInterface {
17
+ name?: string;
18
+ description?: string;
19
+ type?: string;
20
+ properties?: FunctionParameterInterface[];
21
+ items?: FunctionParameterInterface;
22
+ value?: string;
23
+ }
@@ -0,0 +1,19 @@
1
+ import { FunctionKeyInterface } from './function.interface';
2
+ import { NamespaceInterface } from './namespace.interface';
3
+ import { PromptModuleKeyInterface } from './prompt.interface';
4
+ import * as e from '../enums';
5
+ export interface GoalInterface {
6
+ id?: string;
7
+ namespace?: NamespaceInterface;
8
+ name?: string;
9
+ description?: string;
10
+ type?: e.GoalType;
11
+ promptModules?: PromptModuleKeyInterface[];
12
+ functions?: FunctionKeyInterface[];
13
+ updatedBy?: string;
14
+ updated?: Date;
15
+ }
16
+ export interface GoalKeyInterface {
17
+ id?: string;
18
+ namespace?: NamespaceInterface;
19
+ }
@@ -1,9 +1,11 @@
1
- export { NamespaceAccountGroupNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
- export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigInboxConfigInterface, } from './assistant.interface';
1
+ export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
+ export { FunctionInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
3
+ export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
4
+ export { GoalInterface, GoalKeyInterface, } from './goal.interface';
5
+ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, ConfigInboxConfigInterface, } from './assistant.interface';
3
6
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
4
7
  export { KeyValuePairInterface, } from './common.interface';
5
8
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
6
- export { PromptInterface, PromptVersionInterface, } from './prompt.interface';
7
9
  export { AccessInterface, } from './annotations.interface';
8
10
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
9
- export { SetAssistantConnectionsRequestConnectionStateInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, } 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;
@@ -1,8 +1,31 @@
1
+ import { NamespaceInterface } from './namespace.interface';
1
2
  export interface PromptInterface {
2
3
  id?: string;
3
4
  deployedVersion?: string;
4
5
  deployedBy?: string;
5
6
  updated?: Date;
7
+ description?: string;
8
+ deployed?: Date;
9
+ }
10
+ export interface PromptModuleInterface {
11
+ id?: string;
12
+ namespace?: NamespaceInterface;
13
+ name?: string;
14
+ deployedVersion?: string;
15
+ deployedBy?: string;
16
+ updated?: Date;
17
+ }
18
+ export interface PromptModuleKeyInterface {
19
+ id?: string;
20
+ namespace?: NamespaceInterface;
21
+ }
22
+ export interface PromptModuleVersionInterface {
23
+ id?: string;
24
+ namespace?: NamespaceInterface;
25
+ version?: string;
26
+ content?: string;
27
+ createdBy?: string;
28
+ created?: Date;
6
29
  }
7
30
  export interface PromptVersionInterface {
8
31
  id?: string;