@vendasta/ai-assistants 0.6.0 → 0.7.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 (41) 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/goal.api.service.mjs +58 -0
  5. package/esm2020/lib/_internal/index.mjs +3 -1
  6. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/function.interface.mjs +2 -0
  9. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +2 -0
  10. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  11. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -7
  12. package/esm2020/lib/_internal/objects/api.mjs +768 -73
  13. package/esm2020/lib/_internal/objects/assistant.mjs +31 -1
  14. package/esm2020/lib/_internal/objects/function.mjs +34 -0
  15. package/esm2020/lib/_internal/objects/goal.mjs +96 -0
  16. package/esm2020/lib/_internal/objects/index.mjs +6 -4
  17. package/esm2020/lib/_internal/objects/prompt.mjs +119 -1
  18. package/esm2020/lib/_internal/prompt-module.api.service.mjs +81 -0
  19. package/fesm2015/vendasta-ai-assistants.mjs +1477 -372
  20. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  21. package/fesm2020/vendasta-ai-assistants.mjs +1477 -372
  22. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  23. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  24. package/lib/_internal/enums/goal.enum.d.ts +6 -0
  25. package/lib/_internal/enums/index.d.ts +1 -0
  26. package/lib/_internal/goal.api.service.d.ts +18 -0
  27. package/lib/_internal/index.d.ts +2 -0
  28. package/lib/_internal/interfaces/api.interface.d.ts +107 -3
  29. package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
  30. package/lib/_internal/interfaces/function.interface.d.ts +5 -0
  31. package/lib/_internal/interfaces/goal.interface.d.ts +19 -0
  32. package/lib/_internal/interfaces/index.d.ts +5 -3
  33. package/lib/_internal/interfaces/prompt.interface.d.ts +23 -0
  34. package/lib/_internal/objects/api.d.ts +189 -7
  35. package/lib/_internal/objects/assistant.d.ts +8 -0
  36. package/lib/_internal/objects/function.d.ts +10 -0
  37. package/lib/_internal/objects/goal.d.ts +27 -0
  38. package/lib/_internal/objects/index.d.ts +5 -3
  39. package/lib/_internal/objects/prompt.d.ts +32 -0
  40. package/lib/_internal/prompt-module.api.service.d.ts +23 -0
  41. 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 { 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,6 @@ 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 { GoalApiService } from './goal.api.service';
7
+ export { PromptModuleApiService } from './prompt-module.api.service';
6
8
  export { PromptApiService } from './prompt.api.service';
@@ -1,18 +1,25 @@
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 { GoalInterface, GoalKeyInterface } from './goal.interface';
4
5
  import { KeyValuePairInterface } from './common.interface';
5
6
  import { NamespaceInterface } from './namespace.interface';
6
7
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
7
- import { PromptInterface, PromptVersionInterface } from './prompt.interface';
8
+ import { PromptInterface, PromptVersionInterface, PromptModuleKeyInterface, PromptModuleInterface, PromptModuleVersionInterface } from './prompt.interface';
8
9
  import * as e from '../enums';
9
10
  export interface SetAssistantConnectionsRequestConnectionStateInterface {
10
11
  connectionKey?: ConnectionKeyInterface;
11
12
  isAssociated?: boolean;
12
13
  }
14
+ export interface CreatePromptModuleRequestInterface {
15
+ id?: string;
16
+ namespace?: NamespaceInterface;
17
+ content?: string;
18
+ }
13
19
  export interface CreatePromptRequestInterface {
14
20
  id?: string;
15
21
  content?: string;
22
+ description?: string;
16
23
  }
17
24
  export interface DeleteAssistantRequestInterface {
18
25
  id?: string;
@@ -23,21 +30,40 @@ export interface DeleteConnectionRequestInterface {
23
30
  connectionType?: string;
24
31
  namespace?: NamespaceInterface;
25
32
  }
33
+ export interface DeleteGoalRequestInterface {
34
+ id?: string;
35
+ namespace?: NamespaceInterface;
36
+ }
37
+ export interface DeletePromptModuleRequestInterface {
38
+ id?: string;
39
+ namespace?: NamespaceInterface;
40
+ }
26
41
  export interface DeletePromptRequestInterface {
27
42
  id?: string;
28
43
  }
44
+ export interface DeployPromptModuleRequestInterface {
45
+ id?: string;
46
+ namespace?: NamespaceInterface;
47
+ version?: string;
48
+ }
29
49
  export interface DeployPromptRequestInterface {
30
50
  id?: string;
31
51
  version?: string;
32
52
  }
33
- export interface ListAssistantRequestFiltersInterface {
53
+ export interface ListPromptModuleRequestFiltersInterface {
54
+ namespace?: NamespaceInterface;
55
+ }
56
+ export interface ListGoalsRequestFiltersInterface {
34
57
  namespace?: NamespaceInterface;
58
+ }
59
+ export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
35
60
  type?: e.AssistantType;
36
61
  }
37
62
  export interface ListConnectionsRequestFiltersInterface {
38
63
  namespace?: NamespaceInterface;
39
64
  }
40
- export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
65
+ export interface ListAssistantRequestFiltersInterface {
66
+ namespace?: NamespaceInterface;
41
67
  type?: e.AssistantType;
42
68
  }
43
69
  export interface GenerateChatAnswerRequestInterface {
@@ -81,6 +107,21 @@ export interface GetDeployedPromptVersionResponseInterface {
81
107
  prompt?: PromptInterface;
82
108
  deployedPromptVersion?: PromptVersionInterface;
83
109
  }
110
+ export interface GetGoalRequestInterface {
111
+ id?: string;
112
+ namespace?: NamespaceInterface;
113
+ }
114
+ export interface GetGoalResponseInterface {
115
+ goal?: GoalInterface;
116
+ }
117
+ export interface GetHydratedDeployedPromptModuleVersionRequestInterface {
118
+ id?: string;
119
+ namespace?: NamespaceInterface;
120
+ variables?: KeyValuePairInterface[];
121
+ }
122
+ export interface GetHydratedDeployedPromptModuleVersionResponseInterface {
123
+ content?: string;
124
+ }
84
125
  export interface GetMultiDeployedPromptVersionRequestInterface {
85
126
  ids?: string[];
86
127
  }
@@ -88,6 +129,34 @@ export interface GetMultiDeployedPromptVersionResponseInterface {
88
129
  prompts?: PromptInterface[];
89
130
  deployedPromptVersions?: PromptVersionInterface[];
90
131
  }
132
+ export interface GetMultiGoalRequestInterface {
133
+ keys?: GoalKeyInterface[];
134
+ }
135
+ export interface GetMultiGoalResponseInterface {
136
+ goals?: GoalInterface[];
137
+ }
138
+ export interface GetMultiHydratedDeployedPromptModuleVersionRequestInterface {
139
+ keys?: PromptModuleKeyInterface[];
140
+ variables?: KeyValuePairInterface[];
141
+ }
142
+ export interface GetMultiHydratedDeployedPromptModuleVersionResponseInterface {
143
+ contents?: string[];
144
+ }
145
+ export interface GetPromptModuleRequestInterface {
146
+ id?: string;
147
+ namespace?: NamespaceInterface;
148
+ }
149
+ export interface GetPromptModuleResponseInterface {
150
+ promptModule?: PromptModuleInterface;
151
+ }
152
+ export interface GetPromptModuleVersionRequestInterface {
153
+ id?: string;
154
+ namespace?: NamespaceInterface;
155
+ version?: string;
156
+ }
157
+ export interface GetPromptModuleVersionResponseInterface {
158
+ promptModuleVersion?: PromptModuleVersionInterface;
159
+ }
91
160
  export interface GetPromptRequestInterface {
92
161
  id?: string;
93
162
  }
@@ -125,6 +194,32 @@ export interface ListConnectionsResponseInterface {
125
194
  connections?: ConnectionInterface[];
126
195
  metadata?: PagedResponseMetadataInterface;
127
196
  }
197
+ export interface ListGoalsRequestInterface {
198
+ filters?: ListGoalsRequestFiltersInterface;
199
+ pagingOptions?: PagedRequestOptionsInterface;
200
+ }
201
+ export interface ListGoalsResponseInterface {
202
+ goals?: GoalInterface[];
203
+ metadata?: PagedResponseMetadataInterface;
204
+ }
205
+ export interface ListPromptModuleRequestInterface {
206
+ filters?: ListPromptModuleRequestFiltersInterface;
207
+ pagingOptions?: PagedRequestOptionsInterface;
208
+ }
209
+ export interface ListPromptModuleResponseInterface {
210
+ promptModules?: PromptModuleInterface[];
211
+ deployedPromptModuleVersions?: PromptModuleVersionInterface[];
212
+ metadata?: PagedResponseMetadataInterface;
213
+ }
214
+ export interface ListPromptModuleVersionsRequestInterface {
215
+ id?: string;
216
+ namespace?: NamespaceInterface;
217
+ pagingOptions?: PagedRequestOptionsInterface;
218
+ }
219
+ export interface ListPromptModuleVersionsResponseInterface {
220
+ promptModuleVersions?: PromptModuleVersionInterface[];
221
+ metadata?: PagedResponseMetadataInterface;
222
+ }
128
223
  export interface ListPromptRequestInterface {
129
224
  pagingOptions?: PagedRequestOptionsInterface;
130
225
  }
@@ -149,9 +244,15 @@ export interface SetAssistantConnectionsRequestInterface {
149
244
  associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
150
245
  assistantKey?: AssistantKeyInterface;
151
246
  }
247
+ export interface UpdatePromptModuleRequestInterface {
248
+ id?: string;
249
+ namespace?: NamespaceInterface;
250
+ content?: string;
251
+ }
152
252
  export interface UpdatePromptRequestInterface {
153
253
  id?: string;
154
254
  content?: string;
255
+ description?: string;
155
256
  }
156
257
  export interface UpsertAssistantRequestInterface {
157
258
  assistant?: AssistantInterface;
@@ -162,3 +263,6 @@ export interface UpsertAssistantResponseInterface {
162
263
  export interface UpsertConnectionRequestInterface {
163
264
  connection?: ConnectionInterface;
164
265
  }
266
+ export interface UpsertGoalRequestInterface {
267
+ goal?: GoalInterface;
268
+ }
@@ -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,5 @@
1
+ import { NamespaceInterface } from './namespace.interface';
2
+ export interface FunctionKeyInterface {
3
+ id?: string;
4
+ namespace?: NamespaceInterface;
5
+ }
@@ -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
1
  export { NamespaceAccountGroupNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
- export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigInboxConfigInterface, } from './assistant.interface';
2
+ export { FunctionKeyInterface, } 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, 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';
@@ -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;
@@ -2,10 +2,11 @@ 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 { Goal, GoalKey } from './goal';
5
6
  import { KeyValuePair } from './common';
6
7
  import { Namespace } from './namespace';
7
8
  import { PagedRequestOptions, PagedResponseMetadata } from './paging';
8
- import { Prompt, PromptVersion } from './prompt';
9
+ import { Prompt, PromptVersion, PromptModuleKey, PromptModule, PromptModuleVersion } from './prompt';
9
10
  import * as e from '../enums';
10
11
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
11
12
  export declare class SetAssistantConnectionsRequestConnectionState implements i.SetAssistantConnectionsRequestConnectionStateInterface {
@@ -15,9 +16,18 @@ export declare class SetAssistantConnectionsRequestConnectionState implements i.
15
16
  constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
16
17
  toApiJson(): object;
17
18
  }
19
+ export declare class CreatePromptModuleRequest implements i.CreatePromptModuleRequestInterface {
20
+ id: string;
21
+ namespace: Namespace;
22
+ content: string;
23
+ static fromProto(proto: any): CreatePromptModuleRequest;
24
+ constructor(kwargs?: i.CreatePromptModuleRequestInterface);
25
+ toApiJson(): object;
26
+ }
18
27
  export declare class CreatePromptRequest implements i.CreatePromptRequestInterface {
19
28
  id: string;
20
29
  content: string;
30
+ description: string;
21
31
  static fromProto(proto: any): CreatePromptRequest;
22
32
  constructor(kwargs?: i.CreatePromptRequestInterface);
23
33
  toApiJson(): object;
@@ -37,12 +47,34 @@ export declare class DeleteConnectionRequest implements i.DeleteConnectionReques
37
47
  constructor(kwargs?: i.DeleteConnectionRequestInterface);
38
48
  toApiJson(): object;
39
49
  }
50
+ export declare class DeleteGoalRequest implements i.DeleteGoalRequestInterface {
51
+ id: string;
52
+ namespace: Namespace;
53
+ static fromProto(proto: any): DeleteGoalRequest;
54
+ constructor(kwargs?: i.DeleteGoalRequestInterface);
55
+ toApiJson(): object;
56
+ }
57
+ export declare class DeletePromptModuleRequest implements i.DeletePromptModuleRequestInterface {
58
+ id: string;
59
+ namespace: Namespace;
60
+ static fromProto(proto: any): DeletePromptModuleRequest;
61
+ constructor(kwargs?: i.DeletePromptModuleRequestInterface);
62
+ toApiJson(): object;
63
+ }
40
64
  export declare class DeletePromptRequest implements i.DeletePromptRequestInterface {
41
65
  id: string;
42
66
  static fromProto(proto: any): DeletePromptRequest;
43
67
  constructor(kwargs?: i.DeletePromptRequestInterface);
44
68
  toApiJson(): object;
45
69
  }
70
+ export declare class DeployPromptModuleRequest implements i.DeployPromptModuleRequestInterface {
71
+ id: string;
72
+ namespace: Namespace;
73
+ version: string;
74
+ static fromProto(proto: any): DeployPromptModuleRequest;
75
+ constructor(kwargs?: i.DeployPromptModuleRequestInterface);
76
+ toApiJson(): object;
77
+ }
46
78
  export declare class DeployPromptRequest implements i.DeployPromptRequestInterface {
47
79
  id: string;
48
80
  version: string;
@@ -50,11 +82,22 @@ export declare class DeployPromptRequest implements i.DeployPromptRequestInterfa
50
82
  constructor(kwargs?: i.DeployPromptRequestInterface);
51
83
  toApiJson(): object;
52
84
  }
53
- export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
85
+ export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
54
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
+ export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
55
98
  type: e.AssistantType;
56
- static fromProto(proto: any): ListAssistantRequestFilters;
57
- constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
99
+ static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
100
+ constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
58
101
  toApiJson(): object;
59
102
  }
60
103
  export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
@@ -63,10 +106,11 @@ export declare class ListConnectionsRequestFilters implements i.ListConnectionsR
63
106
  constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
64
107
  toApiJson(): object;
65
108
  }
66
- export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
109
+ export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
110
+ namespace: Namespace;
67
111
  type: e.AssistantType;
68
- static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
69
- constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
112
+ static fromProto(proto: any): ListAssistantRequestFilters;
113
+ constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
70
114
  toApiJson(): object;
71
115
  }
72
116
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
@@ -140,6 +184,33 @@ export declare class GetDeployedPromptVersionResponse implements i.GetDeployedPr
140
184
  constructor(kwargs?: i.GetDeployedPromptVersionResponseInterface);
141
185
  toApiJson(): object;
142
186
  }
187
+ export declare class GetGoalRequest implements i.GetGoalRequestInterface {
188
+ id: string;
189
+ namespace: Namespace;
190
+ static fromProto(proto: any): GetGoalRequest;
191
+ constructor(kwargs?: i.GetGoalRequestInterface);
192
+ toApiJson(): object;
193
+ }
194
+ export declare class GetGoalResponse implements i.GetGoalResponseInterface {
195
+ goal: Goal;
196
+ static fromProto(proto: any): GetGoalResponse;
197
+ constructor(kwargs?: i.GetGoalResponseInterface);
198
+ toApiJson(): object;
199
+ }
200
+ export declare class GetHydratedDeployedPromptModuleVersionRequest implements i.GetHydratedDeployedPromptModuleVersionRequestInterface {
201
+ id: string;
202
+ namespace: Namespace;
203
+ variables: KeyValuePair[];
204
+ static fromProto(proto: any): GetHydratedDeployedPromptModuleVersionRequest;
205
+ constructor(kwargs?: i.GetHydratedDeployedPromptModuleVersionRequestInterface);
206
+ toApiJson(): object;
207
+ }
208
+ export declare class GetHydratedDeployedPromptModuleVersionResponse implements i.GetHydratedDeployedPromptModuleVersionResponseInterface {
209
+ content: string;
210
+ static fromProto(proto: any): GetHydratedDeployedPromptModuleVersionResponse;
211
+ constructor(kwargs?: i.GetHydratedDeployedPromptModuleVersionResponseInterface);
212
+ toApiJson(): object;
213
+ }
143
214
  export declare class GetMultiDeployedPromptVersionRequest implements i.GetMultiDeployedPromptVersionRequestInterface {
144
215
  ids: string[];
145
216
  static fromProto(proto: any): GetMultiDeployedPromptVersionRequest;
@@ -153,6 +224,58 @@ export declare class GetMultiDeployedPromptVersionResponse implements i.GetMulti
153
224
  constructor(kwargs?: i.GetMultiDeployedPromptVersionResponseInterface);
154
225
  toApiJson(): object;
155
226
  }
227
+ export declare class GetMultiGoalRequest implements i.GetMultiGoalRequestInterface {
228
+ keys: GoalKey[];
229
+ static fromProto(proto: any): GetMultiGoalRequest;
230
+ constructor(kwargs?: i.GetMultiGoalRequestInterface);
231
+ toApiJson(): object;
232
+ }
233
+ export declare class GetMultiGoalResponse implements i.GetMultiGoalResponseInterface {
234
+ goals: Goal[];
235
+ static fromProto(proto: any): GetMultiGoalResponse;
236
+ constructor(kwargs?: i.GetMultiGoalResponseInterface);
237
+ toApiJson(): object;
238
+ }
239
+ export declare class GetMultiHydratedDeployedPromptModuleVersionRequest implements i.GetMultiHydratedDeployedPromptModuleVersionRequestInterface {
240
+ keys: PromptModuleKey[];
241
+ variables: KeyValuePair[];
242
+ static fromProto(proto: any): GetMultiHydratedDeployedPromptModuleVersionRequest;
243
+ constructor(kwargs?: i.GetMultiHydratedDeployedPromptModuleVersionRequestInterface);
244
+ toApiJson(): object;
245
+ }
246
+ export declare class GetMultiHydratedDeployedPromptModuleVersionResponse implements i.GetMultiHydratedDeployedPromptModuleVersionResponseInterface {
247
+ contents: string[];
248
+ static fromProto(proto: any): GetMultiHydratedDeployedPromptModuleVersionResponse;
249
+ constructor(kwargs?: i.GetMultiHydratedDeployedPromptModuleVersionResponseInterface);
250
+ toApiJson(): object;
251
+ }
252
+ export declare class GetPromptModuleRequest implements i.GetPromptModuleRequestInterface {
253
+ id: string;
254
+ namespace: Namespace;
255
+ static fromProto(proto: any): GetPromptModuleRequest;
256
+ constructor(kwargs?: i.GetPromptModuleRequestInterface);
257
+ toApiJson(): object;
258
+ }
259
+ export declare class GetPromptModuleResponse implements i.GetPromptModuleResponseInterface {
260
+ promptModule: PromptModule;
261
+ static fromProto(proto: any): GetPromptModuleResponse;
262
+ constructor(kwargs?: i.GetPromptModuleResponseInterface);
263
+ toApiJson(): object;
264
+ }
265
+ export declare class GetPromptModuleVersionRequest implements i.GetPromptModuleVersionRequestInterface {
266
+ id: string;
267
+ namespace: Namespace;
268
+ version: string;
269
+ static fromProto(proto: any): GetPromptModuleVersionRequest;
270
+ constructor(kwargs?: i.GetPromptModuleVersionRequestInterface);
271
+ toApiJson(): object;
272
+ }
273
+ export declare class GetPromptModuleVersionResponse implements i.GetPromptModuleVersionResponseInterface {
274
+ promptModuleVersion: PromptModuleVersion;
275
+ static fromProto(proto: any): GetPromptModuleVersionResponse;
276
+ constructor(kwargs?: i.GetPromptModuleVersionResponseInterface);
277
+ toApiJson(): object;
278
+ }
156
279
  export declare class GetPromptRequest implements i.GetPromptRequestInterface {
157
280
  id: string;
158
281
  static fromProto(proto: any): GetPromptRequest;
@@ -220,6 +343,50 @@ export declare class ListConnectionsResponse implements i.ListConnectionsRespons
220
343
  constructor(kwargs?: i.ListConnectionsResponseInterface);
221
344
  toApiJson(): object;
222
345
  }
346
+ export declare class ListGoalsRequest implements i.ListGoalsRequestInterface {
347
+ filters: ListGoalsRequestFilters;
348
+ pagingOptions: PagedRequestOptions;
349
+ static fromProto(proto: any): ListGoalsRequest;
350
+ constructor(kwargs?: i.ListGoalsRequestInterface);
351
+ toApiJson(): object;
352
+ }
353
+ export declare class ListGoalsResponse implements i.ListGoalsResponseInterface {
354
+ goals: Goal[];
355
+ metadata: PagedResponseMetadata;
356
+ static fromProto(proto: any): ListGoalsResponse;
357
+ constructor(kwargs?: i.ListGoalsResponseInterface);
358
+ toApiJson(): object;
359
+ }
360
+ export declare class ListPromptModuleRequest implements i.ListPromptModuleRequestInterface {
361
+ filters: ListPromptModuleRequestFilters;
362
+ pagingOptions: PagedRequestOptions;
363
+ static fromProto(proto: any): ListPromptModuleRequest;
364
+ constructor(kwargs?: i.ListPromptModuleRequestInterface);
365
+ toApiJson(): object;
366
+ }
367
+ export declare class ListPromptModuleResponse implements i.ListPromptModuleResponseInterface {
368
+ promptModules: PromptModule[];
369
+ deployedPromptModuleVersions: PromptModuleVersion[];
370
+ metadata: PagedResponseMetadata;
371
+ static fromProto(proto: any): ListPromptModuleResponse;
372
+ constructor(kwargs?: i.ListPromptModuleResponseInterface);
373
+ toApiJson(): object;
374
+ }
375
+ export declare class ListPromptModuleVersionsRequest implements i.ListPromptModuleVersionsRequestInterface {
376
+ id: string;
377
+ namespace: Namespace;
378
+ pagingOptions: PagedRequestOptions;
379
+ static fromProto(proto: any): ListPromptModuleVersionsRequest;
380
+ constructor(kwargs?: i.ListPromptModuleVersionsRequestInterface);
381
+ toApiJson(): object;
382
+ }
383
+ export declare class ListPromptModuleVersionsResponse implements i.ListPromptModuleVersionsResponseInterface {
384
+ promptModuleVersions: PromptModuleVersion[];
385
+ metadata: PagedResponseMetadata;
386
+ static fromProto(proto: any): ListPromptModuleVersionsResponse;
387
+ constructor(kwargs?: i.ListPromptModuleVersionsResponseInterface);
388
+ toApiJson(): object;
389
+ }
223
390
  export declare class ListPromptRequest implements i.ListPromptRequestInterface {
224
391
  pagingOptions: PagedRequestOptions;
225
392
  static fromProto(proto: any): ListPromptRequest;
@@ -262,9 +429,18 @@ export declare class SetAssistantConnectionsRequest implements i.SetAssistantCon
262
429
  constructor(kwargs?: i.SetAssistantConnectionsRequestInterface);
263
430
  toApiJson(): object;
264
431
  }
432
+ export declare class UpdatePromptModuleRequest implements i.UpdatePromptModuleRequestInterface {
433
+ id: string;
434
+ namespace: Namespace;
435
+ content: string;
436
+ static fromProto(proto: any): UpdatePromptModuleRequest;
437
+ constructor(kwargs?: i.UpdatePromptModuleRequestInterface);
438
+ toApiJson(): object;
439
+ }
265
440
  export declare class UpdatePromptRequest implements i.UpdatePromptRequestInterface {
266
441
  id: string;
267
442
  content: string;
443
+ description: string;
268
444
  static fromProto(proto: any): UpdatePromptRequest;
269
445
  constructor(kwargs?: i.UpdatePromptRequestInterface);
270
446
  toApiJson(): object;
@@ -287,3 +463,9 @@ export declare class UpsertConnectionRequest implements i.UpsertConnectionReques
287
463
  constructor(kwargs?: i.UpsertConnectionRequestInterface);
288
464
  toApiJson(): object;
289
465
  }
466
+ export declare class UpsertGoalRequest implements i.UpsertGoalRequestInterface {
467
+ goal: Goal;
468
+ static fromProto(proto: any): UpsertGoalRequest;
469
+ constructor(kwargs?: i.UpsertGoalRequestInterface);
470
+ toApiJson(): object;
471
+ }
@@ -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,10 @@
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 FunctionKey implements i.FunctionKeyInterface {
5
+ id: string;
6
+ namespace: Namespace;
7
+ static fromProto(proto: any): FunctionKey;
8
+ constructor(kwargs?: i.FunctionKeyInterface);
9
+ toApiJson(): object;
10
+ }