@vendasta/ai-assistants 0.29.0 → 0.31.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 (29) hide show
  1. package/esm2020/lib/_internal/assistant.api.service.mjs +11 -2
  2. package/esm2020/lib/_internal/enums/assistant.enum.mjs +3 -1
  3. package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/objects/answer.mjs +27 -1
  9. package/esm2020/lib/_internal/objects/api.mjs +142 -28
  10. package/esm2020/lib/_internal/objects/field-mask.mjs +27 -0
  11. package/esm2020/lib/_internal/objects/index.mjs +5 -4
  12. package/esm2020/lib/_internal/objects/namespace.mjs +1 -53
  13. package/fesm2015/vendasta-ai-assistants.mjs +222 -97
  14. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  15. package/fesm2020/vendasta-ai-assistants.mjs +222 -97
  16. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  17. package/lib/_internal/assistant.api.service.d.ts +4 -2
  18. package/lib/_internal/enums/assistant.enum.d.ts +3 -1
  19. package/lib/_internal/interfaces/answer.interface.d.ts +4 -0
  20. package/lib/_internal/interfaces/api.interface.d.ts +28 -11
  21. package/lib/_internal/interfaces/field-mask.interface.d.ts +3 -0
  22. package/lib/_internal/interfaces/index.d.ts +4 -3
  23. package/lib/_internal/interfaces/namespace.interface.d.ts +0 -8
  24. package/lib/_internal/objects/answer.d.ts +7 -0
  25. package/lib/_internal/objects/api.d.ts +44 -15
  26. package/lib/_internal/objects/field-mask.d.ts +8 -0
  27. package/lib/_internal/objects/index.d.ts +4 -3
  28. package/lib/_internal/objects/namespace.d.ts +0 -14
  29. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
