@vendasta/ai-assistants 0.48.0 → 0.49.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.
- package/esm2020/lib/_internal/enums/assistant-type.enum.mjs +18 -0
- package/esm2020/lib/_internal/enums/assistant.enum.mjs +1 -12
- package/esm2020/lib/_internal/enums/constraints.enum.mjs +19 -0
- package/esm2020/lib/_internal/enums/index.mjs +5 -2
- package/esm2020/lib/_internal/enums/namespace.enum.mjs +15 -0
- package/esm2020/lib/_internal/function.api.service.mjs +6 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/constraints.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +81 -68
- package/esm2020/lib/_internal/objects/constraints.mjs +101 -0
- package/esm2020/lib/_internal/objects/function.mjs +63 -1
- package/esm2020/lib/_internal/objects/goal.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/fesm2015/vendasta-ai-assistants.mjs +304 -80
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +304 -80
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/assistant-type.enum.d.ts +10 -0
- package/lib/_internal/enums/assistant.enum.d.ts +0 -10
- package/lib/_internal/enums/constraints.enum.d.ts +10 -0
- package/lib/_internal/enums/index.d.ts +4 -1
- package/lib/_internal/enums/namespace.enum.d.ts +7 -0
- package/lib/_internal/function.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +19 -16
- package/lib/_internal/interfaces/constraints.interface.d.ts +14 -0
- package/lib/_internal/interfaces/function.interface.d.ts +11 -0
- package/lib/_internal/interfaces/goal.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/objects/api.d.ts +33 -30
- package/lib/_internal/objects/constraints.d.ts +25 -0
- package/lib/_internal/objects/function.d.ts +17 -0
- package/lib/_internal/objects/goal.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum AssistantType {
|
|
2
|
+
ASSISTANT_TYPE_UNSPECIFIED = 0,
|
|
3
|
+
ASSISTANT_TYPE_SYSTEM = 1,
|
|
4
|
+
ASSISTANT_TYPE_INBOX = 2,
|
|
5
|
+
ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
|
|
6
|
+
ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4,
|
|
7
|
+
ASSISTANT_TYPE_CUSTOM = 5,
|
|
8
|
+
ASSISTANT_TYPE_SALES_COACH = 6,
|
|
9
|
+
ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT = 7
|
|
10
|
+
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export declare enum AssistantType {
|
|
2
|
-
ASSISTANT_TYPE_UNSPECIFIED = 0,
|
|
3
|
-
ASSISTANT_TYPE_SYSTEM = 1,
|
|
4
|
-
ASSISTANT_TYPE_INBOX = 2,
|
|
5
|
-
ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
|
|
6
|
-
ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4,
|
|
7
|
-
ASSISTANT_TYPE_CUSTOM = 5,
|
|
8
|
-
ASSISTANT_TYPE_SALES_COACH = 6,
|
|
9
|
-
ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT = 7
|
|
10
|
-
}
|
|
11
1
|
export declare enum VendorModel {
|
|
12
2
|
VENDOR_MODEL_UNSPECIFIED = 0,
|
|
13
3
|
VENDOR_MODEL_OPEN_AI_REALTIME = 1,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export { NamespaceType, } from './namespace.enum';
|
|
2
|
+
export { AssistantType, } from './assistant-type.enum';
|
|
3
|
+
export { Action, Effect, } from './constraints.enum';
|
|
1
4
|
export { FunctionParameterParameterLocation, } from './function.enum';
|
|
2
5
|
export { GoalChannel, GoalType, } from './goal.enum';
|
|
3
6
|
export { ModelType, ModelVendor, } from './model.enum';
|
|
4
|
-
export {
|
|
7
|
+
export { VendorModel, } from './assistant.enum';
|
|
5
8
|
export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
|
|
6
9
|
export { SortDirection, } from './integration-tests.enum';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeleteFunctionRequest, DeleteMCPRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
|
|
2
|
-
import { DeleteFunctionRequestInterface, DeleteMCPRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface } from './interfaces/';
|
|
1
|
+
import { CreateMCPFromIntegrationRequest, DeleteFunctionRequest, DeleteMCPRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
|
|
2
|
+
import { CreateMCPFromIntegrationRequestInterface, DeleteFunctionRequestInterface, DeleteMCPRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -17,6 +17,7 @@ export declare class FunctionApiService {
|
|
|
17
17
|
upsertMcp(r: UpsertMCPRequest | UpsertMCPRequestInterface): Observable<HttpResponse<null>>;
|
|
18
18
|
listMcPs(r: ListMCPsRequest | ListMCPsRequestInterface): Observable<ListMCPsResponse>;
|
|
19
19
|
deleteMcp(r: DeleteMCPRequest | DeleteMCPRequestInterface): Observable<HttpResponse<null>>;
|
|
20
|
+
createMcpFromIntegration(r: CreateMCPFromIntegrationRequest | CreateMCPFromIntegrationRequestInterface): Observable<HttpResponse<null>>;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionApiService, never>;
|
|
21
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<FunctionApiService>;
|
|
22
23
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
|
|
2
2
|
import { ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
|
|
3
3
|
import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
|
|
4
|
+
import { ConstraintFilterInterface } from './constraints.interface';
|
|
4
5
|
import { FieldMaskInterface } from './field-mask.interface';
|
|
5
6
|
import { FunctionKeyInterface, FunctionInterface } from './function.interface';
|
|
6
7
|
import { GoalInterface, GoalKeyInterface } from './goal.interface';
|
|
@@ -99,33 +100,35 @@ export interface ExecuteFunctionResponseInterface {
|
|
|
99
100
|
output?: string;
|
|
100
101
|
metadata?: KeyValuePairInterface[];
|
|
101
102
|
}
|
|
102
|
-
export interface
|
|
103
|
-
|
|
104
|
-
namespaces?: NamespaceInterface[];
|
|
105
|
-
mcpId?: string;
|
|
103
|
+
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
104
|
+
type?: e.AssistantType;
|
|
106
105
|
}
|
|
107
|
-
export interface
|
|
106
|
+
export interface ListConnectionsRequestFiltersInterface {
|
|
108
107
|
namespace?: NamespaceInterface;
|
|
108
|
+
assistantType?: e.AssistantType;
|
|
109
109
|
}
|
|
110
|
-
export interface
|
|
110
|
+
export interface ListPromptModuleRequestFiltersInterface {
|
|
111
111
|
namespace?: NamespaceInterface;
|
|
112
|
-
type?: e.AssistantType;
|
|
113
112
|
}
|
|
114
|
-
export interface
|
|
113
|
+
export interface ListGoalsRequestFiltersInterface {
|
|
115
114
|
namespace?: NamespaceInterface;
|
|
116
|
-
|
|
115
|
+
type?: e.GoalType;
|
|
116
|
+
supportedChannels?: e.GoalChannel[];
|
|
117
|
+
namespaces?: NamespaceInterface[];
|
|
118
|
+
constraintFilters?: ConstraintFilterInterface[];
|
|
117
119
|
}
|
|
118
120
|
export interface ListAvailableModelsRequestFiltersInterface {
|
|
119
121
|
vendor?: e.ModelVendor[];
|
|
120
122
|
type?: e.ModelType[];
|
|
121
123
|
}
|
|
122
|
-
export interface
|
|
124
|
+
export interface ListFunctionRequestFiltersInterface {
|
|
123
125
|
namespace?: NamespaceInterface;
|
|
124
|
-
type?: e.GoalType;
|
|
125
|
-
supportedChannels?: e.GoalChannel[];
|
|
126
126
|
namespaces?: NamespaceInterface[];
|
|
127
|
+
mcpId?: string;
|
|
128
|
+
constraintFilters?: ConstraintFilterInterface[];
|
|
127
129
|
}
|
|
128
|
-
export interface
|
|
130
|
+
export interface ListAssistantRequestFiltersInterface {
|
|
131
|
+
namespace?: NamespaceInterface;
|
|
129
132
|
type?: e.AssistantType;
|
|
130
133
|
}
|
|
131
134
|
export interface GenerateChatAnswerRequestInterface {
|
|
@@ -353,6 +356,9 @@ export interface ListPromptVersionsResponseInterface {
|
|
|
353
356
|
export interface CreatePromptModuleVersionRequestOptionsInterface {
|
|
354
357
|
shouldDeploy?: boolean;
|
|
355
358
|
}
|
|
359
|
+
export interface GetAssistantRequestOptionsInterface {
|
|
360
|
+
skipGoalsHydration?: boolean;
|
|
361
|
+
}
|
|
356
362
|
export interface GenerateChatAnswerRequestOptionsInterface {
|
|
357
363
|
includeAllCitations?: boolean;
|
|
358
364
|
enableAsyncFunctions?: boolean;
|
|
@@ -367,9 +373,6 @@ export interface CreateAssistantRequestOptionsInterface {
|
|
|
367
373
|
export interface GetMultiAssistantRequestOptionsInterface {
|
|
368
374
|
skipGoalsHydration?: boolean;
|
|
369
375
|
}
|
|
370
|
-
export interface GetAssistantRequestOptionsInterface {
|
|
371
|
-
skipGoalsHydration?: boolean;
|
|
372
|
-
}
|
|
373
376
|
export interface SetAssistantConnectionsRequestInterface {
|
|
374
377
|
associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
|
|
375
378
|
assistantKey?: AssistantKeyInterface;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from '../enums';
|
|
2
|
+
export interface ConstraintInterface {
|
|
3
|
+
action?: e.Action;
|
|
4
|
+
scope?: ScopeInterface;
|
|
5
|
+
effect?: e.Effect;
|
|
6
|
+
}
|
|
7
|
+
export interface ConstraintFilterInterface {
|
|
8
|
+
action?: e.Action;
|
|
9
|
+
scope?: ScopeInterface;
|
|
10
|
+
}
|
|
11
|
+
export interface ScopeInterface {
|
|
12
|
+
assistantNamespaceType?: e.NamespaceType;
|
|
13
|
+
assistantType?: e.AssistantType;
|
|
14
|
+
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ConstraintInterface } from './constraints.interface';
|
|
1
2
|
import { NamespaceInterface } from './namespace.interface';
|
|
2
3
|
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
|
|
3
4
|
import * as e from '../enums';
|
|
5
|
+
export interface FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface {
|
|
6
|
+
connectionId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CreateMCPFromIntegrationRequestInterface {
|
|
9
|
+
namespace?: NamespaceInterface;
|
|
10
|
+
mcpId?: string;
|
|
11
|
+
connectionId?: string;
|
|
12
|
+
}
|
|
4
13
|
export interface DeleteMCPRequestInterface {
|
|
5
14
|
namespace?: NamespaceInterface;
|
|
6
15
|
mcpId?: string;
|
|
@@ -22,10 +31,12 @@ export interface FunctionInterface {
|
|
|
22
31
|
managed?: boolean;
|
|
23
32
|
authStrategy?: FunctionAuthStrategyInterface;
|
|
24
33
|
mcpId?: string;
|
|
34
|
+
constraints?: ConstraintInterface[];
|
|
25
35
|
}
|
|
26
36
|
export interface FunctionAuthStrategyInterface {
|
|
27
37
|
unspecified?: FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface;
|
|
28
38
|
platformManaged?: FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface;
|
|
39
|
+
connectedIntegration?: FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface;
|
|
29
40
|
}
|
|
30
41
|
export interface FunctionHeaderInterface {
|
|
31
42
|
key?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConstraintInterface } from './constraints.interface';
|
|
1
2
|
import { FunctionInterface } from './function.interface';
|
|
2
3
|
import { NamespaceInterface } from './namespace.interface';
|
|
3
4
|
import { PromptModuleInterface } from './prompt.interface';
|
|
@@ -15,6 +16,7 @@ export interface GoalInterface {
|
|
|
15
16
|
supportedChannels?: e.GoalChannel[];
|
|
16
17
|
managed?: boolean;
|
|
17
18
|
overrideOf?: GoalKeyInterface;
|
|
19
|
+
constraints?: ConstraintInterface[];
|
|
18
20
|
}
|
|
19
21
|
export interface GoalKeyInterface {
|
|
20
22
|
id?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
|
|
2
|
+
export { ConstraintInterface, ConstraintFilterInterface, ScopeInterface, } from './constraints.interface';
|
|
2
3
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
3
|
-
export { DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
|
|
4
|
+
export { FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface, CreateMCPFromIntegrationRequestInterface, DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
|
|
4
5
|
export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
|
|
5
6
|
export { GoalInterface, GoalKeyInterface, } from './goal.interface';
|
|
6
7
|
export { KeyValuePairInterface, } from './common.interface';
|
|
@@ -11,4 +12,4 @@ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJob
|
|
|
11
12
|
export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
|
|
12
13
|
export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
|
|
13
14
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
14
|
-
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface,
|
|
15
|
+
export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListAssistantRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, CreatePromptModuleVersionRequestOptionsInterface, GetAssistantRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleResponseInterface, } from './api.interface';
|
|
@@ -2,6 +2,7 @@ import * as i from '../interfaces';
|
|
|
2
2
|
import { Assistant, AssistantKey } from './assistant';
|
|
3
3
|
import { ChatMessage, ChatUserInfo, ContextInfo, ChatAnswerFunctionExecutionJob } from './answer';
|
|
4
4
|
import { ConnectionKey, Connection } from './connection';
|
|
5
|
+
import { ConstraintFilter } from './constraints';
|
|
5
6
|
import { FieldMask } from './field-mask';
|
|
6
7
|
import { FunctionKey, Function } from './function';
|
|
7
8
|
import { Goal, GoalKey } from './goal';
|
|
@@ -164,12 +165,17 @@ export declare class ExecuteFunctionResponse implements i.ExecuteFunctionRespons
|
|
|
164
165
|
constructor(kwargs?: i.ExecuteFunctionResponseInterface);
|
|
165
166
|
toApiJson(): object;
|
|
166
167
|
}
|
|
167
|
-
export declare class
|
|
168
|
+
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
169
|
+
type: e.AssistantType;
|
|
170
|
+
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
171
|
+
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
172
|
+
toApiJson(): object;
|
|
173
|
+
}
|
|
174
|
+
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
168
175
|
namespace: Namespace;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
176
|
+
assistantType: e.AssistantType;
|
|
177
|
+
static fromProto(proto: any): ListConnectionsRequestFilters;
|
|
178
|
+
constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
|
|
173
179
|
toApiJson(): object;
|
|
174
180
|
}
|
|
175
181
|
export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
|
|
@@ -178,18 +184,14 @@ export declare class ListPromptModuleRequestFilters implements i.ListPromptModul
|
|
|
178
184
|
constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
|
|
179
185
|
toApiJson(): object;
|
|
180
186
|
}
|
|
181
|
-
export declare class
|
|
182
|
-
namespace: Namespace;
|
|
183
|
-
type: e.AssistantType;
|
|
184
|
-
static fromProto(proto: any): ListAssistantRequestFilters;
|
|
185
|
-
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
186
|
-
toApiJson(): object;
|
|
187
|
-
}
|
|
188
|
-
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
187
|
+
export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
|
|
189
188
|
namespace: Namespace;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
type: e.GoalType;
|
|
190
|
+
supportedChannels: e.GoalChannel[];
|
|
191
|
+
namespaces: Namespace[];
|
|
192
|
+
constraintFilters: ConstraintFilter[];
|
|
193
|
+
static fromProto(proto: any): ListGoalsRequestFilters;
|
|
194
|
+
constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
|
|
193
195
|
toApiJson(): object;
|
|
194
196
|
}
|
|
195
197
|
export declare class ListAvailableModelsRequestFilters implements i.ListAvailableModelsRequestFiltersInterface {
|
|
@@ -199,19 +201,20 @@ export declare class ListAvailableModelsRequestFilters implements i.ListAvailabl
|
|
|
199
201
|
constructor(kwargs?: i.ListAvailableModelsRequestFiltersInterface);
|
|
200
202
|
toApiJson(): object;
|
|
201
203
|
}
|
|
202
|
-
export declare class
|
|
204
|
+
export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
|
|
203
205
|
namespace: Namespace;
|
|
204
|
-
type: e.GoalType;
|
|
205
|
-
supportedChannels: e.GoalChannel[];
|
|
206
206
|
namespaces: Namespace[];
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
mcpId: string;
|
|
208
|
+
constraintFilters: ConstraintFilter[];
|
|
209
|
+
static fromProto(proto: any): ListFunctionRequestFilters;
|
|
210
|
+
constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
|
|
209
211
|
toApiJson(): object;
|
|
210
212
|
}
|
|
211
|
-
export declare class
|
|
213
|
+
export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
|
|
214
|
+
namespace: Namespace;
|
|
212
215
|
type: e.AssistantType;
|
|
213
|
-
static fromProto(proto: any):
|
|
214
|
-
constructor(kwargs?: i.
|
|
216
|
+
static fromProto(proto: any): ListAssistantRequestFilters;
|
|
217
|
+
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
215
218
|
toApiJson(): object;
|
|
216
219
|
}
|
|
217
220
|
export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
|
|
@@ -616,6 +619,12 @@ export declare class CreatePromptModuleVersionRequestOptions implements i.Create
|
|
|
616
619
|
constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
|
|
617
620
|
toApiJson(): object;
|
|
618
621
|
}
|
|
622
|
+
export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
|
|
623
|
+
skipGoalsHydration: boolean;
|
|
624
|
+
static fromProto(proto: any): GetAssistantRequestOptions;
|
|
625
|
+
constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
|
|
626
|
+
toApiJson(): object;
|
|
627
|
+
}
|
|
619
628
|
export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
|
|
620
629
|
includeAllCitations: boolean;
|
|
621
630
|
enableAsyncFunctions: boolean;
|
|
@@ -642,12 +651,6 @@ export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssist
|
|
|
642
651
|
constructor(kwargs?: i.GetMultiAssistantRequestOptionsInterface);
|
|
643
652
|
toApiJson(): object;
|
|
644
653
|
}
|
|
645
|
-
export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
|
|
646
|
-
skipGoalsHydration: boolean;
|
|
647
|
-
static fromProto(proto: any): GetAssistantRequestOptions;
|
|
648
|
-
constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
|
|
649
|
-
toApiJson(): object;
|
|
650
|
-
}
|
|
651
654
|
export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
|
|
652
655
|
associationStates: SetAssistantConnectionsRequestConnectionState[];
|
|
653
656
|
assistantKey: AssistantKey;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class Constraint implements i.ConstraintInterface {
|
|
5
|
+
action: e.Action;
|
|
6
|
+
scope: Scope;
|
|
7
|
+
effect: e.Effect;
|
|
8
|
+
static fromProto(proto: any): Constraint;
|
|
9
|
+
constructor(kwargs?: i.ConstraintInterface);
|
|
10
|
+
toApiJson(): object;
|
|
11
|
+
}
|
|
12
|
+
export declare class ConstraintFilter implements i.ConstraintFilterInterface {
|
|
13
|
+
action: e.Action;
|
|
14
|
+
scope: Scope;
|
|
15
|
+
static fromProto(proto: any): ConstraintFilter;
|
|
16
|
+
constructor(kwargs?: i.ConstraintFilterInterface);
|
|
17
|
+
toApiJson(): object;
|
|
18
|
+
}
|
|
19
|
+
export declare class Scope implements i.ScopeInterface {
|
|
20
|
+
assistantNamespaceType: e.NamespaceType;
|
|
21
|
+
assistantType: e.AssistantType;
|
|
22
|
+
static fromProto(proto: any): Scope;
|
|
23
|
+
constructor(kwargs?: i.ScopeInterface);
|
|
24
|
+
toApiJson(): object;
|
|
25
|
+
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
+
import { Constraint } from './constraints';
|
|
2
3
|
import { Namespace } from './namespace';
|
|
3
4
|
import { PagedRequestOptions, PagedResponseMetadata } from './paging';
|
|
4
5
|
import * as e from '../enums';
|
|
5
6
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
7
|
+
export declare class FunctionAuthStrategyConnectedIntegrationAuthStrategy implements i.FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface {
|
|
8
|
+
connectionId: string;
|
|
9
|
+
static fromProto(proto: any): FunctionAuthStrategyConnectedIntegrationAuthStrategy;
|
|
10
|
+
constructor(kwargs?: i.FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface);
|
|
11
|
+
toApiJson(): object;
|
|
12
|
+
}
|
|
13
|
+
export declare class CreateMCPFromIntegrationRequest implements i.CreateMCPFromIntegrationRequestInterface {
|
|
14
|
+
namespace: Namespace;
|
|
15
|
+
mcpId: string;
|
|
16
|
+
connectionId: string;
|
|
17
|
+
static fromProto(proto: any): CreateMCPFromIntegrationRequest;
|
|
18
|
+
constructor(kwargs?: i.CreateMCPFromIntegrationRequestInterface);
|
|
19
|
+
toApiJson(): object;
|
|
20
|
+
}
|
|
6
21
|
export declare class DeleteMCPRequest implements i.DeleteMCPRequestInterface {
|
|
7
22
|
namespace: Namespace;
|
|
8
23
|
mcpId: string;
|
|
@@ -30,6 +45,7 @@ export declare class Function implements i.FunctionInterface {
|
|
|
30
45
|
managed: boolean;
|
|
31
46
|
authStrategy: FunctionAuthStrategy;
|
|
32
47
|
mcpId: string;
|
|
48
|
+
constraints: Constraint[];
|
|
33
49
|
static fromProto(proto: any): Function;
|
|
34
50
|
constructor(kwargs?: i.FunctionInterface);
|
|
35
51
|
toApiJson(): object;
|
|
@@ -37,6 +53,7 @@ export declare class Function implements i.FunctionInterface {
|
|
|
37
53
|
export declare class FunctionAuthStrategy implements i.FunctionAuthStrategyInterface {
|
|
38
54
|
unspecified: FunctionAuthStrategyUnspecifiedFunctionAuthStrategy;
|
|
39
55
|
platformManaged: FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
|
|
56
|
+
connectedIntegration: FunctionAuthStrategyConnectedIntegrationAuthStrategy;
|
|
40
57
|
static fromProto(proto: any): FunctionAuthStrategy;
|
|
41
58
|
constructor(kwargs?: i.FunctionAuthStrategyInterface);
|
|
42
59
|
toApiJson(): object;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
+
import { Constraint } from './constraints';
|
|
2
3
|
import { Function } from './function';
|
|
3
4
|
import { Namespace } from './namespace';
|
|
4
5
|
import { PromptModule } from './prompt';
|
|
@@ -17,6 +18,7 @@ export declare class Goal implements i.GoalInterface {
|
|
|
17
18
|
supportedChannels: e.GoalChannel[];
|
|
18
19
|
managed: boolean;
|
|
19
20
|
overrideOf: GoalKey;
|
|
21
|
+
constraints: Constraint[];
|
|
20
22
|
static fromProto(proto: any): Goal;
|
|
21
23
|
constructor(kwargs?: i.GoalInterface);
|
|
22
24
|
toApiJson(): object;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
|
+
export { Constraint, ConstraintFilter, Scope, } from './constraints';
|
|
2
3
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
3
|
-
export { DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
|
|
4
|
+
export { FunctionAuthStrategyConnectedIntegrationAuthStrategy, CreateMCPFromIntegrationRequest, DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
|
|
4
5
|
export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
|
|
5
6
|
export { Goal, GoalKey, } from './goal';
|
|
6
7
|
export { KeyValuePair, } from './common';
|
|
@@ -11,4 +12,4 @@ export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, C
|
|
|
11
12
|
export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
|
|
12
13
|
export { Access, MCPOptions, } from './annotations';
|
|
13
14
|
export { FieldMask, } from './field-mask';
|
|
14
|
-
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse,
|
|
15
|
+
export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListAllAssistantsAssociatedToConnectionRequestFilters, ListConnectionsRequestFilters, ListPromptModuleRequestFilters, ListGoalsRequestFilters, ListAvailableModelsRequestFilters, ListFunctionRequestFilters, ListAssistantRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, CreatePromptModuleVersionRequestOptions, GetAssistantRequestOptions, GenerateChatAnswerRequestOptions, UpsertAssistantRequestOptions, CreateAssistantRequestOptions, GetMultiAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, } from './api';
|