2
- import { BuildDefaultAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
1
+ import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
2
+ import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -9,6 +9,8 @@ export declare class AssistantApiService {
9
9
  private _host;
10
10
  private apiOptions;
11
11
  upsertAssistant(r: UpsertAssistantRequest | UpsertAssistantRequestInterface): Observable<UpsertAssistantResponse>;
12
+ createAssistant(r: CreateAssistantRequest | CreateAssistantRequestInterface): Observable<CreateAssistantResponse>;
13
+ updateAssistant(r: UpdateAssistantRequest | UpdateAssistantRequestInterface): Observable<HttpResponse<null>>;
12
14
  getAssistant(r: GetAssistantRequest | GetAssistantRequestInterface): Observable<GetAssistantResponse>;
13
15
  buildDefaultAssistant(r: BuildDefaultAssistantRequest | BuildDefaultAssistantRequestInterface): Observable<BuildDefaultAssistantResponse>;
14
16
  deleteAssistant(r: DeleteAssistantRequest | DeleteAssistantRequestInterface): Observable<HttpResponse<null>>;
@@ -4,7 +4,9 @@ export declare enum AssistantType {
4
4
  ASSISTANT_TYPE_INBOX = 2,
5
5
  ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
6
6
  ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4,
7
- ASSISTANT_TYPE_CUSTOM = 5
7
+ ASSISTANT_TYPE_CUSTOM = 5,
8
+ ASSISTANT_TYPE_SALES_COACH = 6,
9
+ ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT = 7
8
10
  }
9
11
  export declare enum VendorModel {
10
12
  VENDOR_MODEL_UNSPECIFIED = 0,
@@ -24,4 +24,8 @@ export interface ChatUserInfoInterface {
24
24
  state?: string;
25
25
  country?: string;
26
26
  zipCode?: string;
27
+ timezone?: string;
28
+ }
29
+ export interface ContextInfoInterface {
30
+ variables?: KeyValuePairInterface[];
27
31
  }
@@ -1,6 +1,7 @@
1
1
  import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
2
- import { ChatMessageInterface, ChatUserInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
2
+ import { ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
3
3
  import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
4
+ import { FieldMaskInterface } from './field-mask.interface';
4
5
  import { FunctionKeyInterface, FunctionInterface } from './function.interface';
5
6
  import { GoalInterface, GoalKeyInterface } from './goal.interface';
6
7
  import { KeyValuePairInterface } from './common.interface';
@@ -20,6 +21,13 @@ export interface SetAssistantConnectionsRequestConnectionStateInterface {
20
21
  connectionKey?: ConnectionKeyInterface;
21
22
  isAssociated?: boolean;
22
23
  }
24
+ export interface CreateAssistantRequestInterface {
25
+ assistant?: AssistantInterface;
26
+ options?: CreateAssistantRequestOptionsInterface;
27
+ }
28
+ export interface CreateAssistantResponseInterface {
29
+ assistant?: AssistantInterface;
30
+ }
23
31
  export interface CreateGoalRequestInterface {
24
32
  goal?: GoalInterface;
25
33
  }
@@ -90,13 +98,6 @@ export interface ExecuteFunctionResponseInterface {
90
98
  output?: string;
91
99
  metadata?: KeyValuePairInterface[];
92
100
  }
93
- export interface ListAssistantRequestFiltersInterface {
94
- namespace?: NamespaceInterface;
95
- type?: e.AssistantType;
96
- }
97
- export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
98
- type?: e.AssistantType;
99
- }
100
101
  export interface ListFunctionRequestFiltersInterface {
101
102
  namespace?: NamespaceInterface;
102
103
  }
@@ -107,6 +108,13 @@ export interface ListConnectionsRequestFiltersInterface {
107
108
  export interface ListPromptModuleRequestFiltersInterface {
108
109
  namespace?: NamespaceInterface;
109
110
  }
111
+ export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
112
+ type?: e.AssistantType;
113
+ }
114
+ export interface ListAssistantRequestFiltersInterface {
115
+ namespace?: NamespaceInterface;
116
+ type?: e.AssistantType;
117
+ }
110
118
  export interface ListGoalsRequestFiltersInterface {
111
119
  namespace?: NamespaceInterface;
112
120
  type?: e.GoalType;
@@ -119,6 +127,7 @@ export interface GenerateChatAnswerRequestInterface {
119
127
  chatChannel?: e.ChatChannel;
120
128
  options?: GenerateChatAnswerRequestOptionsInterface;
121
129
  assistantKey?: AssistantKeyInterface;
130
+ contextInfo?: ContextInfoInterface;
122
131
  }
123
132
  export interface GenerateChatAnswerResponseInterface {
124
133
  answer?: string;
@@ -247,6 +256,7 @@ export interface GoalsDisabledForAccountGroupResponseInterface {
247
256
  export interface ListAllAssistantsAssociatedToConnectionRequestInterface {
248
257
  connectionKey?: ConnectionKeyInterface;
249
258
  filters?: ListAllAssistantsAssociatedToConnectionRequestFiltersInterface;
259
+ fieldMask?: FieldMaskInterface;
250
260
  }
251
261
  export interface ListAllAssistantsAssociatedToConnectionResponseInterface {
252
262
  assistants?: AssistantInterface[];
@@ -318,6 +328,12 @@ export interface ListPromptVersionsResponseInterface {
318
328
  promptVersions?: PromptVersionInterface[];
319
329
  metadata?: PagedResponseMetadataInterface;
320
330
  }
331
+ export interface CreateAssistantRequestOptionsInterface {
332
+ applyDefaults?: boolean;
333
+ }
334
+ export interface CreatePromptModuleVersionRequestOptionsInterface {
335
+ shouldDeploy?: boolean;
336
+ }
321
337
  export interface GenerateChatAnswerRequestOptionsInterface {
322
338
  includeAllCitations?: boolean;
323
339
  enableAsyncFunctions?: boolean;
@@ -326,13 +342,14 @@ export interface GenerateChatAnswerRequestOptionsInterface {
326
342
  export interface UpsertAssistantRequestOptionsInterface {
327
343
  applyDefaults?: boolean;
328
344
  }
329
- export interface CreatePromptModuleVersionRequestOptionsInterface {
330
- shouldDeploy?: boolean;
331
- }
332
345
  export interface SetAssistantConnectionsRequestInterface {
333
346
  associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
334
347
  assistantKey?: AssistantKeyInterface;
335
348
  }
349
+ export interface UpdateAssistantRequestInterface {
350
+ assistant?: AssistantInterface;
351
+ fieldMask?: FieldMaskInterface;
352
+ }
336
353
  export interface UpdateGoalRequestInterface {
337
354
  goal?: GoalInterface;
338
355
  }
@@ -0,0 +1,3 @@
1
+ export interface FieldMaskInterface {
2
+ paths?: string[];
3
+ }
@@ -1,11 +1,12 @@
1
- export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
1
+ export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
2
  export { FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, } 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 { KeyValuePairInterface, } from './common.interface';
6
6
  export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
7
7
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
8
- export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
8
+ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
9
9
  export { AccessInterface, } from './annotations.interface';
10
10
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
11
- export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListAssistantRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListGoalsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
11
+ export { FieldMaskInterface, } from './field-mask.interface';
12
+ export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListGoalsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, CreateAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
@@ -1,20 +1,12 @@
1
1
  export interface NamespaceAccountGroupNamespaceInterface {
2
2
  accountGroupId?: string;
3
3
  }
4
- export interface NamespaceAccountGroupsForGroupNamespaceInterface {
5
- groupPath?: string;
6
- }
7
- export interface NamespaceAccountGroupsForPartnerNamespaceInterface {
8
- partnerId?: string;
9
- }
10
4
  export interface NamespaceGlobalNamespaceInterface {
11
5
  }
12
6
  export interface NamespaceInterface {
13
7
  accountGroupNamespace?: NamespaceAccountGroupNamespaceInterface;
14
8
  partnerNamespace?: NamespacePartnerNamespaceInterface;
15
9
  systemNamespace?: NamespaceSystemNamespaceInterface;
16
- accountGroupsForPartnerNamespace?: NamespaceAccountGroupsForPartnerNamespaceInterface;
17
- accountGroupsForGroupNamespace?: NamespaceAccountGroupsForGroupNamespaceInterface;
18
10
  globalNamespace?: NamespaceGlobalNamespaceInterface;
19
11
  }
20
12
  export interface NamespacePartnerNamespaceInterface {
@@ -35,7 +35,14 @@ export declare class ChatUserInfo implements i.ChatUserInfoInterface {
35
35
  state: string;
36
36
  country: string;
37
37
  zipCode: string;
38
+ timezone: string;
38
39
  static fromProto(proto: any): ChatUserInfo;
39
40
  constructor(kwargs?: i.ChatUserInfoInterface);
40
41
  toApiJson(): object;
41
42
  }
43
+ export declare class ContextInfo implements i.ContextInfoInterface {
44
+ variables: KeyValuePair[];
45
+ static fromProto(proto: any): ContextInfo;
46
+ constructor(kwargs?: i.ContextInfoInterface);
47
+ toApiJson(): object;
48
+ }
@@ -1,7 +1,8 @@
1
1
  import * as i from '../interfaces';
2
2
  import { Assistant, AssistantKey } from './assistant';
3
- import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
3
+ import { ChatMessage, ChatUserInfo, ContextInfo, ChatAnswerFunctionExecutionJob } from './answer';
4
4
  import { ConnectionKey, Connection } from './connection';
5
+ import { FieldMask } from './field-mask';
5
6
  import { FunctionKey, Function } from './function';
6
7
  import { Goal, GoalKey } from './goal';
7
8
  import { KeyValuePair } from './common';
@@ -31,6 +32,19 @@ export declare class SetAssistantConnectionsRequestConnectionState implements i.
31
32
  constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
32
33
  toApiJson(): object;
33
34
  }
35
+ export declare class CreateAssistantRequest implements i.CreateAssistantRequestInterface {
36
+ assistant: Assistant;
37
+ options: CreateAssistantRequestOptions;
38
+ static fromProto(proto: any): CreateAssistantRequest;
39
+ constructor(kwargs?: i.CreateAssistantRequestInterface);
40
+ toApiJson(): object;
41
+ }
42
+ export declare class CreateAssistantResponse implements i.CreateAssistantResponseInterface {
43
+ assistant: Assistant;
44
+ static fromProto(proto: any): CreateAssistantResponse;
45
+ constructor(kwargs?: i.CreateAssistantResponseInterface);
46
+ toApiJson(): object;
47
+ }
34
48
  export declare class CreateGoalRequest implements i.CreateGoalRequestInterface {
35
49
  goal: Goal;
36
50
  static fromProto(proto: any): CreateGoalRequest;
@@ -157,10 +171,11 @@ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFilter
157
171
  constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
158
172
  toApiJson(): object;
159
173
  }
160
- export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
161
- type: e.AssistantType;
162
- static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
163
- constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
174
+ export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
175
+ namespace: Namespace;
176
+ assistantType: e.AssistantType;
177
+ static fromProto(proto: any): ListConnectionsRequestFilters;
178
+ constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
164
179
  toApiJson(): object;
165
180
  }
166
181
  export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
@@ -169,6 +184,12 @@ export declare class ListFunctionRequestFilters implements i.ListFunctionRequest
169
184
  constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
170
185
  toApiJson(): object;
171
186
  }
187
+ export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
188
+ type: e.AssistantType;
189
+ static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
190
+ constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
191
+ toApiJson(): object;
192
+ }
172
193
  export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
173
194
  namespace: Namespace;
174
195
  type: e.AssistantType;
@@ -182,13 +203,6 @@ export declare class ListPromptModuleRequestFilters implements i.ListPromptModul
182
203
  constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
183
204
  toApiJson(): object;
184
205
  }
185
- export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
186
- namespace: Namespace;
187
- assistantType: e.AssistantType;
188
- static fromProto(proto: any): ListConnectionsRequestFilters;
189
- constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
190
- toApiJson(): object;
191
- }
192
206
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
193
207
  connectionKey: ConnectionKey;
194
208
  chatHistory: ChatMessage[];
@@ -196,6 +210,7 @@ export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRe
196
210
  chatChannel: e.ChatChannel;
197
211
  options: GenerateChatAnswerRequestOptions;
198
212
  assistantKey: AssistantKey;
213
+ contextInfo: ContextInfo;
199
214
  static fromProto(proto: any): GenerateChatAnswerRequest;
200
215
  constructor(kwargs?: i.GenerateChatAnswerRequestInterface);
201
216
  toApiJson(): object;
@@ -432,6 +447,7 @@ export declare class GoalsDisabledForAccountGroupResponse implements i.GoalsDisa
432
447
  export declare class ListAllAssistantsAssociatedToConnectionRequest implements i.ListAllAssistantsAssociatedToConnectionRequestInterface {
433
448
  connectionKey: ConnectionKey;
434
449
  filters: ListAllAssistantsAssociatedToConnectionRequestFilters;
450
+ fieldMask: FieldMask;
435
451
  static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequest;
436
452
  constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestInterface);
437
453
  toApiJson(): object;
@@ -565,10 +581,10 @@ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatA
565
581
  constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
566
582
  toApiJson(): object;
567
583
  }
568
- export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
584
+ export declare class CreateAssistantRequestOptions implements i.CreateAssistantRequestOptionsInterface {
569
585
  applyDefaults: boolean;
570
- static fromProto(proto: any): UpsertAssistantRequestOptions;
571
- constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
586
+ static fromProto(proto: any): CreateAssistantRequestOptions;
587
+ constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
572
588
  toApiJson(): object;
573
589
  }
574
590
  export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
@@ -577,6 +593,12 @@ export declare class CreatePromptModuleVersionRequestOptions implements i.Create
577
593
  constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
578
594
  toApiJson(): object;
579
595
  }
596
+ export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
597
+ applyDefaults: boolean;
598
+ static fromProto(proto: any): UpsertAssistantRequestOptions;
599
+ constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
600
+ toApiJson(): object;
601
+ }
580
602
  export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
581
603
  associationStates: SetAssistantConnectionsRequestConnectionState[];
582
604
  assistantKey: AssistantKey;
@@ -584,6 +606,13 @@ export declare class SetAssistantConnectionsRequest implements i.SetAssistantCon
584
606
  constructor(kwargs?: i.SetAssistantConnectionsRequestInterface);
585
607
  toApiJson(): object;
586
608
  }
609
+ export declare class UpdateAssistantRequest implements i.UpdateAssistantRequestInterface {
610
+ assistant: Assistant;
611
+ fieldMask: FieldMask;
612
+ static fromProto(proto: any): UpdateAssistantRequest;
613
+ constructor(kwargs?: i.UpdateAssistantRequestInterface);
614
+ toApiJson(): object;
615
+ }
587
616
  export declare class UpdateGoalRequest implements i.UpdateGoalRequestInterface {
588
617
  goal: Goal;
589
618
  static fromProto(proto: any): UpdateGoalRequest;
@@ -0,0 +1,8 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class FieldMask implements i.FieldMaskInterface {
4
+ paths: string[];
5
+ static fromProto(proto: any): FieldMask;
6
+ constructor(kwargs?: i.FieldMaskInterface);
7
+ toApiJson(): object;
8
+ }
@@ -1,11 +1,12 @@
1
- export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
1
+ export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
2
  export { Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, } from './function';
3
3
  export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
4
4
  export { Goal, GoalKey, } from './goal';
5
5
  export { KeyValuePair, } from './common';
6
6
  export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
7
7
  export { Connection, ConnectionKey, } from './connection';
8
- export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
8
+ export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
9
9
  export { Access, } from './annotations';
10
10
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
11
- export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListConnectionsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListFunctionRequestFilters, ListGoalsRequestFilters, ListPromptModuleRequestFilters, ListAssistantRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, UpsertAssistantRequestOptions, CreatePromptModuleVersionRequestOptions, SetAssistantConnectionsRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
11
+ export { FieldMask, } from './field-mask';
12
+ export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListPromptModuleRequestFilters, ListConnectionsRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAssistantRequestFilters, ListFunctionRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, CreatePromptModuleVersionRequestOptions, GenerateChatAnswerRequestOptions, CreateAssistantRequestOptions, UpsertAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
@@ -6,18 +6,6 @@ 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
- groupPath: 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
9
  export declare class NamespaceGlobalNamespace implements i.NamespaceGlobalNamespaceInterface {
22
10
  static fromProto(proto: any): NamespaceGlobalNamespace;
23
11
  constructor(kwargs?: i.NamespaceGlobalNamespaceInterface);
@@ -27,8 +15,6 @@ export declare class Namespace implements i.NamespaceInterface {
27
15
  accountGroupNamespace: NamespaceAccountGroupNamespace;
28
16
  partnerNamespace: NamespacePartnerNamespace;
29
17
  systemNamespace: NamespaceSystemNamespace;
30
- accountGroupsForPartnerNamespace: NamespaceAccountGroupsForPartnerNamespace;
31
- accountGroupsForGroupNamespace: NamespaceAccountGroupsForGroupNamespace;
32
18
  globalNamespace: NamespaceGlobalNamespace;
33
19
  static fromProto(proto: any): Namespace;
34
20
  constructor(kwargs?: i.NamespaceInterface);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"